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

github.com/xaprb/story.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve <acahir@users.noreply.github.com>2019-01-29 00:12:13 +0300
committerSteve <acahir@users.noreply.github.com>2019-01-29 00:12:13 +0300
commit22c6ee74194093426e14cd1cbdfd82c4d175103c (patch)
tree5dba42bfc70b1db0f8cf10c552229d80ac849ba4
parentae581648d2b136787d3fae6451b57442daffce6f (diff)
Fix htmlEscaped chars in json output for lunr
Both .Title and .Summary output modified with `plainify | htmlUnescape` to remove escaped chars.
-rw-r--r--layouts/index.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/index.json b/layouts/index.json
index 52b514b..14b2184 100644
--- a/layouts/index.json
+++ b/layouts/index.json
@@ -1,5 +1,5 @@
{{- $.Scratch.Add "index" slice -}}
{{- range where .Site.Pages ".Params.skip" "ne" "true" -}}
-{{- $.Scratch.Add "index" (dict "uri" .Permalink "title" (cond (eq .Site.Params.titlecase true) (.Title | title | markdownify) (.Title | markdownify)) "categories" .Params.categories "keywords" .Params.keywords "content" .Summary) -}}
+{{- $.Scratch.Add "index" (dict "uri" .Permalink "title" (cond (eq .Site.Params.titlecase true) (.Title | title | markdownify | htmlUnescape) (.Title | markdownify | htmlUnescape)) "categories" .Params.categories "keywords" .Params.keywords "content" (.Summary | plainify | htmlUnescape )) -}}
{{- end -}}
{{- $.Scratch.Get "index" | jsonify -}}