Fixed table of contents title not showing

This commit is contained in:
squidfunk 2022-12-08 18:27:05 +01:00
parent ad2c800bc4
commit 3e9b72c104
2 changed files with 4 additions and 4 deletions

View File

@ -2,8 +2,8 @@
This file was automatically generated - do not edit
-#}
{% set title = lang.t("toc") %}
{% if config.mdx_configs.toc and config.mdx_configs.toc %}
{% set title = config.mdx_configs.toc %}
{% 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 }}">
{% set toc = page.toc %}

View File

@ -22,8 +22,8 @@
<!-- Determine title -->
{% set title = lang.t("toc") %}
{% if config.mdx_configs.toc and config.mdx_configs.toc %}
{% set title = config.mdx_configs.toc %}
{% if config.mdx_configs.toc and config.mdx_configs.toc.title %}
{% set title = config.mdx_configs.toc.title %}
{% endif %}
<!-- Table of contents -->