diff options
author | Baron Schwartz <xaprb@users.noreply.github.com> | 2019-01-30 20:54:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-30 20:54:07 +0300 |
commit | 50bf4ba8afaf94eb33bbcb575116c2e39c0f96e9 (patch) | |
tree | 5dba42bfc70b1db0f8cf10c552229d80ac849ba4 | |
parent | ae581648d2b136787d3fae6451b57442daffce6f (diff) | |
parent | 22c6ee74194093426e14cd1cbdfd82c4d175103c (diff) |
Merge pull request #72 from acahir/lunr-escapedHTML-fix
Fix htmlEscaped chars in json output for lunr
-rw-r--r-- | layouts/index.json | 2 |
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 -}} |