mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-22 14:56:19 +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" -}}
|