Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Oct 27, 2021
1 parent 4bdfef4 commit 25c91b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion material/partials/toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}">
Expand Down
2 changes: 1 addition & 1 deletion src/partials/toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

Expand Down

0 comments on commit 25c91b9

Please sign in to comment.