github.com/rabbouni145/gg@v0.47.1/docs/layouts/shortcodes/gh.html (about) 1 {{ range .Params }} 2 {{ if eq (substr . 0 1) "@" }} 3 <a href="//github.com/{{ substr . 1 }}">{{ . }}</a> 4 {{ else if eq (substr . 0 2) "0x" }} 5 <a href="//github.com/gohugoio/hugo/commit/{{ substr . 2 }}">{{ substr . 2 6 }}</a> 6 {{ else }} 7 <a href="//github.com/gohugoio/hugo/issues/{{ . }}">#{{ . }}</a> 8 {{ end }} 9 {{ end }}