Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#2224 git created option for date #2468

Merged
merged 1 commit into from Jun 30, 2022

Conversation

Snapstromegon
Copy link
Member

@Snapstromegon Snapstromegon commented Jun 29, 2022

This change allows to use "git created" as a magic string to use the first appearance in git as the date of a template.

This uses gits feature to also track the file across renames.

If a file isn't yet tracked, it uses the current date.

It uses "git created" instead of "git first added", to keep closer to the already existing "created" option.

fixes #2224

This change allows to use "git created" as a magic string to use the first appearance in git as the date of a template.

This uses gits feature to also track the file across renames.

If a file isn't yet tracked, it uses the current date

Signed-off-by: Raphael Höser <raphael@hoeser.info>
@zachleat
Copy link
Member

Great, thank you!

2.0.0-canary.13

zachleat added a commit to 11ty/11ty-website that referenced this pull request Jun 30, 2022
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.

Use first commit as a date front matter option
2 participants