mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-09-02 19:52:40 +00:00
🐛 Fix: exclude image links to display external icon (#96)
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
{{- with .Content -}}
|
||||
{{- . | safeHTML -}}
|
||||
{{- end -}}
|
||||
{{- if (.ExternalIcon | default false) | and $external }}
|
||||
{{- if (.ExternalIcon | default false) | and $external | and (eq (hasPrefix .Content `<img` ) false) }}
|
||||
{{ if .Download }}
|
||||
{{ dict "Class" "fas fa-cloud-download-alt fa-fw fa-xs" | partial "plugin/icon.html" }}
|
||||
{{- else -}}
|
||||
|
||||
Reference in New Issue
Block a user