refactor(article-link): abstract anchor attributes for making article links formattable

This commit is contained in:
ZhenShuo Leo
2025-07-09 23:39:03 +08:00
parent 8d940881a4
commit 35faec527b
4 changed files with 8 additions and 15 deletions
@@ -0,0 +1,5 @@
{{ with .Params.externalUrl }}
href="{{ . }}" target="_blank" rel="external"
{{ else }}
href="{{ .RelPermalink }}"
{{- end -}}