Formatting

This commit is contained in:
squidfunk 2021-10-27 19:03:48 +02:00
parent 4bdfef47eb
commit 25c91b967a
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
-#} -#}
{% import "partials/language.html" as lang with context %} {% import "partials/language.html" as lang with context %}
{% set title = title | default(lang.t("toc.title")) %} {% set title = title | default(lang.t("toc.title")) %}
{% if "toc" in config.mdx_configs and config.mdx_configs.toc.title %} {% if config.mdx_configs.toc and config.mdx_configs.toc.title %}
{% set title = config.mdx_configs.toc.title %} {% set title = config.mdx_configs.toc.title %}
{% endif %} {% endif %}
<nav class="md-nav md-nav--secondary" aria-label="{{ title }}"> <nav class="md-nav md-nav--secondary" aria-label="{{ title }}">

View File

@ -24,7 +24,7 @@
<!-- Determine title --> <!-- Determine title -->
{% set title = title | default(lang.t("toc.title")) %} {% set title = title | default(lang.t("toc.title")) %}
{% if "toc" in config.mdx_configs and config.mdx_configs.toc.title %} {% if config.mdx_configs.toc and config.mdx_configs.toc.title %}
{% set title = config.mdx_configs.toc.title %} {% set title = config.mdx_configs.toc.title %}
{% endif %} {% endif %}