mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-12-02 04:56:57 +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" -}}
|