Skip to content

Commit

Permalink
Get the correct time for Google
Browse files Browse the repository at this point in the history
  • Loading branch information
FishAlchemist committed Feb 2, 2025
1 parent d6aa90b commit a7a4680
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docs/.overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
"@type": "WebSite",
"name": "Astral Docs",
"url": "https://docs.astral.sh"
{% if page and page.meta.git_revision_date_localized_raw_iso_datetime %}
"datePublished": "{{ page.meta.git_revision_date_localized_raw_iso_datetime }}Z"
"dateModified": "{{ page.meta.git_revision_date_localized_raw_iso_datetime }}Z"
{% endif %}
}
</script>
{% endblock %}
7 changes: 4 additions & 3 deletions mkdocs.public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ INHERIT: mkdocs.template.yml
plugins:
- search
- git-revision-date-localized:
timezone: UTC # It can only be in UTC unless the ISO time can include timezone.
exclude:
- "reference/cli.md"
- "reference/settings.md"
- "configuration/environment.md"
- "reference/cli.md"
- "reference/settings.md"
- "configuration/environment.md"
validation:
anchors: warn
watch:
Expand Down

0 comments on commit a7a4680

Please sign in to comment.