Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ReverseSacle committed Oct 2, 2023
1 parent e3934eb commit 4cbf18a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 11 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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');
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion source/css/_common/components/third-party/search.styl
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
10 changes: 7 additions & 3 deletions source/css/_common/outline/sidebar/author.styl
Original file line number Diff line number Diff line change
Expand Up @@ -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*/
}


Expand Down
2 changes: 0 additions & 2 deletions source/js/_app/pjax.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;');

0 comments on commit 4cbf18a

Please sign in to comment.