diff --git a/themes/beautifulhugotier/layouts/partials/post_preview.html b/themes/beautifulhugotier/layouts/partials/post_preview.html index 801826e31f2c910b66aee6ebda679da73a3510a5..541746bde20983fa460dd06b76b187732bfd98bc 100644 --- a/themes/beautifulhugotier/layouts/partials/post_preview.html +++ b/themes/beautifulhugotier/layouts/partials/post_preview.html @@ -53,23 +53,23 @@ <div class="post-entry"> {{ if in .context.Params.tags "paper" }} <strong>Authors</strong>: {{ .context.Params.authors }} <br/> - {{ if .showSummary }} + {{ if not .hideSummary }} <strong>Abstract</strong>: {{ (substr .context.Params.abstract 0 250) }} {{ end }} <a href="{{ .context.Permalink }}" class="post-read-more">[{{ i18n "readMore" }}]</a> {{ else }} {{ if .context.Truncated }} - {{ if .showSummary }} + {{ if not .hideSummary }} {{ .context.Summary }} {{ end }} <a href="{{ .context.Permalink }}" class="post-read-more">[{{ i18n "readMore" }}]</a> {{ else if .context.Params.summary }} - {{ if .showSummary }} + {{ if not .hideSummary }} {{ .context.Summary }}<br/> {{end}} <a href="{{ .context.Permalink }}" class="post-read-more">[{{ i18n "readMore" }}]</a> {{ else }} - {{ if .showSummary }} + {{ if not .hideSummary }} {{ .context.Content }} {{ end }} {{ end }} diff --git a/themes/beautifulhugotier/layouts/shortcodes/latest-news.html b/themes/beautifulhugotier/layouts/shortcodes/latest-news.html index b5c4e23781353bac968c128c2e9e56d20bc3d838..64808ff0d81ac282221cd258b40f13574bdd7d56 100644 --- a/themes/beautifulhugotier/layouts/shortcodes/latest-news.html +++ b/themes/beautifulhugotier/layouts/shortcodes/latest-news.html @@ -10,7 +10,7 @@ <div class="posts-list"> <h5 style='font-weight: bold;'>Latest News</h5> {{ range first 2 $news }} - {{ partial "post_preview.html" (dict "context" .) }} + {{ partial "post_preview.html" (dict "context" . "hideSummary" true) }} {{ end }} </div> </div> diff --git a/themes/beautifulhugotier/layouts/shortcodes/upcoming-seminars.html b/themes/beautifulhugotier/layouts/shortcodes/upcoming-seminars.html index fb9f27e8fa752b3fd7a89c734e2958647daa77ba..00f902a2eaed9c803470d4cd30cd9afd3edc91f5 100644 --- a/themes/beautifulhugotier/layouts/shortcodes/upcoming-seminars.html +++ b/themes/beautifulhugotier/layouts/shortcodes/upcoming-seminars.html @@ -8,7 +8,7 @@ <div class="posts-list"> <h5 style='font-weight: bold;'>Upcoming Seminars</h5> {{ range first 2 $seminars }} - {{ partial "post_preview.html" (dict "context" . ) }} + {{ partial "post_preview.html" (dict "context" . "hideSummary" true) }} {{ end }} </div> </div>