mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-28 19:22:50 +01:00
15 lines
512 B
HTML
15 lines
512 B
HTML
{{- $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" -}}
|