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

github.com/queensferryme/hugo-theme-texify.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQueensferry <queensferry.me@gmail.com>2022-04-01 12:32:48 +0300
committerQueensferry <queensferry.me@gmail.com>2022-04-01 12:32:48 +0300
commit93a380f5a23a33088e108c6b16d5c51dd39104ca (patch)
tree53550c77fb29da0030f3baa61793b7e7e9c2a5a6
parent5ff0ac6942e7eea55de937953209922d4347a1a6 (diff)
refactor(BREAKING): rename options
-rw-r--r--config.toml4
-rw-r--r--layouts/_default/rss.xml2
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/index.html2
4 files changed, 5 insertions, 5 deletions
diff --git a/config.toml b/config.toml
index 7db5176..e5bde27 100644
--- a/config.toml
+++ b/config.toml
@@ -66,8 +66,8 @@ keywords = ["hugo", "latex", "theme"] # website keywords
customCSS = [] # path to custom css files, relative to ./static
customJS = [] # path to custom js files, relative to ./static
dateFormat = "2006-01-02" # date format, see https://gohugo.io/functions/format/
-enableFullRSS = true # rss full-text output
-enableHanEmph = true # use dots to emphasize chinese texts, see https://zh.wikipedia.org/wiki/%E7%9D%80%E9%87%8D%E5%8F%B7
+fullTextRSS = true # output full-text (instead of only summary) rss
+emphasisWithDots = true # use dots to emphasize chinese texts, see https://zh.wikipedia.org/wiki/%E7%9D%80%E9%87%8D%E5%8F%B7
since = "2019" # website created year
toc = false # whether to enable table of contents in posts
diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml
index 5fe60fc..0166f86 100644
--- a/layouts/_default/rss.xml
+++ b/layouts/_default/rss.xml
@@ -34,7 +34,7 @@
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
- {{ if .Site.Params.enableFullRSS }}
+ {{ if .Site.Params.fullTextRSS }}
<description>{{ .Content | html }}</description>
{{ else }}
<description>{{ .Summary | html }}</description>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index dbe21d2..7379739 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -33,7 +33,7 @@
</details>
{{ end }}
<article class="content">
- {{ if .Site.Params.enableHanEmph }}
+ {{ if .Site.Params.emphasisWithDots }}
{{ .Content | replaceRE "<strong>(\\p{Han}+?)</strong>" "<strong class=chinese>$1</strong>" | safeHTML }}
{{ else }}
{{ .Content }}
diff --git a/layouts/index.html b/layouts/index.html
index d910dea..d1da03f 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -20,7 +20,7 @@
</div>
{{ end }}
<div class="content">
- {{ if .Site.Params.enableHanEmph }}
+ {{ if .Site.Params.emphasisWithDots }}
{{ .Summary | replaceRE "<strong>(\\p{Han}+?)</strong>" "<strong class=chinese>$1</strong>" | safeHTML }}
{{ else }}
{{ .Summary }}