MeiK2333 / github-style

https://themes.gohugo.io/themes/github-style
MIT License
546 stars 172 forks source link

update framework and github-bootstrap.js #42

Closed liz2020 closed 3 years ago

liz2020 commented 3 years ago

I am trying to fix #25, which most likely caused by not having hours and minutes for the code below https://github.com/MeiK2333/github-style/blob/d7c1c37c62d175bc5511ec39f0a28eb0aaef870e/layouts/partials/overview.html#L49-L51 I am trying to switch the <relative-time> to <time-ago>, and use the date format "2024-04-01T16:30:00-08:00". However, this is not supported. I guess that's due to the version of framework/github-bootstrap is old? But I can't seem to figure out how to update these two files. Any suggestions?

liz2020 commented 3 years ago

The framework.js is from github-syntax-theme-generator. The github-bootstrap is from githubassets.com, but could not figure out where to find a newer version. Both are used for the contribution function. Actually, an update is not needed.

The reason date format is not working is on hugo's end instead of time-components' end. Hugo's Date.Format only take special strings from https://gohugo.io/functions/format/ as format, so "2024-04-01T16:30:00-08:00" is not accepted.