summaryrefslogtreecommitdiff
path: root/themes/LoveIt/layouts/partials/plugin/social.html
blob: 4b74a940f39a7ed83b53f47860307e4a6fea8a64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{{- $destination := "" -}}
{{- with .Url -}}
    {{- $destination = . | relLangURL -}}
{{- else -}}
    {{- $template := .Template | default "%v" -}}
    {{- with .Prefix -}}
        {{- $template = . | strings.TrimSuffix "/" | printf "%v/%%v" -}}
    {{- end -}}
    {{- $destination = printf (string $template) .Id -}}
{{- end -}}
{{- $rel := "me" -}}
{{- with .Rel -}}
    {{- $rel = printf "%v %v" $rel . -}}
{{- end -}}
{{- dict "Destination" $destination "Rel" $rel | merge . | partial "plugin/a.html" -}}