Jieiku / abridge

Fast & Lightweight Zola Theme
https://abridge.pages.dev/
MIT License
142 stars 41 forks source link

Analytics support #175

Closed Guekka closed 1 week ago

Guekka commented 1 week ago

Hello. Thanks for this nice theme! I have not found an easy way to load a custom script. My current workaround is to extend the default templates, but that's not really intuitive I'm currently using Plausible if that matters, but I think a generic solution would be better What do you think?

Jieiku commented 1 week ago

I think it is a good idea. Abridge could have an empty template file to be included in which case your template file could override it and it's contents would get included in the head

We could also just use a config value in config.toml such as this:

head_extra = '<meta name="test1" content="value1" /><meta name="test2" content="value2" />'

Let me know what you think, or if you had any other ideas.

Guekka commented 1 week ago

The config.toml option is probably the simplest

Jieiku commented 1 week ago

done: https://github.com/Jieiku/abridge/commit/dfa40127ea0471488a04fa6cf67c749d429dde46

Guekka commented 1 week ago

That was fast, than you