mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-26 08:38:37 +01:00
11 lines
589 B
HTML
11 lines
589 B
HTML
{{- $options := cond .IsNamedParams (.Get "href") (.Get 0) | dict "href" -}}
|
|
{{- if .IsNamedParams -}}
|
|
{{- $options = dict "content" (.Get "content") | merge $options -}}
|
|
{{- $options = dict "title" (.Get "title") | merge $options -}}
|
|
{{- $options = dict "class" (.Get "class") | merge $options -}}
|
|
{{- $options = dict "rel" (.Get "rel") | merge $options -}}
|
|
{{- else -}}
|
|
{{- $options = dict "content" (.Get 1 | default (.Get 0)) | merge $options -}}
|
|
{{- $options = dict "title" (.Get 2) | merge $options -}}
|
|
{{- end -}}
|
|
{{- partial "plugin/link.html" $options -}}
|