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

github.com/wangchucheng/hugo-eureka.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWang Chucheng <me@wangchucheng.com>2021-07-05 06:52:33 +0300
committerWang Chucheng <me@wangchucheng.com>2021-07-05 06:52:33 +0300
commit378aad4d6f541e6a0b2f9f79cd54315b310f3f72 (patch)
tree153804d92432941f3dcf9fa376a7af2e4e206db8
parentea9fcd7eb6402a0eca91447391355bc2e8c75815 (diff)
fix: incorrect escape character display in summary
Closes #123
-rw-r--r--data/eureka.yaml2
-rw-r--r--layouts/partials/utils/get-summary.html4
-rw-r--r--package.json2
3 files changed, 4 insertions, 4 deletions
diff --git a/data/eureka.yaml b/data/eureka.yaml
index fb0a5d7..b7b5629 100644
--- a/data/eureka.yaml
+++ b/data/eureka.yaml
@@ -1 +1 @@
-version: 0.8.0 \ No newline at end of file
+version: 0.8.1-dev \ No newline at end of file
diff --git a/layouts/partials/utils/get-summary.html b/layouts/partials/utils/get-summary.html
index 311acdf..82a43ed 100644
--- a/layouts/partials/utils/get-summary.html
+++ b/layouts/partials/utils/get-summary.html
@@ -2,7 +2,7 @@
<a href="{{ .Permalink }}" class="font-bold text-xl hover:text-eureka">{{ .LinkTitle }}</a>
</div>
<div class="content">
- {{ .Summary | plainify }}
+ {{ .Summary | plainify | htmlUnescape }}
</div>
{{ if eq .Type "docs" }}
<div class="px-6 pt-4">
@@ -15,7 +15,7 @@
<a href="{{ .Permalink }}" class="font-semibold hover:text-eureka">{{ .LinkTitle }}</a>
</div>
<div class="">
- {{- .Summary | plainify -}}
+ {{- .Summary | plainify | htmlUnescape -}}
</div>
</div>
{{ end }}
diff --git a/package.json b/package.json
index ca581ea..5310624 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "hugo-eureka",
- "version": "0.8.0",
+ "version": "0.8.1-dev",
"description": "Eureka is a feature-rich and highly customizable Hugo theme.",
"repository": "https://github.com/wangchucheng/hugo-eureka",
"author": "C. Wang <me@wangchucheng.com>",