File tree Expand file tree Collapse file tree
tests/fixtures/basic_project/docs/overrides_mkdocs_theme Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ Then you can extend the base `mkdocs` theme by adding a new file `docs/overrides
3232 {{ page.content }}
3333
3434 <!-- This section adds support for localized revision dates -->
35- {% if page.meta.git_revision_date_localized %}
35+ {% if page and page .meta.git_revision_date_localized %}
3636 <small>Last update: {{ page.meta.git_revision_date_localized }}</small>
3737 {% endif %}
38- {% if page.meta.git_created_date_localized %}
38+ {% if page and page .meta.git_created_date_localized %}
3939 <small>Created: {{ page.meta.git_created_date_localized }}</small>
4040 {% endif %}
4141 ```
Original file line number Diff line number Diff line change 1111
1212{{ page.content }}
1313
14- {% if page.meta.git_revision_date_localized %}
14+ {% if page and page .meta.git_revision_date_localized %}
1515 < small > Last update: {{ page.meta.git_revision_date_localized }}</ small >
1616{% endif %}
You can’t perform that action at this time.
0 commit comments