sbruder / spectral

Port of html5up’s spectral theme to hugo
Other
75 stars 46 forks source link

Added Google Analytics and SASS #30

Closed PrestonHager closed 1 year ago

PrestonHager commented 1 year ago

I added functionality for SASS generation which is pretty standard in Hugo sites. I also fixed issue #27 by adding support for google analytics. The script it uses for Google analytics is the default, but I'm not sure if it's the correct one. There may be a different more generic script we should use for the analytics part.

dholbach commented 1 year ago

Thanks for the PR! I don't know much about Google Analytics, but would it be possible to use https://gohugo.io/templates/internal/#google-analytics?

PrestonHager commented 1 year ago

Looks like a good tool! I went ahead and changed the header.html partial to use the internal Google Analytics that Hugo has.

dholbach commented 1 year ago

Thanks for the PR @PrestonHager