You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Saga reads the file's creation and last modified dates, and stores those into the Item. The dates are then used inside of the atom feed generation for example. But the creation date is also the fallback for the published date: if you don't include a date field in your markdown metadata then the published date is set to the file creation date.
This is a problem because the file creation date is not stored in git, and when you do a fresh checkout the file creation date is set to "right now" instead of the actual past creation date. This is also a problem on my own website. While I do override the published date to something consistent, the last modified date is used in the atom feed.. and these dates just keep on changing because Netlify fetches the repo and the dates change.
Basically, using file attributes doesn't seem like a good idea?
On the other hand, this is not a problem with Saga but a problem with git. For people who don't store their website in git or who create the static sites on their own computer, this wouldn't be a problem. So maybe it would be better to add something to the Saga docs about this?
Each time I clone my repository, I want the timestamps of files to reflect when they were last changed in the remote repository, not when I cloned the repository.
The text was updated successfully, but these errors were encountered:
Currently Saga reads the file's creation and last modified dates, and stores those into the
Item
. The dates are then used inside of the atom feed generation for example. But the creation date is also the fallback for the published date: if you don't include adate
field in your markdown metadata then the published date is set to the file creation date.This is a problem because the file creation date is not stored in git, and when you do a fresh checkout the file creation date is set to "right now" instead of the actual past creation date. This is also a problem on my own website. While I do override the published date to something consistent, the last modified date is used in the atom feed.. and these dates just keep on changing because Netlify fetches the repo and the dates change.
Basically, using file attributes doesn't seem like a good idea?
On the other hand, this is not a problem with Saga but a problem with git. For people who don't store their website in git or who create the static sites on their own computer, this wouldn't be a problem. So maybe it would be better to add something to the Saga docs about this?
See also https://stackoverflow.com/questions/1964470/whats-the-equivalent-of-subversions-use-commit-times-for-git:
The text was updated successfully, but these errors were encountered: