A starter repository for a classic blog website using the Eleventy SSG.
Of course, a very opiniated one, and a work in progress!
Posts default dates (file creation) are only reliable in local, for you. Depending where you are, they may change during transfer, upload, etc. Differently but not really better, dates embedded inside the post filename (YYYY-MM-DD) only works in UTC, and will never - if needed - include a time of day.
=> Conclusion: The only valid dates are coming from the "data cascade", from Frontmatter to computed data and work best in their complete form like this: "2020-07-20T13:00:00.000Z" or simplified like this: "2020-07-20 20:00:00 +7".
SEO experts are saying you should avoid to set year, month and day in your URL, which means you may have trouble keeping your images with their related post, and in the same time not keeping that "dated" structure for these same markdown document.
=> Conclusion: As you build permalinks, you have to build links to images.
With a little help from @tigersway/gulp-responsive and gulp-vinyl-flow, Eleventy can transform every img
tag.
https://www.reddit.com/r/webdev/comments/eelqy0/gulp_in_2020/