mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-11-01 00:35:54 +00:00
refactor(article-link): abstract anchor attributes for making article links formattable
This commit is contained in:
4 files changed
+8
-15
No files matched your search
@@ -26,11 +26,7 @@
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ with .Params.externalUrl }}
|
||||
<a class="{{ $articleClasses }}" href="{{ . }}" target="_blank" rel="external">
|
||||
{{ else }}
|
||||
<a class="{{ $articleClasses }}" href="{{ .RelPermalink }}">
|
||||
{{ end }}
|
||||
<a class="{{ $articleClasses }}" {{ partial "article-link/_external-link.html" . | safeHTMLAttr }}>
|
||||
{{- with $.Params.images -}}
|
||||
{{- range first 6 . }}
|
||||
<meta property="og:image" content="{{ . | absURL }}" />{{ end -}}
|
||||
|
||||
Reference in new issue
Block a user