feat(plugin/style.html): add .Link tag to set href directly

This commit is contained in:
Sped0n
2023-11-03 14:23:37 +08:00
parent c0283620bd
commit 1910eb21db

View File

@@ -27,6 +27,9 @@
{{- end -}}
{{- $href = $resource.RelPermalink -}}
{{- end -}}
{{- with .Link -}}
{{- $href = . -}}
{{- end -}}
{{- if .Inline -}}
<style>{{- $resource.Content | safeCSS -}}</style>
{{- else if .Defer -}}