diff options
Diffstat (limited to 'Peli-Kiera/templates')
-rw-r--r-- | Peli-Kiera/templates/analytics.html | 45 | ||||
-rw-r--r-- | Peli-Kiera/templates/archives.html | 18 | ||||
-rw-r--r-- | Peli-Kiera/templates/article.html | 84 | ||||
-rw-r--r-- | Peli-Kiera/templates/author.html | 33 | ||||
-rw-r--r-- | Peli-Kiera/templates/authors.html | 20 | ||||
-rw-r--r-- | Peli-Kiera/templates/base.html | 84 | ||||
-rw-r--r-- | Peli-Kiera/templates/categories.html | 17 | ||||
-rw-r--r-- | Peli-Kiera/templates/category.html | 34 | ||||
-rw-r--r-- | Peli-Kiera/templates/disqus_script.html | 23 | ||||
-rw-r--r-- | Peli-Kiera/templates/github.html | 35 | ||||
-rw-r--r-- | Peli-Kiera/templates/index.html | 34 | ||||
-rw-r--r-- | Peli-Kiera/templates/page.html | 20 | ||||
-rw-r--r-- | Peli-Kiera/templates/pagination.html | 26 | ||||
-rw-r--r-- | Peli-Kiera/templates/period_archives.html | 18 | ||||
-rw-r--r-- | Peli-Kiera/templates/tag.html | 19 | ||||
-rw-r--r-- | Peli-Kiera/templates/tags.html | 16 | ||||
-rw-r--r-- | Peli-Kiera/templates/translations.html | 9 |
17 files changed, 535 insertions, 0 deletions
diff --git a/Peli-Kiera/templates/analytics.html b/Peli-Kiera/templates/analytics.html new file mode 100644 index 0000000..a966c4c --- /dev/null +++ b/Peli-Kiera/templates/analytics.html @@ -0,0 +1,45 @@ +{% if GOOGLE_ANALYTICS %} + <script type="text/javascript"> + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) + })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); + + ga('create', '{{GOOGLE_ANALYTICS}}', '{{GA_COOKIE_DOMAIN if GA_COOKIE_DOMAIN else 'auto'}}'); + ga('send', 'pageview'); + </script> +{% endif %} +{% if GAUGES %} + <script type="text/javascript"> + var _gauges = _gauges || []; + (function() { + var t = document.createElement('script'); + t.type = 'text/javascript'; + t.async = true; + t.id = 'gauges-tracker'; + t.setAttribute('data-site-id', '{{GAUGES}}'); + t.src = '//secure.gaug.es/track.js'; + var s = document.getElementsByTagName('script')[0]; + s.parentNode.insertBefore(t, s); + })(); + </script> +{% endif %} +{% if PIWIK_URL and PIWIK_SITE_ID %} + <script type="text/javascript"> + {% if PIWIK_SSL_URL %} + var pkBaseURL = "{{ PIWIK_SSL_URL }}"; + {% else %} + var pkBaseURL = "{{ PIWIK_URL }}"; + {% endif %} + var _paq = _paq || []; + _paq.push(["trackPageView"]); + _paq.push(["enableLinkTracking"]); + (function() { + var u=(("https:" == document.location.protocol) ? "https" : "http")+"://"+pkBaseURL+"/"; + _paq.push(["setTrackerUrl", u+"piwik.php"]); + _paq.push(["setSiteId", "{{ PIWIK_SITE_ID }}"]); + var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript"; + g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s); + })(); + </script> +{% endif %} diff --git a/Peli-Kiera/templates/archives.html b/Peli-Kiera/templates/archives.html new file mode 100644 index 0000000..a7374d7 --- /dev/null +++ b/Peli-Kiera/templates/archives.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - Archives{% endblock %} + +{% block content %} + <main> + <section id="list"> + <h2>Archives for {{ SITENAME }}</h2> + <ul> + {% for article in dates %} + <li><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a> + <time>{{ article.date|strftime('%b %Y') }}</time> + </li> + {% endfor %} + </ul> + </section> + </main> +{% endblock %}
\ No newline at end of file diff --git a/Peli-Kiera/templates/article.html b/Peli-Kiera/templates/article.html new file mode 100644 index 0000000..118945d --- /dev/null +++ b/Peli-Kiera/templates/article.html @@ -0,0 +1,84 @@ +{% extends "base.html" %} +{% block html_lang %}{{ article.lang }}{% endblock %} + +{% block title %}{{ SITENAME }} - {{ article.title }}{% endblock %} + +{% block head %} + {{ super() }} + {% if article.description %} + <meta name="description" content="{{ article.description }}"/> + {% endif %} + {% for tag in article.tags %} + <meta name="tags" content="{{ tag }}"/> + {% endfor %} +{% endblock %} + +{% block content %} + <main> + <article> + <h2>{{ article.title }}</h2> + {% import 'translations.html' as translations with context %} + {{ translations.translations_for(article) }} + <aside> + <ul> + <li> + <time datetime="{{ article.date }}">{{ article.date|strftime('%b %d, %Y') }}</time> + </li> + {% if article.modified %} + <li> + <time datetime="{{ article.modified }}">Modified + on {{ article.modified|strftime('%b %d, %Y') }}</time> + {% endif %} + </li> + {% if article.readtime %} + <li>{{ article.readtime.minutes }} min read</li> + {% endif %} + {% if article.category %} + <li> + Categories: + <a href="{{ SITEURL }}/{{ article.category.url }}"><em>{{ article.category }}</em></a> + {% endif %} + </li> + {% if article.tags %} + <li> + Tags: + {% for tag in article.tags %} + <a href="{{ SITEURL }}/{{ tag.url }}"><em>#{{ tag }}</em></a> + {% endfor %} + {% endif %} + </li> + </ul> + </aside> + {{ article.content }} + </article> + <section class="post-nav"> + <ul> + {% if article.next_article %} + <li> + <a href="{{ SITEURL }}/{{ article.next_article.url }}"><i + class="fa fa-chevron-circle-left"></i> {{ article.next_article.title }}</a> + </li> + {% else %} + <li> + <a href="{{ SITEURL }}/{{ article.next_article.url }}">{{ " " }}</a> + </li> + {% endif %} + {% if article.prev_article %} + <li> + <a href="{{ SITEURL }}/{{ article.prev_article.url }}">{{ article.prev_article.title }} <i + class="fa fa-chevron-circle-right"></i></a> + </li> + {% else %} + <li> + <a href="{{ SITEURL }}/{{ article.prev_article.url }}">{{ " " }}</a> + </li> + {% endif %} + </ul> + </section> + <div> + {% include 'disqus_script.html' %} + </div> + </main> +{% endblock %} + + diff --git a/Peli-Kiera/templates/author.html b/Peli-Kiera/templates/author.html new file mode 100644 index 0000000..2722740 --- /dev/null +++ b/Peli-Kiera/templates/author.html @@ -0,0 +1,33 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - {{ author }}{% endblock %} + +{% block content %} + <main> + <section id="list"> + <h2>Articles by - {{ author }}</h2> + <ul> + {% set new = namespace(p=0) %} + {% for article in articles_page.object_list %} + {% set period = article.date | strftime('%Y') %} + {% if period != new.p %} + <h3>{{ period }}</h3> + <li> + <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a> + <time>{{ article.date|strftime('%b %Y') }}</time> + </li> + {% set new.p = article.date | strftime('%Y') %} + {% elif period == new.p %} + <li> + <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a> + <time>{{ article.date|strftime('%b %Y') }}</time> + </li> + {% endif %} + {% endfor %} + </ul> + </section> + {% if articles_page.has_other_pages() %} + {% include 'pagination.html' %} + {% endif %} + </main> +{% endblock %} diff --git a/Peli-Kiera/templates/authors.html b/Peli-Kiera/templates/authors.html new file mode 100644 index 0000000..bacb48e --- /dev/null +++ b/Peli-Kiera/templates/authors.html @@ -0,0 +1,20 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - Authors{% endblock %} + +{% block content %} + <main> + <section id="list"> + <h2>Authors</h2> + <ul> + {% for author, articles in authors|sort %} + {% if author == "" %} + <li><a href="#">Anonymous</a>({{ articles|count }})</li> + {% else %} + <li><a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>({{ articles|count }})</li> + {% endif %} + {% endfor %} + </ul> + </section> + </main> +{% endblock %} diff --git a/Peli-Kiera/templates/base.html b/Peli-Kiera/templates/base.html new file mode 100644 index 0000000..737bd5c --- /dev/null +++ b/Peli-Kiera/templates/base.html @@ -0,0 +1,84 @@ +<!DOCTYPE html> +<html lang="{% block html_lang %}{{ DEFAULT_LANG }}{% endblock html_lang %}"> +<head> + {% block head %} + <meta charset="utf-8"/> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <meta http-equiv="X-UA-Compatible" content="ie=edge"> + <title>{% block title %}{{ SITENAME }}{% endblock title %}</title> + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/7.0.0/normalize.min.css"/> + <link rel="stylesheet" + href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"/> + <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Slab|Ruda"/> + <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/{{ CSS_FILE }}"/> + {% if FEED_ALL_ATOM %} + <link href="{{ FEED_DOMAIN }}/ + {% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}" + type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed"/> + {% endif %} + {% if FEED_ALL_RSS %} + <link href="{{ FEED_DOMAIN }}/ + {% if FEED_ALL_RSS_URL %}{{ FEED_ALL_RSS_URL }}{% else %}{{ FEED_ALL_RSS }}{% endif %}" + type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed"/> + {% endif %} + {% endblock head %} +</head> +<body> +{% include 'github.html' %} +<div id="container"> + <header> + <h1><a href="{{ SITEURL }}/">{{ SITENAME }}</a></h1> + {% if SOCIAL or FEED_ALL_ATOM or FEED_ALL_RSS %} + <ul class="social-media"> + {% for name, link in SOCIAL %} + <li><a href="{{ link }}"><i class="fa fa-{{ name }} fa-lg" aria-hidden="true"></i></a></li> + {% endfor %} + {% if FEED_ALL_ATOM %} + <li><a href="{{ FEED_DOMAIN }}/ + {% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}" + type="application/atom+xml" rel="alternate"><i class="fa fa-rss fa-lg" + aria-hidden="true"></i></a></li> + {% endif %} + {% if FEED_ALL_RSS %} + <li><a href="{{ FEED_DOMAIN }}/ + {% if FEED_ALL_RSS_URL %}{{ FEED_ALL_RSS_URL }}{% else %}{{ FEED_ALL_RSS }}{% endif %}" + type="application/rss+xml" rel="alternate"><i class="fa fa-rss fa-lg" aria-hidden="true"></i></a> + </li> + {% endif %} + </ul> + {% endif %} + <p><em>{{ SITESUBTITLE }}</em></p> + </header> + <nav> + <ul> + {% for title, link in MENUITEMS %} + <li><a href="{{ link }}">{{ title }}</a></li> + {% endfor %} + {% if DISPLAY_CATEGORIES_ON_MENU %} + {% for cat, null in categories %} + <li><a {% if cat==category %} + class="active" {% endif %}href="{{ SITEURL }}/{{ cat.url }}"> {{ cat }} </a></li> + {% endfor %} + {% endif %} + {% if DISPLAY_PAGES_ON_MENU %} + {% for p in pages %} + <li><a {% if p==page %} class="active" {% endif %}href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a> + </li> + {% endfor %} + {% endif %} + </ul> + </nav> + {% block content %} + {% endblock %} + <footer> + <h6> + Copyright © 2018 + {% if AUTHOR %}- {{ AUTHOR }}{% endif %} | Rendered by <a href="http://getpelican.com/">Pelican</a> | + Powered by <a href="http://python.org">Python</a> + </h6> + </footer> +</div> +{% include 'analytics.html' %} +</body> +</html> + diff --git a/Peli-Kiera/templates/categories.html b/Peli-Kiera/templates/categories.html new file mode 100644 index 0000000..faaac26 --- /dev/null +++ b/Peli-Kiera/templates/categories.html @@ -0,0 +1,17 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - Categories{% endblock %} + +{% block content %} + <main> + <section id="list"> + <h2>Number of Articles for Category </h2> + <ul> + {% for category, articles in categories|sort %} + <li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a> ({{ articles|count }})</li> + {% endfor %} + </ul> + </section> + </main> +{% endblock %} + diff --git a/Peli-Kiera/templates/category.html b/Peli-Kiera/templates/category.html new file mode 100644 index 0000000..12c566c --- /dev/null +++ b/Peli-Kiera/templates/category.html @@ -0,0 +1,34 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - Archives{% endblock %} + +{% block content %} + <main> + <section id="list"> + <h2>{{ category }}</h2> + <ul> + {% set new = namespace(p=0) %} + {% for article in articles_page.object_list %} + {% set period = article.date | strftime('%Y') %} + {% if period != new.p %} + <h3>{{ period }}</h3> + <li> + <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a> + <time>{{ article.date|strftime('%b %Y') }}</time> + </li> + {% set new.p = article.date | strftime('%Y') %} + {% elif period == new.p %} + <li> + <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a> + <time>{{ article.date|strftime('%b %Y') }}</time> + </li> + {% endif %} + {% endfor %} + </ul> + </section> + {% if articles_page.has_other_pages() %} + {% include 'pagination.html' %} + {% endif %} + </main> +{% endblock %} + diff --git a/Peli-Kiera/templates/disqus_script.html b/Peli-Kiera/templates/disqus_script.html new file mode 100644 index 0000000..5aafa17 --- /dev/null +++ b/Peli-Kiera/templates/disqus_script.html @@ -0,0 +1,23 @@ +{% if DISQUS_SITENAME %} + <div class="comments"> + <h2>Comments !</h2> + <div id="disqus_thread"></div> + <script> + var disqus_config = function () { + this.page.url = "{{ SITEURL }}/{{ article.url }}"; + this.page.identifier = "{{ article.slug }}"; + this.page.title = "{{ article.title }}"; + }; + (function () { + var d = document, + s = d.createElement('script'); + s.src = 'https://{{ DISQUS_SITENAME }}.disqus.com/embed.js'; + s.setAttribute('data-timestamp', +new Date()); + (d.head || d.body).appendChild(s); + })(); + </script> + <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments + powered by + Disqus.</a></noscript> + </div> +{% endif %} diff --git a/Peli-Kiera/templates/github.html b/Peli-Kiera/templates/github.html new file mode 100644 index 0000000..dce0159 --- /dev/null +++ b/Peli-Kiera/templates/github.html @@ -0,0 +1,35 @@ +{% if GITHUB_URL %} +<a href="{{ GITHUB_URL }}" class="github-corner" aria-label="View source on GitHub"> + <svg width="80" height="80" viewBox="0 0 250 250" + style="fill:#8B8B7A; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true"> + <path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path> + <path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" + fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path> + <path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" + fill="currentColor" class="octo-body"></path> + </svg> +</a> +{% endif %} +<style>.github-corner:hover .octo-arm { + animation: octocat-wave 560ms ease-in-out +} +@keyframes octocat-wave { + 0%, 100% { + transform: rotate(0) + } + 20%, 60% { + transform: rotate(-25deg) + } + 40%, 80% { + transform: rotate(10deg) + } +} +@media (max-width: 500px) { + .github-corner:hover .octo-arm { + animation: none + } + + .github-corner .octo-arm { + animation: octocat-wave 560ms ease-in-out + } +}</style> diff --git a/Peli-Kiera/templates/index.html b/Peli-Kiera/templates/index.html new file mode 100644 index 0000000..8a6e379 --- /dev/null +++ b/Peli-Kiera/templates/index.html @@ -0,0 +1,34 @@ +{% extends "base.html" %} +{% block content %} + <main> + <section id="home"> + <ul> + {% for article in articles_page.object_list %} + <li> + <h2><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" + title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> + <aside> + <ul> + <li> + <time datetime="{{ article.date }}">{{ article.date|strftime('%b %d, %Y') }}</time> + </li> + {% if article.readtime %} + <li> + {{ article.readtime.minutes }} min read + </li> + {% endif %} + </ul> + </aside> + <p> + {{ article.summary }} + <a href="{{ SITEURL }}/{{ article.url }}"><em>Read more...</em></a> + </p> + </li> + {% endfor %} + </ul> + {% if articles_page.has_other_pages() %} + {% include 'pagination.html' %} + {% endif %} + </section> + </main> +{% endblock content %}
\ No newline at end of file diff --git a/Peli-Kiera/templates/page.html b/Peli-Kiera/templates/page.html new file mode 100644 index 0000000..65ee958 --- /dev/null +++ b/Peli-Kiera/templates/page.html @@ -0,0 +1,20 @@ +{% extends "base.html" %} +{% block html_lang %}{{ page.lang }}{% endblock %} + +{% block title %}{{ SITENAME }} - {{ page.title }}{%endblock%} + +{% block content %} + <main> + <section> + <h2>{{ page.title }}</h2> + {% import 'translations.html' as translations with context %} + {{ translations.translations_for(page) }} + {{ page.content }} + {% if page.modified %} + <p> + Last updated: {{ page.locale_modified }} + </p> + {% endif %} + </section> + </main> +{% endblock %} diff --git a/Peli-Kiera/templates/pagination.html b/Peli-Kiera/templates/pagination.html new file mode 100644 index 0000000..35f1a0f --- /dev/null +++ b/Peli-Kiera/templates/pagination.html @@ -0,0 +1,26 @@ +{% if DEFAULT_PAGINATION %} + + <ul class="pagination"> + {% if articles_page.has_previous() %} + <li><a href="{{ SITEURL }}/{{ page_name }}{{ '' }}.html"><span aria-hidden="true">««</span></a> + </li> + <li><a href="{{ SITEURL }}/{{ articles_previous_page.url }}">«</a></li> + {% endif %} + {% for page in range(1, articles_paginator.num_pages + 1) %} + {% if page == 1 and page >= (articles_page.number - 3) and page <= (articles_page.number) + 3 %} + <li class="{{ 'active' if page == articles_page.number else '' }}"><a + href="{{ SITEURL }}/{{ page_name }}{{ "" }}.html">{{ page }}</a></li> + {% elif page >= (articles_page.number - 3) and page <= (articles_page.number) + 3 %} + <li class="{{ 'active' if page == articles_page.number else '' }}"><a + href="{{ SITEURL }}/{{ page_name }}{{ page }}.html">{{ page }}</a></li> + {% endif %} + + {% endfor %} + {% if articles_page.has_next() %} + <li><a href="{{ SITEURL }}/{{ articles_next_page.url }}">»</a></li> + <li><a href="{{ SITEURL }}/{{ page_name }}{{ articles_paginator.num_pages }}.html"><span aria-hidden="true">»»</span></a> + </li> + {% endif %} + </ul> +{% endif %} + diff --git a/Peli-Kiera/templates/period_archives.html b/Peli-Kiera/templates/period_archives.html new file mode 100644 index 0000000..8a6b425 --- /dev/null +++ b/Peli-Kiera/templates/period_archives.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - {{ period | reverse | join(' ') }} Archives{% endblock %} + +{% block content %} + <main> + <section id="list"> + <h2>Archives for {{ period | reverse | join(' ') }}</h2> + <ul> + {% for article in dates %} + <li><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a> + <time>{{ article.date|strftime('%b %Y') }}</time> + </li> + {% endfor %} + </ul> + </section> + </main> +{% endblock %}
\ No newline at end of file diff --git a/Peli-Kiera/templates/tag.html b/Peli-Kiera/templates/tag.html new file mode 100644 index 0000000..9c1a0ad --- /dev/null +++ b/Peli-Kiera/templates/tag.html @@ -0,0 +1,19 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %} + +{% block content %} + <main> + <section id="list"> + <h2>#{{ tag }}</h2> + <ul> + {% for article in dates %} + <li> + <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a> + <time>{{ article.date|strftime('%b %Y') }}</time> + </li> + {% endfor %} + </ul> + </section> + </main> +{% endblock %} diff --git a/Peli-Kiera/templates/tags.html b/Peli-Kiera/templates/tags.html new file mode 100644 index 0000000..1fa4065 --- /dev/null +++ b/Peli-Kiera/templates/tags.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - Tags{% endblock %} + +{% block content %} + <main> + <section id="list"> + <h2>Tags for {{ SITENAME }}</h2> + <ul> + {% for tag, articles in tags|sort %} + <li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> ({{ articles|count }})</li> + {% endfor %} + </ul> + </section> + </main> +{% endblock %} diff --git a/Peli-Kiera/templates/translations.html b/Peli-Kiera/templates/translations.html new file mode 100644 index 0000000..db8c372 --- /dev/null +++ b/Peli-Kiera/templates/translations.html @@ -0,0 +1,9 @@ +{% macro translations_for(article) %} +{% if article.translations %} +Translations: +{% for translation in article.translations %} +<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a> +{% endfor %} +{% endif %} +{% endmacro %} + |