-
Notifications
You must be signed in to change notification settings - Fork 62
Markdown metadata for date
field is all in 1970
#507
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
Comments
For my website, I use a tool in my GitHub Actions workflow to restore the modified time to my post Markdown files so that the RSS feed always has the true last modified time: - name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # need to fetch all commits for git restore-mtime
- name: Restore timestamps
run: sudo apt-get install git-restore-mtime && git restore-mtime Then, you can remove this field from the metadata of each file, and in Python, you can do |
Pinging @sneakers-the-rat. This is odd, but it looks like the frontmatter you added got some generated dates? It looks to me like it was something akin to |
Lol no those were just placeholder dates intended to be replaced with actual dates I dont think I changed the mtime, but this would probably do it: https://github.com/pyOpenSci/python-package-guide/pull/488/files#diff-77763db26eb3ad9b3f8b8b9104c9ec0b97bbc5d264f644f811803ca1381616a1R4 |
I just noticed that the
date
field in the metadata for several Markdown files (for exampletutorials/publish-conda-forge.md
) states they were written in 1970. It looks like these were introduced in #488.The text was updated successfully, but these errors were encountered: