diff options
Diffstat (limited to 'comic/templates')
| -rw-r--r-- | comic/templates/comic_feed.xml.j2 | 24 | ||||
| -rw-r--r-- | comic/templates/issue.html.j2 | 10 |
2 files changed, 32 insertions, 2 deletions
diff --git a/comic/templates/comic_feed.xml.j2 b/comic/templates/comic_feed.xml.j2 new file mode 100644 index 0000000..eeb177d --- /dev/null +++ b/comic/templates/comic_feed.xml.j2 @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<rss version="2.0"> +<channel> + <title>{{ comic.comic_name }}</title> + <link>https://comic.wazul.moe/feed.xml</link> + <description>Silly comic ideas by Wazul</description> + <language>en</language> + <lastBuildDate>{{ build_date }}</lastBuildDate> + {% for issue in issues %} + <item> + <title>{{ issue.title() }}</title> + <link>{{ issue.get_link() }}</link> + <description> + <img src="{{ issue.get_link() }}/comic.png"/> + <br> + <p>{{ issue.description() }}</p> + </description> + <guid>{{ issue.get_link() }}</guid> + <author>contact@wazul.moe</author> + <pubDate>{{ issue.get_publish_time_rfc2822() }}</pubDate> + </item> + {% endfor %} + </channel> +</rss>
\ No newline at end of file diff --git a/comic/templates/issue.html.j2 b/comic/templates/issue.html.j2 index 7eca898..70b4745 100644 --- a/comic/templates/issue.html.j2 +++ b/comic/templates/issue.html.j2 @@ -14,12 +14,12 @@ <div class="bootstrap-wrapper"> <div class="container"> <a href="/" class="row dont-bother"> - <header class="col-md-7" role="banner">TITLE</header> + <header class="col-md-7" role="banner"><img class="banner" src="{{ site.assets_path }}/images/banner_placeholder.png" alt="banner"/></header> </a> <div class="row"> <main class="col-md-7"> <h1>{{ issue.title() }}</h1> - <img class="comic" src="{{ url }}/comic.png" /> + <img class="comic" src="{{ url }}/comic.png" alt="comic"/> <p class="description">{{ issue.description() }}</p> </main> </div> @@ -27,6 +27,12 @@ <footer class="col-md-7"> <p>Permalink to this comic: <a href="{{ url }}">{{ url }}</a></p> <p>Image url: <a href="{{ url }}/comic.png">{{ url }}/comic.png</a></p> + <hr> + <p><a href="/feed.xml">RSS feed</a></p> + <hr> + <p>This comic series is heavily inspired by <a href="https://xkcd.com">XKCD</a></p> + <hr> + <p>The comic is licenced under <a href="https://creativecommons.org/licenses/by-nc/4.0/legalcode.en">Creative Commons Attribution-NonCommercial 4.0</a></p> </footer> </div> </div> |
