mirror of
https://github.com/idanoo/m2.nz.git
synced 2024-11-23 08:45:12 +00:00
12 lines
423 B
HTML
12 lines
423 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 -}}
|
||
|
{{- dict "Destination" $destination "Rel" "me" | merge . | partial "plugin/link.html" -}}
|