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

github.com/josephhutch/aether.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Hutchinson <hutch7995@gmail.com>2020-08-07 01:12:27 +0300
committerJoe Hutchinson <hutch7995@gmail.com>2020-08-07 01:12:27 +0300
commitc0c315882e286fc30c484f55d5d207994bed89bb (patch)
treed9763a862eda156e8fd1d73ee9e2d0af430d25fb
parent31ebce832658abfc7ace450a8b120648a3168631 (diff)
Fix links breaking li cards when the manual more summary divider is used
-rw-r--r--layouts/_default/li-next.html2
-rw-r--r--layouts/_default/li.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/li-next.html b/layouts/_default/li-next.html
index 2b97804..e95a1c1 100644
--- a/layouts/_default/li-next.html
+++ b/layouts/_default/li-next.html
@@ -14,7 +14,7 @@
{{ end }}
<article class="card-body">
<h2 class="card-title">{{ .Title }}</h2>
- <p class="card-text">{{ if (isset .Params "description") }}{{ index .Params "description" }}{{ else }}{{ .Summary }}{{ end }}</p>
+ <p class="card-text">{{ if (isset .Params "description") }}{{ index .Params "description" | htmlUnescape }}{{ else }}{{ .Summary | plainify | htmlUnescape }}{{ end }}</p>
<div class="card-subtext muted-text">
<p>Posted <time datetime="{{ .PublishDate.Format "2006-01-02 12:00" }}">{{ .PublishDate.Format "Jan 2, 2006" }}</time></p>
{{ if (isset .Params "categories") }}<p>{{ range .Params.categories }}#{{ . }} {{ end }}</p>{{ end }}
diff --git a/layouts/_default/li.html b/layouts/_default/li.html
index 6c65511..6e3eb70 100644
--- a/layouts/_default/li.html
+++ b/layouts/_default/li.html
@@ -14,7 +14,7 @@
{{- end }}
<article class="card-body">
<h2 class="card-title">{{ .Title }}</h2>
- <p class="card-text">{{ if (isset .Params "description") }}{{ index .Params "description" }}{{ else }}{{ .Summary }}{{ end }}</p>
+ <p class="card-text">{{ if (isset .Params "description") }}{{ index .Params "description" | htmlUnescape }}{{ else }}{{ .Summary | plainify | htmlUnescape }}{{ end }}</p>
<div class="card-subtext muted-text">
<p>Posted <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "Jan 2, 2006" }}</time></p>
{{ if (isset .Params "categories") }}<p>{{ range .Params.categories }}#{{ . | urlize | title }} {{ end }}</p>{{ end }}