1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-28 01:10:58 +01:00

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 %}
{% 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 %}
{% endif %}
<nav class="md-nav md-nav--secondary" aria-label="{{ title }}">

View File

@ -24,7 +24,7 @@
<!-- Determine 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 %}
{% endif %}