News for hackers. Stuff that matters.
Re:Using Hugo, Gitlab Pages, and Cloudflare to Create and Ru... by bilal4hmed on Saturday June 01, 2019 @10:06AM (#20069239)
What is a good way to get analytics and comments in such a set up ?
Re:Using Hugo, Gitlab Pages, and Cloudflare to Create and Ru... by infominer on Saturday June 01, 2019 @03:43PM (#20071162)
I'm really interested to try staticman to run from a pi, but I found a bunch of different ways that I'll experiment with and have listed here.

That page is geared towards GitHub Pages\Jekyll, however a number of the solutions are SSG agnostic.

https://staticman.net/

https://github.com/aioobe/dead-simple-jekyll-comments

https://infominer.id/web-work/posts/github-pages-starter-pac...

Re:Using Hugo, Gitlab Pages, and Cloudflare to Create and Ru... by tkainrad on Saturday June 01, 2019 @01:08PM (#20070161)
Op here, I am using Disqus for comments. This is very easy to setup. My template even supports this out-of-the-box. Google Analytics is even easier - the only thing you have to do is set your analytics ID in your hugo site configuration.
Re:Using Hugo, Gitlab Pages, and Cloudflare to Create and Ru... by JonLim on Saturday June 01, 2019 @10:12AM (#20069277)
Not OP, but you can embed Google Analytics (or Tag Manager) into your Hugo template, and it's fairly straightforward to do.

Comments I'm not entirely sure of, because I never wanted them on my site in the first place!

Re:Using Hugo, Gitlab Pages, and Cloudflare to Create and Ru... by pmtarantino on Saturday June 01, 2019 @10:20AM (#20069318)
For comments you can embed an external service, like Disqus.
Re:Using Hugo, Gitlab Pages, and Cloudflare to Create and Ru... by JonLim on Saturday June 01, 2019 @10:22AM (#20069329)
Agree! And I'm sure it's also another script to add to the templates, at the footer of a post template, probably?
Re:Using Hugo, Gitlab Pages, and Cloudflare to Create and Ru... by abdusco on Saturday June 01, 2019 @11:10AM (#20069542)
For comments, check out https://commento.io
Re:Using Hugo, Gitlab Pages, and Cloudflare to Create and Ru... by tkainrad on Saturday June 01, 2019 @02:26PM (#20070639)
Thanks for the input, I will do some reading regarding Disqus VS commento.
Re:Using Hugo, Gitlab Pages, and Cloudflare to Create and Ru... by KajMagnus on Sunday June 02, 2019 @02:09PM (#20077025)
Another Disqus alternative you maybe haven't heard about? https://www.talkyard.io/blog-comments (this too with privacy, no ads etc. I'm developing it. Feedback & feature wishes = welcome)