Skip to content

Commit 6044281

Browse files
committed
Add More Comments To Support Post Modification Date
1 parent 341fd6f commit 6044281

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

hugo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ enableGitInfo = true
1212
# precedence order for determining .Lastmod (the page object property counterpart of the lastmod frontmatter variable)
1313
# 1. git commit time
1414
# 2. file modification time
15-
# 3. front matter 'lastmod'
15+
# 3. front matter 'lastmod' (this can be added to the posts archetype, or directly to the metadata of posts)
1616
# 4. fallback to .Date
1717
lastmod = [":git", ":fileModTime", "lastmod", ":default"]
1818

readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Code, Coffee, Metal
66
> [!NOTE]
77
> to create a new post, execute `hugo new content content/posts/new-post.md`
88
> <br/>
9+
> this new file can be used as a template, and requires a content directory to be created manually
10+
> <br/>
911
> the post template can be updated in `archetypes/posts.md`
1012
1113
```markdown

0 commit comments

Comments
 (0)