2020-03-19 05:35:37 +01:00
|
|
|
{{- $options := cond .IsNamedParams (.Get "href") (.Get 0) | dict "href" -}}
|
2020-03-17 14:16:04 +01:00
|
|
|
{{- if .IsNamedParams -}}
|
2020-03-19 05:35:37 +01:00
|
|
|
{{- $options = dict "content" (.Get "content") | merge $options -}}
|
2020-03-17 14:16:04 +01:00
|
|
|
{{- $options = dict "title" (.Get "title") | merge $options -}}
|
|
|
|
{{- $options = dict "class" (.Get "class") | merge $options -}}
|
2020-03-19 05:35:37 +01:00
|
|
|
{{- $options = dict "rel" (.Get "rel") | merge $options -}}
|
2020-03-17 14:16:04 +01:00
|
|
|
{{- else -}}
|
|
|
|
{{- $options = dict "content" (.Get 1 | default (.Get 0)) | merge $options -}}
|
|
|
|
{{- $options = dict "title" (.Get 2) | merge $options -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- partial "plugin/link.html" $options -}}
|