Skip to content

Add content.publishDate field to the content format#12

Merged
patrickkfkan merged 2 commits intopatrickkfkan:nextfrom
kazuoteramoto:feat/add-publishdate-content-format
Apr 24, 2024
Merged

Add content.publishDate field to the content format#12
patrickkfkan merged 2 commits intopatrickkfkan:nextfrom
kazuoteramoto:feat/add-publishdate-content-format

Conversation

@kazuoteramoto
Copy link
Copy Markdown
Contributor

This make the date part of the content.publishedAt available as field to use as content directory name format. The format of date follows ISO 8601 (YYYY-MM-DD), the timezone is always UTC.

This helps organize the directories. It can be used like this:

content.dir.name.format = "{content.publishDate}[ - ]?{content.id}[ - ]?{content.name}"

This make the date part of the `content.publishedAt` available as field
to use as content directory name format. The format of date follows ISO
8601 (YYYY-MM-DD), the timezone is always UTC.
@patrickkfkan
Copy link
Copy Markdown
Owner

Thanks for the PR. I'll review it this weekend when I'm less busy and merge it~

@patrickkfkan patrickkfkan changed the base branch from master to next April 24, 2024 15:28
@patrickkfkan patrickkfkan merged commit e30fccc into patrickkfkan:next Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants