about summary refs log tree commit diff stats
path: root/templates
diff options
context:
space:
mode:
authorOleksii Dobrovolskyi2024-02-13 16:56:15 +0200
committerOleksii Dobrovolskyi2024-02-13 16:56:15 +0200
commit68fd0902b1b7c540e1b8b79ae02b69b85327e070 (patch)
tree428940fc3b420225e78f8a7cff049dee0096de79 /templates
parent5f7390ee69cf214b2be78279a97bcadc8d6604e6 (diff)
downloadzola-bearblog-68fd0902b1b7c540e1b8b79ae02b69b85327e070.tar.lz
zola-bearblog-68fd0902b1b7c540e1b8b79ae02b69b85327e070.tar.zst
zola-bearblog-68fd0902b1b7c540e1b8b79ae02b69b85327e070.zip
Adding lang=lang attribute to header.html and page.html
Diffstat (limited to 'templates')
-rw-r--r--templates/header.html2
-rw-r--r--templates/page.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/header.html b/templates/header.html
index c1d3c3e..43f6c40 100644
--- a/templates/header.html
+++ b/templates/header.html
@@ -1,5 +1,5 @@
 <header>
-  <a href="{{ config.base_url }}" class="title">
+  <a href="{{ get_url(path="@/_index.md", lang=lang) }}" class="title">
     <h2>{{ config.title }}</h2>
   </a>
   <nav>
diff --git a/templates/page.html b/templates/page.html
index 89de955..5c1a80b 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -23,7 +23,7 @@
       {%- for name, taxon in page.taxonomies %}
         {{ name | capitalize }}:
         {%- for item in taxon %}
-          <a href="{{ get_taxonomy_url(kind=name, name=item) }}">#{{ item }}</a>
+          <a href="{{ get_taxonomy_url(kind=name, name=item, lang=lang) }}">#{{ item }}</a>
         {%- endfor %}
       {%- endfor %}
     {%- endif %}