JasonYao / JasonYao.github.io

My personal site at jasonyao.com using Hugo
https://www.jasonyao.com
GNU General Public License v3.0
1 stars 0 forks source link

Generate site metadata json #8

Closed JasonYao closed 3 years ago

JasonYao commented 3 years ago

Useful to be able to directly query the site for site generation time, etc. Most info can be retrieved from https://gohugo.io/variables/git/.

Expected outcome: /meta/site-info.json returns a valid JSON object containing information about the current site, including SHA hash, generation time, etc.

JasonYao commented 3 years ago

Done with 5dbf810f5673361ccbcb0497f13bb5f633820591 (generaly post metadata generation) and e679d9ff5af66449171a0dc1953fcd7db5ee6bf4 (git information)