mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-14 02:46:16 +01:00
feat: support rel in social link item
This commit is contained in:
parent
d117526bc0
commit
4cdef8f493
2 changed files with 8 additions and 1 deletions
|
@ -71,6 +71,9 @@
|
|||
{{- with $value.icon -}}
|
||||
{{- $social = dict "Icon" . | merge $social -}}
|
||||
{{- end -}}
|
||||
{{- with $value.rel -}}
|
||||
{{- $social = dict "Rel" . | merge $social -}}
|
||||
{{- end -}}
|
||||
{{- else if ne $value true -}}
|
||||
{{- $social = dict "Id" $value | merge $social -}}
|
||||
{{- end -}}
|
||||
|
|
|
@ -8,4 +8,8 @@
|
|||
{{- end -}}
|
||||
{{- $destination = printf (string $template) .Id -}}
|
||||
{{- end -}}
|
||||
{{- dict "Destination" $destination "Rel" "me" | merge . | partial "plugin/a.html" -}}
|
||||
{{- $rel := "me" -}}
|
||||
{{- with .Rel -}}
|
||||
{{- $rel = printf "%v %v" $rel . -}}
|
||||
{{- end -}}
|
||||
{{- dict "Destination" $destination "Rel" $rel | merge . | partial "plugin/a.html" -}}
|
||||
|
|
Loading…
Reference in a new issue