2021-02-18 21:44:01 +01:00
|
|
|
{{- $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 -}}
|
2022-08-14 19:01:21 +02:00
|
|
|
{{- $rel := "me" -}}
|
|
|
|
{{- with .Rel -}}
|
|
|
|
{{- $rel = printf "%v %v" $rel . -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- dict "Destination" $destination "Rel" $rel | merge . | partial "plugin/a.html" -}}
|