diff --git a/layouts/partials/bootstrap/article-cards.html b/layouts/partials/bootstrap/article-cards.html index 374e779..0f5f7c0 100644 --- a/layouts/partials/bootstrap/article-cards.html +++ b/layouts/partials/bootstrap/article-cards.html @@ -1,28 +1,33 @@ {{- $summaryLen := 120 }} {{- $limit := 12 }} {{- $sections := slice }} +{{- $linkText := i18n "read_more" }} {{- if .IsNamedParams }} {{- with .Get "limit" }}{{ $limit = . }}{{ end }} {{- with .Get "summaryLen" }}{{ $summaryLen = . }}{{ end }} {{- with .Get "sections" }}{{ $sections = split . "," }}{{ end }} + {{- if isset .Params "linkText" }}{{ $linkText = .Get "linkText" }}{{ end }} {{- end }} {{- $pages := site.RegularPages }} {{- with $sections }} {{- $pages = where $pages "Section" "in" . }} {{- end }} -