email-markup-consortium / emailmarkup.org

https://emailmarkup.org
6 stars 4 forks source link

Add last modified date #35

Closed husseinalhammad closed 2 years ago

husseinalhammad commented 2 years ago

This PR adds the last modified date of a document. Closes #33

This just reads the last modified date via the file system instead of querying GitHub. Not sure if this would get us any unexpected values. Worth checking the Netlify previews.


Update: that did not work unfortunately (always get the day's date). Switching this to draft for now.


Update: Date is now fetched from GitHub's public API. Example: https://api.github.com/repos/email-markup-consortium/emailmarkup.org/commits?path=src%2Fpages%2Fen%2Fdocs%2Findex.md&page=1&per_page=1

netlify[bot] commented 2 years ago

Deploy Preview for emailmarkup ready!

Name Link
Latest commit 3c29c9bf71bc5f0b8bbee7845b0cf17831021c34
Latest deploy log https://app.netlify.com/sites/emailmarkup/deploys/630de8185d27bf0009288da5
Deploy Preview https://deploy-preview-35--emailmarkup.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

husseinalhammad commented 2 years ago

Good catch @M-J-Robbins.