Merge repos with workflow
This commit is contained in:
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" -}}
|
||||
Reference in New Issue
Block a user