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

github.com/dataCobra/hugo-vitae.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordataCobra <datacobra@mailbox.org>2020-04-22 21:39:21 +0300
committerdataCobra <datacobra@mailbox.org>2020-04-22 21:39:21 +0300
commita4cb2dfd598fd91bbc10a612e0cb34fade341f43 (patch)
treeada6037bd4e9be294e38823de310f8bdd1dd7de4
parent4c5997cd83f3750fe38840414e7d004e1666729d (diff)
Fix display of content description2.0-2
The htmlUnescape was missing for the display of .Plain when .Description of content is not set.
-rw-r--r--layouts/_default/list.html4
-rw-r--r--layouts/index.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 8dddeea..b78c411 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -22,9 +22,9 @@
{{ if isset .Params "description" }}
{{ .Description }}
{{ else if gt (len .Plain) 120 }}
-{{ slicestr .Plain 0 120 }}...
+{{ slicestr .Plain 0 120 | htmlUnescape }}...
{{ else }}
-{{ .Plain }}
+{{ .Plain | htmlUnescape }}
{{ end }}
</span>
</div>
diff --git a/layouts/index.html b/layouts/index.html
index 3dcb45d..82b51dd 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -18,9 +18,9 @@
{{ if isset .Params "description" }}
{{ .Description }}
{{ else if gt (len .Plain) 120 }}
-{{ slicestr .Plain 0 120 }}...
+{{ slicestr .Plain 0 120 | htmlUnescape }}...
{{ else }}
-{{ .Plain }}
+{{ .Plain | htmlUnescape }}
{{ end }}
</span>
</div>