2020-05-28 11:05:37 +02:00
|
|
|
{{- $destination := "" -}}
|
|
|
|
{{- with .Url -}}
|
|
|
|
{{- $destination = . | relLangURL -}}
|
2020-04-24 13:04:37 +02:00
|
|
|
{{- else -}}
|
2020-05-28 11:05:37 +02:00
|
|
|
{{- $template := .Template | default "%v" -}}
|
|
|
|
{{- with .Prefix -}}
|
2020-05-18 10:10:24 +02:00
|
|
|
{{- $template = . | strings.TrimSuffix "/" | printf "%v/%%v" -}}
|
2020-04-24 13:04:37 +02:00
|
|
|
{{- end -}}
|
2020-05-28 11:05:37 +02:00
|
|
|
{{- $destination = printf (string $template) .Id -}}
|
2020-04-24 13:04:37 +02:00
|
|
|
{{- end -}}
|
2022-05-13 20:28:35 +02:00
|
|
|
{{- dict "Destination" $destination "Rel" "me" | merge . | partial "plugin/a.html" -}}
|