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-06-10 17:13:28 +02:00
|
|
|
{{- $rel := "me" -}}
|
|
|
|
{{- with .Rel -}}
|
|
|
|
{{- $rel = printf "%v %v" $rel . -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- dict "Destination" $destination "Rel" $rel | merge . | partial "plugin/a.html" -}}
|