feat: support rel in social link item

This commit is contained in:
Dillon
2022-06-10 23:13:28 +08:00
parent d117526bc0
commit 4cdef8f493
2 changed files with 8 additions and 1 deletions

View File

@@ -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" -}}