diff --git a/layouts/partials/bootstrap/article-cards.html b/layouts/partials/bootstrap/article-cards.html index d182f78..295ad90 100644 --- a/layouts/partials/bootstrap/article-cards.html +++ b/layouts/partials/bootstrap/article-cards.html @@ -4,6 +4,7 @@ {{- $linkText := i18n "read_more" }} {{- $itemAttrs := slice }} {{- $imgHeight := 120 }} +{{- $imgPlaceholder := "NO IMAGE" }} {{- if .IsNamedParams }} {{- with .Get "limit" }}{{ $limit = . }}{{ end }} {{- with .Get "summaryLen" }}{{ $summaryLen = . }}{{ end }} @@ -11,6 +12,7 @@ {{- if isset .Params "linkText" }}{{ $linkText = .Get "linkText" }}{{ end }} {{- $itemAttrs = partial "bootstrap/functions/attributes" (dict "Params" .Params "Prefix" "item-attr") }} {{- with .Get "imgHeight" }}{{ $imgHeight = . }}{{ end }} + {{- with .Get "imgPlaceholder" }}{{ $imgPlaceholder = . }}{{ end }} {{- end }} {{- $pages := site.RegularPages }} {{- with $sections }} @@ -48,7 +50,7 @@
- NO IMAGE + {{ $imgPlaceholder }}
{{- end }}