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