Editing Poison
-
1 min read
First time hacking hugo themes.
Added my sourcehut (alternative github) link to the poison theme for hugo - https://github.com/lukeorth/poison .
/themes/poison/layouts/partials/sidebar/socials.html
{{ if .Site.Params.sourcehut_url }}
<a target="_blank" class="social" title="Sourcehut" href="{{ .Site.Params.sourcehut_url }}">
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1.2em" viewBox="0 0 24 24">
<path fill="currentColor" d="M12 0.375C5.578 0.375 0.375 5.578 0.375 12s5.203 11.625 11.625 11.625 11.625 -5.203 11.625 -11.625S18.422 0.375 12 0.375m0 21c-5.18 0 -9.375 -4.195 -9.375 -9.375S6.82 2.625 12 2.625s9.375 4.195 9.375 9.375 -4.195 9.375 -9.375 9.375"/>
</svg>
</a>
{{ end }}
Add to your hugo.toml
sourcehut_url = "https://sr.ht/~freedomischaos/"