惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Attack and Defense Labs
Attack and Defense Labs
Engineering at Meta
Engineering at Meta
腾讯CDC
J
Java Code Geeks
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
G
Google Developers Blog
博客园 - 三生石上(FineUI控件)
Microsoft Azure Blog
Microsoft Azure Blog
The Cloudflare Blog
aimingoo的专栏
aimingoo的专栏
T
The Blog of Author Tim Ferriss
D
Darknet – Hacking Tools, Hacker News & Cyber Security
WordPress大学
WordPress大学
博客园_首页
I
InfoQ
NISL@THU
NISL@THU
Recorded Future
Recorded Future
Security Latest
Security Latest
K
Kaspersky official blog
L
Lohrmann on Cybersecurity
T
The Exploit Database - CXSecurity.com
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
U
Unit 42
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
www.infosecurity-magazine.com
www.infosecurity-magazine.com
C
CERT Recently Published Vulnerability Notes
W
WeLiveSecurity
Webroot Blog
Webroot Blog
Last Week in AI
Last Week in AI
AWS News Blog
AWS News Blog
IT之家
IT之家
S
Schneier on Security
雷峰网
雷峰网
Know Your Adversary
Know Your Adversary
T
Threat Research - Cisco Blogs
C
CXSECURITY Database RSS Feed - CXSecurity.com
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
L
LangChain Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
月光博客
月光博客
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Stack Overflow Blog
Stack Overflow Blog
有赞技术团队
有赞技术团队
云风的 BLOG
云风的 BLOG
G
GRAHAM CLULEY
O
OpenAI News
The Last Watchdog
The Last Watchdog
TaoSecurity Blog
TaoSecurity Blog
The GitHub Blog
The GitHub Blog
V
Vulnerabilities – Threatpost

秋澪的博客

MediaWarp说明文档 | 秋澪的博客 MacBook Air M1 2025年211工科本科生体验报告 | 秋澪的博客 Conda安装以及基础使用方法 | 秋澪的博客 利用CloudFlare搭建测速网站 | 秋澪的博客 Fcricle踩坑记录 | 秋澪的博客 FastCDN说明文档 | 秋澪的博客 利用CloudFlare搭建镜像站 | 秋澪的博客 Docker入门教程 | 秋澪的博客 UnlockMusic音乐解锁搭建教程 | 秋澪的博客 Excalidraw搭建教程 | 秋澪的博客 AutoFilm说明文档 | 秋澪的博客 利用CDN加速并保护站点 | 秋澪的博客 校园网碎碎念 | 秋澪的博客 三朝元老再就业——百元机装机体验暨P104-100快速上手 | 秋澪的博客 将M.2固态硬盘设为群晖存储池 | 秋澪的博客 Git快速上手指南 | 秋澪的博客 利用Ventoy打造最强硬盘 | 秋澪的博客 为Hexo博客添加后台管理系统 | 秋澪的博客 MarkDown笔记软件推荐 | 秋澪的博客 免费的云数据库推荐 | 秋澪的博客 使用BetterNCM美化网易云 | 秋澪的博客 Armbian手把手玩机指南01-系统刷入并安装可视化桌面 | 秋澪的博客 IOS旧版本应用推荐 | 秋澪的博客 51单片机学习记录-01 | 秋澪的博客 51单片机学习记录-00 | 秋澪的博客 免费域名注册 | 秋澪的博客 利用CloudFlare创建域名邮箱 | 秋澪的博客 在Render上部署Alist | 秋澪的博客 Docker命令大全 | 秋澪的博客 利用Replit搭建Alist | 秋澪的博客 MariaDB数据库搭建及基础用指南 | 秋澪的博客 Nginx-Proxy-Manager问题补充:DNSPod证书申请错误、NPM端口丢失 | 秋澪的博客 VPS基础配置 | 秋澪的博客 Ubuntu安装及ROS安装教程 | 秋澪的博客 个人图床搭建之Github篇 | 秋澪的博客 利用Replit搭建个人博客Halo | 秋澪的博客 AI工具网站推荐 | 秋澪的博客 MarkDown入门教程 | 秋澪的博客 基于Ubuntu安装docker | 秋澪的博客 利用FRP 和 Nginx-Proxy-Manager 为内网设备提供内外穿透服务 | 秋澪的博客 Hello World | 秋澪的博客
Hexo重装记录 | 秋澪的博客
标签 · 2023-05-18 · via 秋澪的博客

此内容根据文章生成,并经过人工审核,仅用于文章内容的解释与总结

准备工作

  • 安装Hexo
  • 安装NPM
  • 安装node.js

重装开始

更换淘宝源

1
npm config set registry http://registry.npmmirror.com

换回默认源

1
npm config set registry https://registry.npmjs.org/
  1. 安装Hexo
1
hexo init Blog_v2
  1. 进入博客文件夹
1
cd Blog_v2
  1. 初始化git
1
git init 

安装Buterfly主题

  1. 从Github安装稳定版
1
git clone -b master https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly
  1. 进入[Blog_v2]/themes/butterfly,删除[.git]文件夹
  2. 安装pug 以及 stylus 的渲染器
1
npm install hexo-renderer-pug hexo-renderer-stylus --save
  1. 方便后续升级
1
cp -rf ./themes/butterfly/_config.yml ./_config.butterfly.yml
  1. 启用Butterfly主题
    在[Blog_v2]中的_config.yml文件中,theme栏填入butterfly

更新NPM命令

方便后续使用
在[Blog_v2]中的package.json文件中,scripts新增

1
2
"dev": "hexo clean && hexo deploy && hexo server"
"push": "hexo clean && hexo deploy && git push origin main"

使用方法

1
2
npm run dev # 本地部署
npm run push # 将源码推送到远程

安装字数统计

1
npm install hexo-wordcount --save

安装Algolia搜索

1.安装搜索插件

1
npm install hexo-algoliasearch --save
  1. Algolia账户设置
    Algolia官网注册账户并配置项目
  2. 配置config文件
    在[Blog_v2]中的_config.yml文件中增加
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
algolia:
appId: "Z7A3XW4R2I" # 您的应用程序 ID
apiKey: "12db1ad54372045549ef465881c17e743" # 您的 API 密钥(只读)
adminApiKey: "40321c7c207e7f73b63a19aa24c4761b" # 您的管理员 API 密钥
chunkSize: 5000
indexName: "my-hexo-blog" # 存储帖子的索引的名称
fields:
- content:strip:truncate,0,500
- excerpt:strip
- gallery
- permalink
- photos
- slug
- tags
- title

配置abbrlink插件

abbrlink可以修改文章路径,使得文章链接更易访问/被收录

  1. 安装插件
1
npm install hexo-abbrlink2 --save
  1. 配置config
    在[Blog_v2]中的_config.yml文件中,permalink栏填入posts/:abbrlink/

permalink-pinyin插件可以将链接中的中文转化为拼音

  1. 安装插件
1
npm install hexo-abbrlink2 --save
  1. 配置config
    在[Blog_v2]中的_config.yml文件中增加
1
2
3
permalink_pinyin:
enable: true #是否开启
separator: '-' # default: '-'链接符

Github仓库

  1. 安装插件
1
npm install hexo-generator-feed --save
  1. 配置config
    在[Blog_v2]中的_config.yml文件中增加
1
2
3
4
5
6
7
8
9
10
11
12
13
feed:
enable: true
type: atom
path: atom.xml
limit: 20
hub:
content:
content_limit: 140
content_limit_delim: ' '
order_by: -date
icon: icon.png
autodiscovery: true
template:

站点地图Sitemap

sitemap-Github仓库
baidu-sitemap-Github仓库

  1. 安装插件
1
2
npm install hexo-generator-sitemap --save
npm install hexo-generator-baidu-sitemap --save-dev
  1. 配置config
    在[Blog_v2]中的_config.yml文件中增加
1
2
3
4
5
6
7
8
9
10
11
12
sitemap:
path:
- sitemap.xml
- sitemap.txt
template: ./sitemap_template.xml
template_txt: ./sitemap_template.txt
rel: false
tags: true
categories: true

baidusitemap:
path: baidusitemap.xml

留言板

Github仓库

  1. 安装插件
1
npm install hexo-butterfly-envelope --save
  1. 配置config
    在[Blog_v2]中的_config.yml文件中增加
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# envelope_comment
# see https://akilar.top/posts/e2d3c450/
envelope_comment:
enable: true #控制开关
custom_pic:
cover: https://unpkg.zhimg.com/hexo-butterfly-envelope/lib/violet.jpg #信笺头部图片
line: https://unpkg.zhimg.com/hexo-butterfly-envelope/lib/line.png #信笺底部图片
beforeimg: https://unpkg.zhimg.com/hexo-butterfly-envelope/lib/before.png # 信封前半部分
afterimg: https://unpkg.zhimg.com/hexo-butterfly-envelope/lib/after.png # 信封后半部分
message: #信笺正文,多行文本,写法如下
- 有什么想问的?
- 有什么想说的?
- 有什么想吐槽的?
- 哪怕是有什么想吃的,都可以告诉我哦~
bottom: 自动书记人偶竭诚为您服务! #仅支持单行文本
height: #1050px,信封划出的高度
path: #【可选】comments 的路径名称。默认为 comments,生成的页面为 comments/index.html
front_matter: #【可选】comments页面的 front_matter 配置
title: 留言板
comments: true

友链朋友圈

Github仓库

  1. 安装插件
1
2
npm uninstall hexo-butterfly-fcircle --save
npm install hexo-filter-fcircle --save
  1. 配置config
    在[Blog_v2]中的_config.yml文件中增加
1
2
3
4
5
6
7
8
9
10
11
12
13
# fcircle
# see https://akilar.top/posts/62f13a97/
fcircle:
enable: true #控制开关
apiurl: https://hexo-friendcircle-api-ai9d4hwad-anzhiyu-c.vercel.app/api #api地址
initnumber: 20 #【可选】页面初始化展示文章数量
stepnumber: 10 #【可选】每次加载增加的篇数
css: https://npm.elemecdn.com/[email protected]/css/friend.min.css #【可选】开发者接口,自定义css链接
js: https://npm.elemecdn.com/[email protected]/js/fcircle.min.js #【可选】开发者接口,自定义js链接
path: #【可选】fcircle的路径名称。默认为 fcircle,生成的页面为 fcircle/index.html
front_matter: #【可选】fcircle页面的 front_matter 配置
title: 朋友圈
comments: false

外挂标签

Github仓库

  1. 安装插件
1
npm install hexo-butterfly-tag-plugins-plus --save
  1. 更换Markdown渲染插件
1
2
npm uninstall hexo-renderer-marked --save
npm install hexo-renderer-kramed --save
  1. 配置config
    在[Blog_v2]中的_config.yml文件中增加
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# tag-plugins-plus
# see https://akilar.top/posts/615e2dec/
tag_plugins:
enable: true # 开关
priority: 5 #过滤器优先权
issues: false #issues标签开关
link:
placeholder: /img/link.png #link_card标签默认的图标图片
CDN:
anima: https://unpkg.zhimg.com/hexo-butterfly-tag-plugins-plus@latest/lib/assets/font-awesome-animation.min.css #动画标签anima的依赖
jquery: https://unpkg.zhimg.com/jquery@latest/dist/jquery.min.js #issues标签依赖
issues: https://unpkg.zhimg.com/hexo-butterfly-tag-plugins-plus@latest/lib/assets/issues.js #issues标签依赖
iconfont: //at.alicdn.com/t/font_2032782_8d5kxvn09md.js #参看https://akilar.top/posts/d2ebecef/
carousel: https://unpkg.zhimg.com/hexo-butterfly-tag-plugins-plus@latest/lib/assets/carousel-touch.js
tag_plugins_css: https://unpkg.zhimg.com/hexo-butterfly-tag-plugins-plus@latest/lib/tag_plugins.css

配置首页轮播图

Github仓库

  1. 安装插件
1
npm install hexo-butterfly-swiper --save
  1. 配置config
    在[Blog_v2]中的_config.yml文件中增加
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# hexo-butterfly-swiper
# see https://akilar.top/posts/8e1264d1/
swiper:
enable: true # 开关
priority: 5 #过滤器优先权
enable_page: all # 应用页面
timemode: date #date/updated
layout: # 挂载容器类型
type: id
name: recent-posts
index: 0
default_descr: 再怎么看我也不知道怎么描述它的啦!
swiper_css: https://npm.elemecdn.com/hexo-butterfly-swiper/lib/swiper.min.css #swiper css依赖
swiper_js: https://npm.elemecdn.com/hexo-butterfly-swiper/lib/swiper.min.js #swiper js依赖
custom_css: https://npm.elemecdn.com/hexo-butterfly-swiper/lib/swiperstyle.css # 适配主题样式补丁
custom_js: https://npm.elemecdn.com/hexo-butterfly-swiper/lib/swiper_init.js # swiper初始化方法

秋澪的博客

Akimio Blog

本文是原创文章,采用CC BY-NC-SA 4.0协议,完整转载请注明来自秋澪的博客