Hexo 设置备份

I’m back. 备份一下现在的 Hexo 设置。

主题和插件

1
2
3
4
5
6
7
8
# 主题
git clone https://github.com/theme-next/hexo-theme-next themes/next
# RSS
npm i hexo-generator-feed
# 部署
npm i hexo-deployer-sftp
# 优化
npm i hexo-html-minifier hexo-clean-css hexo-uglify

_config.yml - 根目录

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Docs: https://hexo.io/docs/configuration.html

# Site
title: 星雨之夜
author: Twinkle
language: zh-CN

# URL
permalink: :title/

# disable pagination for archive page
archive: 1

# Extensions
theme: next

# Deployment: https://hexo.io/docs/deployment.html#SFTP
deploy:
type: sftp
host: <host>
user: <user>
remotePath: [remote path]
port: [port]
privateKey: [path/to/privateKey]
passphrase: [passphrase]

_config.yml - 主题目录

v6.6.0

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
favicon:
small: /favicon-16x16.png
medium: /favicon-32x32.png
apple_touch_icon: /apple-touch-icon.png
safari_pinned_tab: /safari-pinned-tab.svg
android_manifest: /site.webmanifest
ms_browserconfig: /browserconfig.xml

footer:
since: 2015
icon:
name: heart
color: '#ff0000'
powered:
version: false

creative_commons:
post: true

seo: true

menu:
tags: /tags/ || tags
categories: /categories/ || th
about: /about/ || user

scheme: Pisces

social:
GitHub: https://github.com/saintwinkle || github
Weibo: https://weibo.com/levicorpus || weibo
Twitter: https://twitter.com/saintwinkle || twitter

social_icons:
icons_only: true
transition: true

avatar:
url: /uploads/avatar.webp
rounded: true
opacity: 0.85

sidebar:
b2t: true
scrollpercent: true

post_meta:
updated_at:
enabled: false

disqus:
enable: true
shortname: saintwinkle
count: false
lazyload: true

mobile_layout_economy: true

android_chrome_color: '#222'

google_analytics: UA-121613404-1

leancloud_visitors:
enable: true
app_id: <app_id>
app_key: <app_key>
security: false

motion:
async: true

vendors:
jquery: //cdn.jsdelivr.net/npm/jquery@2.1.3/dist/jquery.min.js
velocity: //cdn.jsdelivr.net/npm/velocity-animate@1.2.1/velocity.min.js
velocity_ui: //cdn.jsdelivr.net/npm/velocity-animate@1.2.1/velocity.ui.min.js
fontawesome: //cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css

– EOF –