diff options
author | Alan Pearce | 2024-02-13 15:29:20 +0000 |
---|---|---|
committer | Alan Pearce | 2024-02-13 15:29:20 +0000 |
commit | 91f72a8f3071daebea322fb65365cda55956512f (patch) | |
tree | 428940fc3b420225e78f8a7cff049dee0096de79 /templates | |
parent | 5f7390ee69cf214b2be78279a97bcadc8d6604e6 (diff) | |
parent | 68fd0902b1b7c540e1b8b79ae02b69b85327e070 (diff) | |
download | zola-bearblog-91f72a8f3071daebea322fb65365cda55956512f.tar.lz zola-bearblog-91f72a8f3071daebea322fb65365cda55956512f.tar.zst zola-bearblog-91f72a8f3071daebea322fb65365cda55956512f.zip |
Merge pull request 'Adding lang=lang attribute to header.html and page.html' (#5) from dobrvlskyi/zola-bearblog:multilingual into main
Reviewed-on: https://codeberg.org/alanpearce/zola-bearblog/pulls/5
Diffstat (limited to 'templates')
-rw-r--r-- | templates/header.html | 2 | ||||
-rw-r--r-- | templates/page.html | 2 |
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 %} |