switch back to LoveIt, other theme is deprectated
This commit is contained in:
parent
260b6803e7
commit
51fb029ca2
4260 changed files with 49552 additions and 87082 deletions
15
themes/LoveIt/layouts/partials/plugin/social.html
Normal file
15
themes/LoveIt/layouts/partials/plugin/social.html
Normal file
|
@ -0,0 +1,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" -}}
|
Loading…
Add table
Add a link
Reference in a new issue