mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-15 03:16:30 +01:00
11 lines
388 B
HTML
11 lines
388 B
HTML
{{- $href := "" -}}
|
|
{{- with .url -}}
|
|
{{- $href = . | relLangURL -}}
|
|
{{- else -}}
|
|
{{- $template := .template | default "%v" -}}
|
|
{{- with .prefix -}}
|
|
{{- $template = . | strings.TrimSuffix "/" | printf "%v/%%v" -}}
|
|
{{- end -}}
|
|
{{- $href = printf (string $template) .id -}}
|
|
{{- end -}}
|
|
{{- dict "href" $href "rel" "me" | merge . | partial "plugin/link.html" -}}
|