sbruder / spectral

Port of html5up’s spectral theme to hugo
Other
63 stars 42 forks source link

Added Google Analytics and SASS #30

Closed PrestonHager closed 9 months ago

PrestonHager commented 9 months 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 9 months 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 9 months 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 9 months ago

Thanks for the PR @PrestonHager