From 4cbf18a1fc970a5c5271390f5050796748ac8331 Mon Sep 17 00:00:00 2001 From: ReverseSacle Date: Mon, 2 Oct 2023 13:28:07 +0800 Subject: [PATCH] update --- README.md | 13 +++++++++---- _config.yml | 2 +- .../css/_common/components/third-party/search.styl | 4 +++- source/css/_common/outline/sidebar/author.styl | 10 +++++++--- source/js/_app/pjax.js | 2 -- 5 files changed, 20 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 0194fd7..42b3211 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,9 @@ output: "feed.json" ``` -(**Optional**)Using Gulp for cleaning Js, CSS and HTML. +## Optional plugins + +Using Gulp for cleaning Js, CSS and HTML. ```bash # install gulp @@ -118,10 +120,12 @@ npm install gulp --save-dev npm install gulp-clean-css gulp-html-minifier-terser gulp-htmlclean gulp-terser --save-dev ``` -Move to your hexo root dir, and create a new file named `gulp.js`,add following content. +Move to your hexo root dir, and create a new file named `gulp.js`, add following content. + +(Usual command using example, `hexo clean && hexo g && gulp`) ```javascript -// Dependience +// Dependiences var gulp = require('gulp'); var cleanCSS = require('gulp-clean-css'); var htmlmin = require('gulp-html-minifier-terser'); @@ -180,5 +184,6 @@ gulp.task('default', gulp.parallel( + Delete `Mermaid` plugin + Delete `media` plugin + Delete the `fireworks` effect -+ Remove the subtitle in the title ++ Remove the subtitle content in the title + Code correct ++ Remove the blur effect of author img and change the css of author image diff --git a/_config.yml b/_config.yml index 4b2abf6..520df23 100644 --- a/_config.yml +++ b/_config.yml @@ -144,7 +144,7 @@ post: # Reward (Donate) reward: # If true, reward will be displayed in every article by default. - enable: false + enable: true account: wechatpay: /wechatpay.png alipay: /alipay.png diff --git a/source/css/_common/components/third-party/search.styl b/source/css/_common/components/third-party/search.styl index 8c3468f..2025cff 100644 --- a/source/css/_common/components/third-party/search.styl +++ b/source/css/_common/components/third-party/search.styl @@ -1,8 +1,10 @@ #search { - position: fixed; + /* position: fixed; */ + position: absolute; background: var(--nav-bg); left: 0; top: 0; + margin: auto;/* no exit originally*/ width: 100%; height: 100%; padding: 1.25rem; diff --git a/source/css/_common/outline/sidebar/author.styl b/source/css/_common/outline/sidebar/author.styl index 4edaa17..84d57d6 100644 --- a/source/css/_common/outline/sidebar/author.styl +++ b/source/css/_common/outline/sidebar/author.styl @@ -5,13 +5,17 @@ } .image { - border: .0625rem solid var(--body-bg-shadow); display: block; - margin: 0 auto; +/* + margin: 0 auto; + border: .0625rem solid var(--body-bg-shadow); +*/ max-width: 10rem; padding: .125rem; - box-shadow: 0 0rem 1rem .625rem var(--body-bg-shadow); + box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1); + border: 1px solid #F8F8F8; border-radius: 50%; + animation: none;/* no exit originally*/ } diff --git a/source/js/_app/pjax.js b/source/js/_app/pjax.js index a62393e..b2de14c 100644 --- a/source/js/_app/pjax.js +++ b/source/js/_app/pjax.js @@ -121,10 +121,8 @@ const siteInit = function() { window.addEventListener('beforeunload', function() { pagePosition(); }) - siteRefresh(1); } window.addEventListener('DOMContentLoaded', siteInit); - console.log('%c Theme.Shoka.Derived v' + CONFIG.version + ' ', 'color: white; background: #e9546b; padding:5px 0;');