diff --git a/material/partials/language.html b/material/partials/language.html
index 7366121f9..bd0848751 100644
--- a/material/partials/language.html
+++ b/material/partials/language.html
@@ -1,6 +1,6 @@
{#-
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 %}
{% macro t(key) %}{{ lang.t(key) or fallback.t(key) }}{% endmacro %}
diff --git a/material/partials/nav-item.html b/material/partials/nav-item.html
index 82c821104..357e97f96 100644
--- a/material/partials/nav-item.html
+++ b/material/partials/nav-item.html
@@ -21,7 +21,7 @@
{% set base = path %}
{% for nav_item in nav_item.children %}
- {% set path = base + "-" + loop.index | string %}
+ {% set path = base ~ "-" ~ loop.index %}
{% set level = level + 1 %}
{% include "partials/nav-item.html" %}
{% endfor %}
diff --git a/material/partials/nav.html b/material/partials/nav.html
index 2d4a0f804..1d6cef788 100644
--- a/material/partials/nav.html
+++ b/material/partials/nav.html
@@ -19,7 +19,7 @@
{% endif %}
{% for nav_item in nav %}
- {% set path = "nav-" + loop.index | string %}
+ {% set path = "nav-" ~ loop.index %}
{% set level = 1 %}
{% include "partials/nav-item.html" %}
{% endfor %}
diff --git a/src/partials/language.html b/src/partials/language.html
index 5d5e5efd8..2ef48e3ab 100644
--- a/src/partials/language.html
+++ b/src/partials/language.html
@@ -21,7 +21,7 @@
-->
-{% 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 %}
diff --git a/src/partials/nav-item.html b/src/partials/nav-item.html
index 700df2b95..35936d6cf 100644
--- a/src/partials/nav-item.html
+++ b/src/partials/nav-item.html
@@ -59,7 +59,7 @@
{% set base = path %}
{% for nav_item in nav_item.children %}
- {% set path = base + "-" + loop.index | string %}
+ {% set path = base ~ "-" ~ loop.index %}
{% set level = level + 1 %}
{% include "partials/nav-item.html" %}
{% endfor %}
diff --git a/src/partials/nav.html b/src/partials/nav.html
index a9120f6f3..6c4825688 100644
--- a/src/partials/nav.html
+++ b/src/partials/nav.html
@@ -56,7 +56,7 @@
{% for nav_item in nav %}
- {% set path = "nav-" + loop.index | string %}
+ {% set path = "nav-" ~ loop.index %}
{% set level = 1 %}
{% include "partials/nav-item.html" %}
{% endfor %}