aboutsummaryrefslogtreecommitdiff
path: root/example/tpl/render_gemtext_link.html
blob: b0d125165f238f98d5a8b5a955843edda977807f (plain)
1
2
3
4
5
{{- $url := .URL }}
{{- if (hasPrefix "gemini://" $url) }}
  {{- $url = printf "https://gemini.tildeverse.org/?%s" $url }}
{{- end }}
<p><a href="{{ $url }}">{{ .Label }}</a></p>