Skip to content

page.meta["template"] throws error on mkdocs serve since updating to 9.6.1. Why? #7948

Closed Answered by kamilkrzyskow
Andre601 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Andre601,
the value comes from MkDocs, if you updated the theme then it might've updated the MkDocs base.

meta should always be a dict-like structure so replace it with page.meta.get("template") to not crash.

Adding Python code after running mkdocs serve won't reload the Python code. You need to completely shut it down, and run mkdocs serve again.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Andre601
Comment options

Answer selected by Andre601
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants