zwbetz-gh / cupper-hugo-theme

An accessibility-friendly Hugo theme, ported from the original Cupper project.
https://cupper-hugo-theme.netlify.app/
MIT License
301 stars 190 forks source link

disable GitInfo #57

Closed daijiang closed 3 years ago

daijiang commented 3 years ago

so that blogdown::new_site(theme = "zwbetz-gh/cupper-hugo-theme") would work when using this theme in R and blogdown. #55

danielfdickinson commented 3 years ago

Why does the exampleSite config.toml need to be changed for the blogdown command to work? Why can't you get the config.toml from elsewhere that does not affect exampleSite? (I think removing gitinfo might be a problem for the demo site, for instance).

zwbetz-gh commented 3 years ago

This theme expects the site to be a git repo because by default .Lastmod will be the last mod date per git.

Now, I added a new section to the readme for non-git repos and what to do in that case.

https://github.com/zwbetz-gh/cupper-hugo-theme/commit/ebceede3a7a602af01d382b6f3d65ef274de5f1a