diff options
Diffstat (limited to 'example/tpl/render_gemtext_link.html')
-rw-r--r-- | example/tpl/render_gemtext_link.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/example/tpl/render_gemtext_link.html b/example/tpl/render_gemtext_link.html new file mode 100644 index 0000000..b0d1251 --- /dev/null +++ b/example/tpl/render_gemtext_link.html @@ -0,0 +1,5 @@ +{{- $url := .URL }} +{{- if (hasPrefix "gemini://" $url) }} + {{- $url = printf "https://gemini.tildeverse.org/?%s" $url }} +{{- end }} +<p><a href="{{ $url }}">{{ .Label }}</a></p> |