From 2b87beef57a79e7ba4441988fd00d3777efc5fe3 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Mon, 22 Feb 2021 13:19:21 +0800 Subject: [PATCH] update --- _config.yml | 6 +++--- layout/_partial/head.ejs | 4 +++- layout/_partial/main/article/wiki_cover.ejs | 2 +- layout/_partial/sidebar/widgets/toc.ejs | 2 +- layout/archive.ejs | 2 +- layout/categories.ejs | 2 +- layout/index.ejs | 4 ++-- layout/page.ejs | 18 ++++++++++++----- layout/post.ejs | 12 +++++++++-- layout/tags.ejs | 2 +- layout/wiki.ejs | 13 ++++++++++-- scripts/helpers/scrollreveal.js | 9 +++++++++ scripts/tags/image.js | 16 +++++++++------ scripts/tags/inline-labels.js | 21 ++++++++++++++++++++ source/css/_layout/base.styl | 10 +++++----- source/css/_layout/pages/error.styl | 4 ++++ source/css/_layout/tag-plugins/checkbox.styl | 3 ++- 17 files changed, 98 insertions(+), 32 deletions(-) create mode 100644 scripts/helpers/scrollreveal.js create mode 100644 scripts/tags/inline-labels.js diff --git a/_config.yml b/_config.yml index caa8899..6c0203c 100755 --- a/_config.yml +++ b/_config.yml @@ -148,7 +148,7 @@ plugins: scrollreveal: enable: true js: https://cdn.jsdelivr.net/npm/scrollreveal@4.0.7/dist/scrollreveal.min.js - distance: 16px - duration: 800 # ms - interval: 80 # ms + distance: 8px + duration: 500 # ms + interval: 50 # ms scale: 1 # 0.1~1 diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs index d3b5a5e..2ee029f 100755 --- a/layout/_partial/head.ejs +++ b/layout/_partial/head.ejs @@ -1,6 +1,8 @@ <% function generate_title() { - if (page.seo_title || page.title || page.wiki || page.layout) { + if (page.layout == 'wiki' && page.wiki && (page.title || page.seo_title)) { + return page.wiki + __('symbol.colon') + (page.seo_title || page.title) + ' - ' + config.title; + } else if (page.seo_title || page.title || page.wiki || page.layout) { return (page.seo_title || page.title || page.wiki || page.layout) + ' - ' + config.title; } else if (page.category) { return __('btn.category') + __('symbol.colon') + page.category + ' - ' + config.title; diff --git a/layout/_partial/main/article/wiki_cover.ejs b/layout/_partial/main/article/wiki_cover.ejs index b1fb595..52ac08d 100644 --- a/layout/_partial/main/article/wiki_cover.ejs +++ b/layout/_partial/main/article/wiki_cover.ejs @@ -11,7 +11,7 @@ function layoutWikiCover() { cover = ['logo', 'title', 'description']; } var el = ''; - el += '
'; + el += '
'; el += '
'; if (page.logo && cover.includes('logo')) { el += '