diff --git a/example/_config.shoka.yml b/example/_config.shoka.yml index abf4ce5..b1e12ea 100644 --- a/example/_config.shoka.yml +++ b/example/_config.shoka.yml @@ -91,8 +91,8 @@ search: # Valine # For more information: https://valine.js.org, https://github.com/xCss/Valine valine: - appId: - appKey: + appId: #这里不要忘了改 + appKey: #这里不要忘了改 placeholder: ヽ(○´∀`)ノ♪ # Comment box placeholder avatar: mp # Gravatar style pageSize: 10 # Pagination size diff --git a/layout/_alternate/atom.ejs b/layout/_alternate/atom.ejs index 6862b7c..16cff20 100644 --- a/layout/_alternate/atom.ejs +++ b/layout/_alternate/atom.ejs @@ -9,7 +9,7 @@ <%= config.author %> <%= moment(lastBuildDate).toISOString() %> - <%_ for (item of (config.keywords.split(',') || [])) { _%> + <%_ for (item of (config.keywords ? config.keywords.split(',') : [])) { _%> <%_ } _%> <%_ for (const post of posts) { _%> diff --git a/layout/_alternate/rss.ejs b/layout/_alternate/rss.ejs index 3d60515..835cb0e 100644 --- a/layout/_alternate/rss.ejs +++ b/layout/_alternate/rss.ejs @@ -12,7 +12,7 @@ <%= config.language %> <%= moment(lastBuildDate).locale('en').format('ddd, DD MMM YYYY HH:mm:ss ZZ') %> <%= moment(lastBuildDate).locale('en').format('ddd, DD MMM YYYY HH:mm:ss ZZ') %> - <%_ for (item of (config.keywords.split(',') || [])) { _%> + <%_ for (item of (config.keywords ? config.keywords.split(',') : [])) { _%> <%_ } _%> <%_ for (const post of posts) { _%> diff --git a/layout/_partials/header.njk b/layout/_partials/header.njk index c8c60b9..5c63ec4 100644 --- a/layout/_partials/header.njk +++ b/layout/_partials/header.njk @@ -8,6 +8,7 @@