feat: support rel in social link item
This commit is contained in:
@@ -71,6 +71,9 @@
|
|||||||
{{- with $value.icon -}}
|
{{- with $value.icon -}}
|
||||||
{{- $social = dict "Icon" . | merge $social -}}
|
{{- $social = dict "Icon" . | merge $social -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- with $value.rel -}}
|
||||||
|
{{- $social = dict "Rel" . | merge $social -}}
|
||||||
|
{{- end -}}
|
||||||
{{- else if ne $value true -}}
|
{{- else if ne $value true -}}
|
||||||
{{- $social = dict "Id" $value | merge $social -}}
|
{{- $social = dict "Id" $value | merge $social -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -8,4 +8,8 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- $destination = printf (string $template) .Id -}}
|
{{- $destination = printf (string $template) .Id -}}
|
||||||
{{- end -}}
|
{{- 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" -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user