gmgauthier.com/layouts/shortcodes/reltab.html

9 lines
283 B
HTML

<!-- assumes that the post contains a relative url, and that the local BaseURL should be pre-pended -->
<a href='{{ .Site.BaseURL }}{{ .Get "url" }}' target="_blank">
{{ with .Get "title" }}
{{.}}
{{else}}
{{ .Site.BaseURL }}{{ .Get "url" }}
{{end}}
</a>