网站搭建日志(2)

Choice Your Theme!

一些主题:
  • jelly

  • icarus

    完善的网站框架

    icarus安装手册

    • amazing

      基于icarus,完善一些功能

      版本有点老了,新版本hexo用不了

      • amazingremake

        基于amazing,更新

        1
        git clone https://github.com/LittleYe233/hexo-theme-amazingremake.git themes/amazingremake
更新日志

2023-4-17

加入搜索引擎:

在首页第一个<head>后添加

1
<meta name="baidu-site-verification" content="codeva-qsPplL1XWF" /><meta name="msvalidate.01" content="D54149A8F600241C8B234A1D99DDB81B" />

目前加入百度和Bing

2023-4-10 :本站更换为amazingremake主题

分享一下配置文件

_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
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/

# Site
title: ONE PIECE
subtitle: 一个兴趣使然的coder
description: Welcome to my space~
keywords: ONE PIECE
author: tty
language: zh-CN
timezone: Asia/Shanghai

# URL
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
url: https://cccccrz.github.io/
permalink: ':year/:month/:day/:title/'
permalink_defaults: null
pretty_urls:
trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
trailing_html: true # Set to false to remove trailing '.html' from permalinks

# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:

# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link:
enable: true # Open external links in new tab
field: site # Apply to the whole site
exclude: ''
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
highlight:
enable: true
line_number: true
auto_detect: false
tab_replace: ''
wrap: true
hljs: false
prismjs:
enable: false
preprocess: true
line_number: true
tab_replace: ''

# Home page setting
# path: Root path for your blogs index page. (default = '')
# per_page: Posts displayed per page. (0 = disable pagination)
# order_by: Posts order. (Order by date descending by default)
index_generator:
path: ''
per_page: 10
order_by: '-date'
# Category & Tag
default_category: uncategorized
category_map: null
tag_map: null

# Metadata elements
## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
meta_generator: true

# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: YYYY-MM-DD
time_format: HH:mm:ss
## updated_option supports 'mtime', 'date', 'empty'

# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: page

# Include / Exclude file(s)
## include:/exclude: options only apply to the 'source/' folder
include: null
exclude: null
ignore: null

# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/ icarus
theme: amazingremake

# Deployment
## Docs: https://hexo.io/docs/one-command-deployment
deploy:
type: git
repository: git@github.com:cccccrz/cccccrz.github.io.git
branch: develop

_config.amazingremake.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
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
# Version of the configuration file
version: 4.0.0

# Icarus theme variant, can be "default" or "cyberpunk"
variant: default
# 网站logo的路径或URL
logo: ''

# Page metadata configurations
head:
# 网站图标的URL或路径
favicon: /img/T_emp.png
# Open Graph metadata
# https://hexo.io/docs/helpers.html#open-graph
open_graph:
# Page title (og:title) (optional)
# You should leave this blank for most of the time
title:
# Page type (og:type) (optional)
# You should leave this blank for most of the time
type:
# Page URL (og:url) (optional)
# You should leave this blank for most of the time
url:
# Page cover (og:image) (optional)
# You should leave this blank for most of the time
image:
# Site name (og:site_name) (optional)
# You should leave this blank for most of the time
site_name:
# Page author (article:author) (optional)
# You should leave this blank for most of the time
author:
# Page description (og:description) (optional)
# You should leave this blank for most of the time
description:
# Twitter card type (twitter:card)
twitter_card:
# Twitter ID (twitter:creator)
twitter_id:
# Twitter Site (twitter:site)
twitter_site:
# Google+ profile link (deprecated)
google_plus:
# Facebook admin ID
fb_admins:
# Facebook App ID
fb_app_id:

# Structured data of the page
# https://developers.google.com/search/docs/guides/intro-structured-data
structured_data:
# Page title (optional)
# You should leave this blank for most of the time
title:
# Page description (optional)
# You should leave this blank for most of the time
description:
# Page URL (optional)
# You should leave this blank for most of the time
url:
# Page author (article:author) (optional)
# You should leave this blank for most of the time
author:
# Page images (optional)
# You should leave this blank for most of the time
image:

# Additional HTML meta tags in an array
meta:
# Meta tags specified in <attribute>=<value> style.
# E.g., name=theme-color;content=#123456 => <meta name="theme-color" content="#123456">

# URL or path to the website's RSS atom.xml
rss:

# Page top navigation bar configurations
navbar:
# 导航菜单项
menu:
首页: /
文章归档: /archives
分类: /categories
标签: /tags
个人简介: /about
留言: /message
# 链接显示在导航栏的右侧
links:
Download on GitHub:
icon: fab fa-github
url: https://github.com/cccccrz

# 页脚配置
footer:
# Copyright text
# HTML code of copyright information in footer
copyright: © 版权说明:[本网站所有内容均收集于互联网或自己创作,<br />&nbsp;&nbsp;&nbsp;&nbsp;方便于网友与自己学习交流,如有侵权,请<a href="/message" target="_blank">留言</a>,立即处理]<br />

# 链接显示在页脚部分的右侧
links:
Download on GitHub:
icon: fab fa-github
url: https://github.com/cccccrz

# Start time of this website in footer (omitted to be invisible)
# NOTE: The value will be passed in the constructor of the ``Date``
# object. Read the documentation on Date() constructor
# (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/ Global_Objects/Date/Date) for further information.
# Recommended form: yyyy/mm/dd hh:mm:ss or yyyy-mm-ddThh:mm:ss
# i.e. 1995/12/17 13:24:00 or 1995-12-17T13:24:00
#website_start_time: ''

# ICP licensing information in footer
#icp_licensing:
# enabled: false
# number: ''
# url: 'https://beian.miit.gov.cn/'

# 文章相关配置
article:
# Code highlight settings
highlight:
enabled: true
# Code highlight themes
# https://github.com/highlightjs/highlight.js/tree/master/src/styles
theme: atom-one-light
# Show copy code button
clipboard: true
# Default folding status of the code blocks. Can be "", "folded", "unfolded"
fold: unfolded

# 是否显示估计的文章阅读时间
readtime: true

# Article licensing block
licenses:
Creative Commons:
icon: fab fa-creative-commons
url: https://creativecommons.org/
Attribution:
icon: fab fa-creative-commons-by
url: https://creativecommons.org/licenses/by/4.0/
Noncommercial:
icon: fab fa-creative-commons-nc
url: https://creativecommons.org/licenses/by-nc/4.0/

# 侧栏配置。
# 请注意,侧栏只有在至少有一个widget时才可见
sidebar:
# Left sidebar configurations
left:
# 当页面滚动时,侧边栏是否粘在顶部
sticky: true
# Right sidebar configurations
right:
# Whether the sidebar sticks to the top when page scrolls
sticky: false

# 侧栏widget配置
# http://ppoffice.github.io/hexo-theme-icarus/categories/Widgets/
widgets:
# 目录widget, Table of contents widget configurations
-
# Where should the widget be placed, left sidebar or right sidebar
position: left
type: toc
# Select show index
index: false
# Showing mode
# Available values:
# - 'pages_and_posts' (shown in pages and posts like that in the old version)
# - 'default' (not shown in pages and posts)
show_mode: pages_and_posts

# 个人信息widget,Profile widget configurations
-
# Where should the widget be placed, left sidebar or right sidebar
position: left
type: profile
# Author name
author: TTY
# Author title
author_title: 一个兴趣使然的coder
# Author's current location
location: 中国,江苏,南京
# URL or path to the avatar image
avatar: /img/head.jpg
# 是否显示圆形头像图像
avatar_rounded: false
# Email address for the Gravatar
gravatar:
# URL or path for the follow button
follow_link: 'https://github.com/cccccrz'
# Links to be shown on the bottom of the profile widget
social_links:
Github:
icon: fab fa-github
url: https://github.com/cccccrz
# Weibo:
# icon: fab fa-weibo
# url: ''
# Email:
# icon: fa fa-envelope
# url: ''
# Next:
# icon: fab fa-dribbble
# url: ''
# RSS:
# icon: fas fa-rss
# url:
has_hitokoto: true
show_mode: default

# 推荐链接widget,Recommendation links widget configurations
-
# Where should the widget be placed, left sidebar or right sidebar
position: left
type: links
# Names and URLs of the sites
links:
Hexo: https://hexo.io
show_mode: default

# Latest comment widget configurations
-
# Where should the widget be placed, left sidebar or right sidebar
position: right
type: latest_comment
show_mode: default

# 最近提交,Recent posts widget configurations
-
# Where should the widget be placed, left sidebar or right sidebar
position: right
type: recent_posts
show_mode: default

# 类别目录,Categories widget configurations
-
# Where should the widget be placed, left sidebar or right sidebar
position: right
type: categories
show_mode: default

# 档案,Archives widget configurations
-
# Where should the widget be placed, left sidebar or right sidebar
position: right
type: archives
show_mode: default

# 标签,Tags widget configurations
-
# Where should the widget be placed, left sidebar or right sidebar
position: right
type: tags
show_mode: default

# Plugin configurations
# https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/
plugins:
# 启用页面启动动画;Enable page startup animations
animejs: true
# 显示“返回顶部”按钮;Show the "back to top" button
back_to_top: true
# 百度分析插件设置;Baidu Analytics plugin settings
# https://tongji.baidu.com
baidu_analytics:
# Baidu Analytics tracking ID
tracking_id:
# BuSuanZi网站/页面访问量计数器;BuSuanZi site/page view counter
# https://busuanzi.ibruce.info
busuanzi: true
# CNZZ统计;CNZZ statistics
# https://www.umeng.com/web
cnzz:
# CNZZ tracker id
id:
# CNZZ website id
web_id:
# Enable the lightGallery and Justified Gallery plugins
gallery: true
# Google Analytics plugin settings
# https://analytics.google.com
google_analytics:
# Google Analytics tracking ID
tracking_id:
# Hotjar user feedback plugin
# https://www.hotjar.com/
hotjar:
# Hotjar site id
site_id:
# Enable the KaTeX math typesetting support
# https://katex.org/
# WARNING: IT NEEDS MORE MAINTENANCE!
# katex: false
# Enable the MathJax math typesetting support
# https://www.mathjax.org/
mathjax: false
# 启用过时的浏览器插件;Enable the Outdated Browser plugin
# http://outdatedbrowser.com/
outdated_browser: false
# 在页面加载时,在页面顶部显示进度条;Show a progress bar at top of the page on page loading
progressbar: true

# NOTE: Deprecated!
# Search plugin configurations
# https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/Search/
search:
type: insight

# NOTE: Deprecated!
# Comment plugin configurations
# https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/Comment/
comment:
enabled: false
type: gitalk # Recommended: gitalk
language: zh-CN # Localization language key, en, zh-CN and zh-TW are currently available.
owner: '' # (required) GitHub user name
repo: '' # (required) GitHub repository name
client_id: '' # (required) OAuth application client id
client_secret: '' # (required) OAuth application client secret
admin: ['']
create_issue_manually: true
distraction_free_mode: false
has_hot_recommended: true # Whether to show Hot Recommended
has_latest_comments: true # Whether to show Latest Comments
proxy: '' # Solve HTTP 403 error after logged in

# Donate plugin configurations
# https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/Donation/
donates:
enabled: false
entries:
# Alipay donate button configurations
-
type: alipay
# Qrcode image URL
qrcode: ''
# WeChat donate button configurations
-
type: wechat
# Qrcode image URL
qrcode: ''

# Share plugin configurations
# https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/Share/
share:
enabled: false
type: sharethis
# URL to the ShareThis share plugin script
install_url: ''

# CDN provider settings
# https://ppoffice.github.io/hexo-theme-icarus/Configuration/icarus-user-guide-cdn-providers/
providers:
# Name or URL template of the JavaScript and/or stylesheet CDN provider
cdn: loli
# Name or URL template of the webfont CDN provider
fontcdn: loli
# Name or URL of the fontawesome icon font CDN provider
iconcdn: loli
# URL prefix of assets from CDN
# my_cdn_pre: https://cdn.jsdelivr.net/gh/removeif/removeif-demo@v1.0.8/

# NOTE: Deprecated!
# NetEase Cloud Music playlist ID in footer (at the bottom of the webpage)
side_music_netease_id: ''

# NOTE: Deprecated!
# (required: plugins.busuanzi: true) only calculate the statistics
# from busuanzi without showing it when the value is true
busuanzi_only_count: false

# Whether to show the Live2D figure
has_live_2D_switch: false

# Whether to activate pjax plugin
use_pjax: true
作者

tty

发布于

2023-04-04

更新于

2023-05-30

许可协议