Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/puresyntax71/hugo-theme-chunky-poster.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/_default/card.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/card.html b/layouts/_default/card.html
index e247d8d..db61feb 100644
--- a/layouts/_default/card.html
+++ b/layouts/_default/card.html
@@ -5,7 +5,7 @@
{{- $images := . -}}
{{- with $page.Site.GetPage "section" "images" -}}
{{- with .Resources.GetMatch (strings.TrimPrefix "/images/" (index $images 0)) -}}
- {{- $image := .Resize "700x350" -}}
+ {{- $image := .Fill "700x350" -}}
<img data-src="{{ $image.RelPermalink }}" class="card-img-top mx-auto d-block" alt="{{ $page.Title }}">
{{- end -}}
{{- end -}}
@@ -14,7 +14,7 @@
<h4 class="card-title">{{ $page.Title }}</h4>
<p class="card-text text-muted text-uppercase">{{ $page.Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</p>
<div class="card-text">
- {{ $page.Summary | plainify }}
+ {{ $page.Summary | htmlUnescape }}
</div>
</div>
</a>