LoveIt/layouts/partials/plugin/social.html
2020-05-18 16:10:24 +08:00

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" -}}