Skip to content

Commit 61fa4ef

Browse files
committed
Set Last Modified Date Manually
1 parent edabb1a commit 61fa4ef

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

archetypes/posts.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
+++
22
title = "{{ replace .TranslationBaseName "-" " " | title }}"
33
date = "{{ .Date }}"
4+
lastmod = "{{ .Lastmod }}"
45
author = "Aleksander Reinhardt"
56
tags = ["", ""]
67
keywords = ["", ""]

content/posts/2025-05-19-hello-world/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
+++
22
title = "Hello, World!"
33
date = "2025-05-19T21:34:44+01:00"
4-
lastmod = ""
4+
lastmod = "2025-07-20T12:26:15+01:00"
55
author = "Aleksander Reinhardt"
66
tags = ["miscellaneous"]
77
keywords = ["hello", "world"]

hugo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,6 @@ pagination.pagerSize = 5
5959
# can be overridden in a content page's front-matter
6060
dateFormat = "2006-01-02 15:04"
6161

62-
[frontmatter]
63-
date = [":git", "date"]
64-
lastmod = [":git", "lastmod"]
65-
6662
[languages]
6763
[languages.en]
6864
languageName = "English"

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Code, Coffee, Metal
1212
+++
1313
title = "New Post"
1414
date = "2025-05-19T00:42:21+01:00"
15+
lastmod = "2025-07-20T12:26:15+01:00"
1516
author = "Aleksander Reinhardt"
1617
tags = ["", ""]
1718
keywords = ["", ""]

0 commit comments

Comments
 (0)