mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-15 03:16:30 +01:00
11 lines
420 B
HTML
11 lines
420 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 -}}
|
|
{{- dict "Destination" $destination "Rel" "me" | merge . | partial "plugin/a.html" -}}
|