diff --git a/layouts/partials/hb/modules/blog/index.html b/layouts/partials/hb/modules/blog/index.html index e3dc20df..59ff8ce1 100644 --- a/layouts/partials/hb/modules/blog/index.html +++ b/layouts/partials/hb/modules/blog/index.html @@ -11,7 +11,7 @@ {{- with $pinnedPages }}
- {{ partial "hb/modules/blog/posts" (dict "Pages" . "Cols" "row-cols-1") }} + {{ partial "hb/modules/blog/posts" (dict "Pages" . "Cols" "row-cols-1" "ReadMore" false) }}
{{- end }} diff --git a/layouts/partials/hb/modules/blog/post/card.html b/layouts/partials/hb/modules/blog/post/card.html index 0f7c6b7b..ec3e42ec 100644 --- a/layouts/partials/hb/modules/blog/post/card.html +++ b/layouts/partials/hb/modules/blog/post/card.html @@ -1,5 +1,6 @@ {{- $page := .Page }} {{- $showSummary := default true .Summary }} +{{- $readMore := default true .ReadMore }} {{- $readingTime := default true .ReadingTime }} {{- $meta := default true .Meta }}
@@ -40,7 +41,7 @@
{{- $summary -}}
- {{- if $truncated }} + {{- if and $readMore $truncated }}
diff --git a/layouts/partials/hb/modules/blog/posts.html b/layouts/partials/hb/modules/blog/posts.html index 9729563f..6fdc846f 100644 --- a/layouts/partials/hb/modules/blog/posts.html +++ b/layouts/partials/hb/modules/blog/posts.html @@ -1,8 +1,9 @@ {{- $cols := default "row-cols-1 row-cols-lg-2 row-cols-xl-3" .Cols }} +{{- $readMore := default true .ReadMore }}
{{ range .Pages }}
- {{- $ctx := dict "Page" . }} + {{- $ctx := dict "Page" . "ReadMore" $readMore }} {{ partial "hb/modules/blog/post/card" $ctx }}
{{ end }}