From a19d98ce7e590e6c7f82aa08f7e9791a72e2e8bc Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 7 Jun 2020 14:14:41 +0200 Subject: 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. --- templates/index.html | 4 ++-- templates/posts/header.html | 2 +- templates/shortcodes/taglink.html | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'templates') 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 @@
-

Siste innlegg:

+

{{ trans(key="latest", lang=lang) }}

{% 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:  {% for tag in post.taxonomies['tags'] -%} - + {{ tag }} 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) %} -{% if name %}{{ name }}{% else %}{{ tag }}{% endif %} + + {% if name %}{{ name }}{% else %}{{ tag }}{% endif %} + -- cgit v1.2.3