all repos — zola-bearblog @ 68fd0902b1b7c540e1b8b79ae02b69b85327e070

Port of bear blog theme to zola

Adding lang=lang attribute to header.html and page.html

commit

68fd0902b1b7c540e1b8b79ae02b69b85327e070

parent

5f7390ee69cf214b2be78279a97bcadc8d6604e6

2 files changed, 2 insertions(+), 2 deletions(-)

jump to
M templates/header.htmltemplates/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>
M templates/page.htmltemplates/page.html
@@ -23,7 +23,7 @@ {%- if page.taxonomies %}
{%- 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 %}