gokarna-theme / gokarna-hugo

A minimal opinionated theme for Hugo
https://gokarna-hugo.netlify.app
GNU General Public License v3.0
357 stars 139 forks source link

External AvatarURL #193

Closed luanalatte closed 1 year ago

luanalatte commented 1 year ago

How should I go about using an external URL for my avatar? since both header.html and index.html refer to it as {{ .Site.BaseURL }}{{ .Site.Params.AvatarURL }} I would need to get rid of the baseURL part, but overriding those two files entirely just for this change seems silly.

Is there an alternate solution here that I'm missing? If not, I thought about splitting the img tag into an avatar.html partial that can be easily overriden on its own (although it requires a couple extra tweaks to re-implement the size-* classes.

yashmehrotra commented 1 year ago

Nice find, I'll update the template to handle external urls