lukeorth / poison

Professional Hugo theme for dev bloggers. Based on Mdo's classic Hyde theme.
https://poison.lukeorth.com
GNU General Public License v3.0
205 stars 97 forks source link

feat: add sourcehut to socials #193

Open freedomischaos opened 1 month ago

freedomischaos commented 1 month ago

I used the commit posted for https://github.com/lukeorth/poison/pull/182 as an example for writing a (s)crappy little icon for sourcehut (alternative github) - tried to mimic the github/gitlab syntax and put it around the same to have it earlier in the social icon listing.

They have a logo/media link - https://sourcehut.org/logo - if others might find it useful.

First time every messing with SVG/hacking hugo and I think it looks well enough for my lil website, but wasn't sure about making a PR as wanted someone to review what I did for the svg.

{{ 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 }}

Thanks!