hugo-theme-cyberscopes/layouts/shortcodes/pv/link.html

3 lines
163 B
HTML

{{- $target := .Get "target" | default "data.id" -}}
{{- $prefix := .Get "prefix" | default "?id=" -}}
<a :href="'{{ $prefix }}' + {{ $target }}">{{ .Inner }}</a>