diff options
author | Queensferry <queensferry.me@gmail.com> | 2022-04-01 12:32:48 +0300 |
---|---|---|
committer | Queensferry <queensferry.me@gmail.com> | 2022-04-01 12:32:48 +0300 |
commit | 93a380f5a23a33088e108c6b16d5c51dd39104ca (patch) | |
tree | 53550c77fb29da0030f3baa61793b7e7e9c2a5a6 /layouts | |
parent | 5ff0ac6942e7eea55de937953209922d4347a1a6 (diff) |
refactor(BREAKING): rename options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/rss.xml | 2 | ||||
-rw-r--r-- | layouts/_default/single.html | 2 | ||||
-rw-r--r-- | layouts/index.html | 2 |
3 files changed, 3 insertions, 3 deletions
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 }} |