diff --git a/layouts/partials/hb/modules/blog/post/card-img.html b/layouts/partials/hb/modules/blog/post/card-img.html index fa6799cb..7552cc8b 100644 --- a/layouts/partials/hb/modules/blog/post/card-img.html +++ b/layouts/partials/hb/modules/blog/post/card-img.html @@ -1,7 +1,14 @@ {{- $page := . }} +{{- $url := .RelPermalink }} +{{- $external := false }} +{{- with .Params.external_url }} + {{- $url = . }} + {{- $external = true }} +{{- end }} + {{ if $external }}target="_blank" rel="external"{{ end }} + href="{{ $url }}"> {{- $img := "" }} {{- with .Params.images }} {{- $img = index . 0 }}