How to make value defined in mkdocs.yaml available in templates #6972
Answered
by
alexvoss
divSelector
asked this question in
Q&A
-
I'm trying to do something like this
extra:
hello:
- world: https://example.com
{% if toc %}
...
{% else %}
{% set toc = config.extra.hello %}
....
{% endif %} |
Beta Was this translation helpful? Give feedback.
Answered by
alexvoss
Mar 25, 2024
Replies: 1 comment 1 reply
-
This is explained in the MkDocs documentation. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
alexvoss
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is explained in the MkDocs documentation.
config.extra.hello
should give you an array in your case.