Skip to content

Commit a924294

Browse files
authored
feat: Add last update feature (#196)
1 parent 43e93d0 commit a924294

File tree

9 files changed

+70
-6
lines changed

9 files changed

+70
-6
lines changed

mkdocs.yml

+4
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,7 @@ plugins:
118118
utm_source: "documentation"
119119
utm_medium: "RSS"
120120
utm_campaign: "feed-syndication"
121+
- git-revision-date-localized:
122+
enabled: true
123+
enable_creation_date: false
124+
type: iso_date

pages/opportunities/gsoc/guides/contributor/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "GSoC Contributor Guide"
33
description: "GSoC Contributor Guide"
4-
date: "2023-10-30"
4+
date: "2025-02-01"
55
authors: ["OSL Team"]
66
template: single-sidebar.html
77
---

pages/opportunities/gsoc/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Google Summer of Code with Open Science Labs"
33
description: "Google Summer of Code with Open Science Labs"
4-
date: "2024-01-29"
4+
date: "2025-02-01"
55
authors: ["OSL Team"]
66
template: single-sidebar.html
77
---

pages/opportunities/gsoc/project-ideas/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "GSoC Project Ideas"
33
description: "GSoC Project Ideas"
4-
date: "2025-01-13"
4+
date: "2025-02-01"
55
authors: ["OSL Team"]
66
template: single-sidebar.html
77
---

pages/opportunities/gsoc/templates/project-ideas.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "TEMPLATE: GSoC Project Idea"
33
description: "TEMPLATE: GSoC Project Idea"
4-
date: "2025-01-13"
4+
date: "2025-02-01"
55
authors: ["OSL Team"]
66
template: single-sidebar.html
77
---

pages/robots.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-agent: *
2+
Disallow:

poetry.lock

+37-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ dependencies = [
2121
"colorama (>=0.4.6,<0.5.0)",
2222
"linkcheckmd (>=1.4.0,<2.0.0)",
2323
"beautifulsoup4 (>=4.12.3,<5.0.0)",
24+
"mkdocs-git-revision-date-localized-plugin (>=1.3)",
2425
]
2526

2627

theme/base.html

+22
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,17 @@
3232
<meta property="og:description" content="A Open Source community for sharing knowledge">
3333
<meta property="og:image" content="/images/thumbnail.png">
3434
<meta name=keywords content="open science,data science,latam">
35+
<meta name="last-modified" content="{{ build_date_utc.strftime('%Y-%m-%d') }}">
36+
<meta name="DC.date.modified" content="{{ build_date_utc.strftime('%Y-%m-%d') }}">
37+
<meta property="og:updated_time" content="{{ build_date_utc.strftime('%Y-%m-%d') }}T00:00:00Z">
38+
<script type="application/ld+json">
39+
{
40+
"@context": "https://schema.org",
41+
"@type": "WebPage",
42+
"name": "Open Science Labs",
43+
"dateModified": "{{ build_date_utc.strftime('%Y-%m-%d') }}T00:00:00Z"
44+
}
45+
</script>
3546
<link rel=apple-touch-icon sizes=180x180 href=/icons/apple-touch-icon.png>
3647
<link rel=icon type=image/png sizes=32x32 href=/icons/favicon-32x32.png>
3748
<link rel=manifest href=/icons/site.webmanifest>
@@ -157,6 +168,17 @@
157168
</section>
158169
{% endblock content %}
159170
</section>
171+
<div>
172+
<i>
173+
<!-- This section adds support for localized revision dates -->
174+
{% if page.meta.git_revision_date_localized %}
175+
<small>Last update: {{ page.meta.git_revision_date_localized }}</small>
176+
{% endif %}
177+
{% if page.meta.git_created_date_localized %}
178+
<small>Created: {{ page.meta.git_created_date_localized }}</small>
179+
{% endif %}
180+
</i>
181+
</div>
160182
</div>
161183
</main>
162184
<svg width="0" height="0" class="hidden">

0 commit comments

Comments
 (0)