wsz987

兴趣使然 & 见证成长

0%

安装配置

1
npm install express --save
1
npm install compression --save
1
2
3
4
5
6
7
8
9
10
11
12
13
const express = require('express')
const bodyParser = require('body-parser')
// gzip压缩
// const compression = require('compression')
const app = express()
app.use(express.json())
app.use(compression())
// 打包后项目
// app.use(express.static('./dist'))

app.use(bodyParser.urlencoded({
extended: false
}))
阅读全文 »

live2D 博客板娘

Github 大佬仓库 live2d-widget

  1. 最简单CDN导入(功能限制太多)

    到布局文件 themes\next\layout\_layout.swig 中 手动引入

    1
    <script src="https://cdn.jsdelivr.net/gh/stevenjoezhang/live2d-widget@latest/autoload.js"></script>
    阅读全文 »

Hexo next主题添加鼠标点击特效

JS代码转载至 原生js实现鼠标点击出现文字特效(颜色随机)!

内容仅作学习! 文字底部版权不知道怎么关掉,望见谅…… 此篇为转载 + 本人笔记性质

themes\next\layout\_layout.swig 或 中添加

1
<script type="text/javascript" src="/js/click_show_text.js"></script>

themes\next\source\js 下新建 click_show_text.js 添加如下:

原代码并未添加闭包 本人建议且已添加闭包~~

阅读全文 »

前言: 网上找到的老版 版权开启方法不起作用

themes\next\layout\_macro\post.swig / 文章开头 设置 copyright: true 不起作用

实际新版next内置了版权信息模块
有两种启用模式 效果不一

阅读全文 »

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment