mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2025-01-31 03:43:46 +01:00
Switched to Jinja's safer string concatenation operator
This commit is contained in:
parent
bca3240007
commit
86a4c47c0a
@ -1,6 +1,6 @@
|
|||||||
{#-
|
{#-
|
||||||
This file was automatically generated - do not edit
|
This file was automatically generated - do not edit
|
||||||
-#}
|
-#}
|
||||||
{% import "partials/language/" + config.theme.language + ".html" as lang %}
|
{% import "partials/language/" ~ config.theme.language ~ ".html" as lang %}
|
||||||
{% import "partials/language/en.html" as fallback %}
|
{% import "partials/language/en.html" as fallback %}
|
||||||
{% macro t(key) %}{{ lang.t(key) or fallback.t(key) }}{% endmacro %}
|
{% macro t(key) %}{{ lang.t(key) or fallback.t(key) }}{% endmacro %}
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
<ul class="md-nav__list" data-md-scrollfix>
|
<ul class="md-nav__list" data-md-scrollfix>
|
||||||
{% set base = path %}
|
{% set base = path %}
|
||||||
{% for nav_item in nav_item.children %}
|
{% for nav_item in nav_item.children %}
|
||||||
{% set path = base + "-" + loop.index | string %}
|
{% set path = base ~ "-" ~ loop.index %}
|
||||||
{% set level = level + 1 %}
|
{% set level = level + 1 %}
|
||||||
{% include "partials/nav-item.html" %}
|
{% include "partials/nav-item.html" %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
<ul class="md-nav__list" data-md-scrollfix>
|
<ul class="md-nav__list" data-md-scrollfix>
|
||||||
{% for nav_item in nav %}
|
{% for nav_item in nav %}
|
||||||
{% set path = "nav-" + loop.index | string %}
|
{% set path = "nav-" ~ loop.index %}
|
||||||
{% set level = 1 %}
|
{% set level = 1 %}
|
||||||
{% include "partials/nav-item.html" %}
|
{% include "partials/nav-item.html" %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Import translations for given language and fallback -->
|
<!-- Import translations for given language and fallback -->
|
||||||
{% import "partials/language/" + config.theme.language + ".html" as lang %}
|
{% import "partials/language/" ~ config.theme.language ~ ".html" as lang %}
|
||||||
{% import "partials/language/en.html" as fallback %}
|
{% import "partials/language/en.html" as fallback %}
|
||||||
|
|
||||||
<!-- Re-export translations -->
|
<!-- Re-export translations -->
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
<!-- Render nested item list -->
|
<!-- Render nested item list -->
|
||||||
{% set base = path %}
|
{% set base = path %}
|
||||||
{% for nav_item in nav_item.children %}
|
{% for nav_item in nav_item.children %}
|
||||||
{% set path = base + "-" + loop.index | string %}
|
{% set path = base ~ "-" ~ loop.index %}
|
||||||
{% set level = level + 1 %}
|
{% set level = level + 1 %}
|
||||||
{% include "partials/nav-item.html" %}
|
{% include "partials/nav-item.html" %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
<!-- Render item list -->
|
<!-- Render item list -->
|
||||||
<ul class="md-nav__list" data-md-scrollfix>
|
<ul class="md-nav__list" data-md-scrollfix>
|
||||||
{% for nav_item in nav %}
|
{% for nav_item in nav %}
|
||||||
{% set path = "nav-" + loop.index | string %}
|
{% set path = "nav-" ~ loop.index %}
|
||||||
{% set level = 1 %}
|
{% set level = 1 %}
|
||||||
{% include "partials/nav-item.html" %}
|
{% include "partials/nav-item.html" %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user