build date into footer (alternative to "git-revision-date-localized") #7627
-
I am aware of the "git-revision-date-localized" plugin and its I want to have the build date (execution of EDIT: But I don't understand how to use "build_date_utc". Is this an option I can activate in the config file? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello @buhtz, The context is generated and passed to the templates with set variables, and it can be modified by plugins in events:
You can use template overrides to create a modified version of the
To access and print the variable use the Jinja2 syntax: To detect changes during |
Beta Was this translation helpful? Give feedback.
Hello @buhtz,
as per the documentation build_date_utc is under the Global context section.
The context is generated and passed to the templates with set variables, and it can be modified by plugins in events:
You can use template overrides to create a modified version of the
partials/footer.html
template:To access and print the variable use the Jinja2 syntax:
{{ build_date_utc }}
To detect changes during
mkdocs serve
in your overrides use the--watch-theme
flag.