Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
大白技术控
yanglr2010
提交
e2f0454b
Y
yanglr2010
项目概览
大白技术控
/
yanglr2010
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
yanglr2010
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
e2f0454b
编写于
5月 21, 2019
作者:
EvanOne(文一)
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify: 修改配置文件和一些配置项
上级
a7b3cd98
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
76 addition
and
46 deletion
+76
-46
_config.yml
_config.yml
+54
-28
languages/zh-CN.yml
languages/zh-CN.yml
+5
-4
layout/includes/header.pug
layout/includes/header.pug
+3
-3
layout/page.pug
layout/page.pug
+4
-4
layout/post.pug
layout/post.pug
+8
-4
layout/tag.pug
layout/tag.pug
+2
-3
未找到文件。
_config.yml
浏览文件 @
e2f0454b
# ==================================================
# Basic config
# ==================================================
# HTML lang
language
:
...
...
@@ -12,9 +15,6 @@ menu:
tags
:
/tags
about
:
/about
# Is show header menu icon
show_menu_icon
:
true
# Favicon
favicon
:
/imgs/favicon.ico
...
...
@@ -23,17 +23,34 @@ social:
github
:
https://github.com/liuyib
segmentfault
:
https://segmentfault.com/u/liuyib
#
Sidebar avat
ar
#
Avatar in the sideb
ar
# In theme directory(source/imgs)
avatar
:
/imgs/my_favorite.jpg
# Catalog of article in the sidebar
catalog
:
# Stylesheets loaded in the <head>
stylesheets
:
-
/css/index.css
# Scripts loaded in the end of the body
scripts
:
-
/js/utils.js
-
/js/scroll.js
# ==================================================
# Advanced config
# ==================================================
# --------------------------------------------------
# Icon
# --------------------------------------------------
# Header menu icon
header_menu_icon
:
enable
:
true
# Show list number
number
:
true
# --------------------------------------------------
# Tag cloud
# If not used, comment it or ignore it
# --------------------------------------------------
tag
:
# Color for tag
start_color
:
'
#fc0'
...
...
@@ -42,48 +59,55 @@ tag:
min_font_size
:
16
max_font_size
:
30
# PWA
# See https://github.com/JLHwung/hexo-offline
pwa
:
enable
:
false
manifest
:
/manifest.json
# Stylesheets loaded in the <head>
stylesheets
:
-
/css/index.css
# Scripts loaded in the end of the body
scripts
:
-
/js/utils.js
-
/js/scroll.js
# --------------------------------------------------
# Catalog of article in the sidebar
# --------------------------------------------------
catalog
:
enable
:
true
# Show list number
number
:
true
# ------------------------------------
# ------------------------------------
--------------
# Comments
# ------------------------------------
# ------------------------------------
--------------
# Disqus
disqus
:
enable
:
fals
e
enable
:
tru
e
# Article copyright
# --------------------------------------------------
# Copyright
# --------------------------------------------------
# Copyright of articles
post_copyright
:
enable
:
true
license
:
CC BY-NC-SA
4.0
license_url
:
https://creativecommons.org/licenses/by-nc-sa/4.0/
# Copyright
in the site bottom
# Copyright
at the bottom of the site
site_copyright
:
enable
:
true
start
:
2019
# If not set, default is the latest year
end
:
# --------------------------------------------------
# ICP
# --------------------------------------------------
ICP
:
enable
:
true
text
:
豫备案12345678号.
# --------------------------------------------------
# PWA
# See https://github.com/JLHwung/hexo-offline
# --------------------------------------------------
pwa
:
enable
:
true
manifest
:
/manifest.json
# --------------------------------------------------
# Busuanzi count for PV / UV in site
# --------------------------------------------------
busuanzi
:
# Count values only if the other configs are false
enable
:
true
...
...
@@ -100,8 +124,10 @@ busuanzi:
page_pv_header
:
<i class="fa fa-file"></i>
page_pv_footer
:
# --------------------------------------------------
# Canvas ribbon
# See: https://github.com/hustcc/ribbon.js
# --------------------------------------------------
canvas_ribbon
:
enable
:
false
size
:
150
...
...
languages/zh-CN.yml
浏览文件 @
e2f0454b
...
...
@@ -28,12 +28,13 @@ post:
created
:
创建于
modified
:
更新于
posted
:
发表于
sticky
:
置顶
read_more
:
阅读全文
untitled
:
未命名
visitors
:
阅读次数
word_count
:
字数统计
read-count
:
阅读次数
read_time
:
阅读时长
read_more
:
阅读全文
fire
:
热度
sticky
:
置顶
untitled
:
文章未命名
copyright
:
author
:
本文作者
link
:
本文链接
...
...
layout/includes/header.pug
浏览文件 @
e2f0454b
...
...
@@ -4,10 +4,10 @@ header#header
ul
each url, label in theme.menu
li
- if (theme.show_menu_icon
)
a(href=url
)
a(href=url
)
if (theme.header_menu_icon && theme.header_menu_icon.enable
)
i(class=`header-nav-menu-icon icon-${label}`)
!= _p(`menu.${label}`)
!= _p(`menu.${label}`)
div#header-info
div.header-info-inner
div.site-info-title= config.title
...
...
layout/page.pug
浏览文件 @
e2f0454b
...
...
@@ -5,10 +5,10 @@ block content
div.tag-cloud.main-content
div.tag-cloud-title= _p('page.tags') + ' - '
span.tag-cloud-num= site.tags.length
- var min_font = theme.tag
&& (theme.tag.min_font_size || 14)
- var max_font = theme.tag
&& (theme.tag.max_font_size || 30)
- var start_color = theme.tag
&& (theme.tag.start_color || '#a4d8fa')
- var end_color = theme.tag
&& (theme.tag.end_color || '#1b9ef3')
- var min_font = theme.tag
? theme.tag.min_font_size : 14
- var max_font = theme.tag
? theme.tag.max_font_size : 30
- var start_color = theme.tag
? theme.tag.start_color : '#a4d8fa'
- var end_color = theme.tag
? theme.tag.end_color : '#1b9ef3'
div.tag-cloud-item!= tagcloud({min_font: min_font, max_font: max_font, amount: 200, color: true, start_color, end_color})
if (page.type === 'categories')
...
...
layout/post.pug
浏览文件 @
e2f0454b
...
...
@@ -3,18 +3,22 @@ extends includes/layout.pug
block content
article#post.main-content
header.post-header
h1.post-title= page.title
if (page.title)
h1.post-title= page.title
else
h1.post-title= _p('post.untitled')
div.post-meta
span.post-meta-create
span
发表于
span
= _p('post.posted') + ' '
span= full_date(page.date, 'YYYY-MM-DD')
span.dot!= '•'
span.post-meta-word
span
字数统计
span
= _p('post.word_count') + ' '
span TODO
span.dot!= '•'
span.post-meta-read
span
热度
span
= _p('post.fire') + ' '
span TODO
div.post-body
!= page.content
...
...
layout/tag.pug
浏览文件 @
e2f0454b
...
...
@@ -2,7 +2,6 @@ extends includes/layout.pug
block content
include ./includes/mixins/articles-sort.pug
div
#tag
.article-sort-title= _p('page.tag') + ' - ' + page.tag
div
.tag.main-content
.article-sort-title= _p('page.tag
s
') + ' - ' + page.tag
+articleSort(page.posts)
include ./includes/pagination.pug
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录