summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-06-07 14:14:41 +0200
committerHarald Eilertsen <haraldei@anduin.net>2020-06-07 14:14:41 +0200
commita19d98ce7e590e6c7f82aa08f7e9791a72e2e8bc (patch)
tree3420ab92e02e3b1e2994be7198a83c667118ffe1 /templates
parent043710894c648f91a3c9acd11800d67f3b872670 (diff)
downloadrabalderz-a19d98ce7e590e6c7f82aa08f7e9791a72e2e8bc.tar.gz
rabalderz-a19d98ce7e590e6c7f82aa08f7e9791a72e2e8bc.tar.bz2
rabalderz-a19d98ce7e590e6c7f82aa08f7e9791a72e2e8bc.zip
Split english and norwegian posts.
This turned out a bit different than I initially though. The english and norwegian sections will essentially be separate. Afaict there's no direct way to make a "combined view" listing both english and norwegian posts. However, I think that's fine. Let's roll with this for now.
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html4
-rw-r--r--templates/posts/header.html2
-rw-r--r--templates/shortcodes/taglink.html4
3 files changed, 6 insertions, 4 deletions
diff --git a/templates/index.html b/templates/index.html
index b39cd9b..c932b7c 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -16,7 +16,7 @@
</div>
</header>
<section class="post-list">
- <h2>Siste innlegg:</h2>
+ <h2>{{ trans(key="latest", lang=lang) }}</h2>
<ul>
{% for post in s.pages | reverse %}
<li>
@@ -30,7 +30,7 @@
</ul>
</section>
<footer>
- <a href="{{ s.permalink }}">Se alle innleggene i {{ s.title }}...</a>
+ <a href="{{ s.permalink }}">{{ trans(key="allposts", lang=lang) }} {{ s.title }}...</a>
</footer>
</article>
{% endfor %}
diff --git a/templates/posts/header.html b/templates/posts/header.html
index 0266f6e..9340f87 100644
--- a/templates/posts/header.html
+++ b/templates/posts/header.html
@@ -10,7 +10,7 @@
Merket:&nbsp;
{% for tag in post.taxonomies['tags'] -%}
<span>
- <a class="tag-link" href="{{ get_taxonomy_url(kind='tags', name=tag) | safe }}">
+ <a class="tag-link" href="{{ get_taxonomy_url(kind='tags', name=tag, lang=lang) | safe }}">
{{ tag }}
</a>
</span>
diff --git a/templates/shortcodes/taglink.html b/templates/shortcodes/taglink.html
index 6e8642e..75e1fc9 100644
--- a/templates/shortcodes/taglink.html
+++ b/templates/shortcodes/taglink.html
@@ -1,2 +1,4 @@
{% set tag_url = get_taxonomy_url(kind="tags", name=tag) %}
-<a href="{{ tag_url | safe }}" class="taglink">{% if name %}{{ name }}{% else %}{{ tag }}{% endif %}</a>
+<a href="{{ tag_url | safe }}" class="taglink">
+ {% if name %}{{ name }}{% else %}{{ tag }}{% endif %}
+</a>