Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
gitcode_dev
Hexo Theme Yet The Books
提交
23161519
H
Hexo Theme Yet The Books
项目概览
gitcode_dev
/
Hexo Theme Yet The Books
通知
0
Star
19
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
Hexo Theme Yet The Books
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
23161519
编写于
8月 13, 2021
作者:
折
折影轻梦
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
#13 标签
上级
58dc8e81
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
27 addition
and
6 deletion
+27
-6
_config.yml
_config.yml
+1
-1
layout/archive.ejs
layout/archive.ejs
+5
-0
layout/post.ejs
layout/post.ejs
+6
-4
source/css/style.css
source/css/style.css
+15
-1
未找到文件。
_config.yml
浏览文件 @
23161519
...
@@ -3,7 +3,7 @@ favicon:
...
@@ -3,7 +3,7 @@ favicon:
type
:
image/x-icon
# 图标类型,可能的值有(image/png, image/vnd.microsoft.icon, image/x-icon, image/gif)
type
:
image/x-icon
# 图标类型,可能的值有(image/png, image/vnd.microsoft.icon, image/x-icon, image/gif)
search
:
https://cn.bing.com/search?q=
# https://www.google.com/search?q==
search
:
https://cn.bing.com/search?q=
# https://www.google.com/search?q==
order_by
:
date
# date,-date,title,url,...
order_by
:
date
# date,-date,title,url,...
head
:
`
<!--<script src="" async></script>-->`
# 在 <head></head> 中添加自定义的内容
head
:
'
<!--<script
src=""
async></script>-->'
# 在 <head></head> 中添加自定义的内容
menu
:
menu
:
归档
:
archives
归档
:
archives
...
...
layout/archive.ejs
浏览文件 @
23161519
...
@@ -6,6 +6,11 @@
...
@@ -6,6 +6,11 @@
</div>
</div>
<div class="container">
<div class="container">
<article class="post">
<article class="post">
<%- list_tags({
show_count: true,
style: "unordered list",
separator: ", "
}) %>
<% // 参考:https://github.com/SukkaW/hexo-theme-suka/blob/master/layout/_pages/archive.ejs %>
<% // 参考:https://github.com/SukkaW/hexo-theme-suka/blob/master/layout/_pages/archive.ejs %>
<% function buildArchive(posts, year) { %>
<% function buildArchive(posts, year) { %>
<h2><%= year %></h2>
<h2><%= year %></h2>
...
...
layout/post.ejs
浏览文件 @
23161519
...
@@ -20,11 +20,13 @@
...
@@ -20,11 +20,13 @@
<%- page.content %>
<%- page.content %>
</article>
</article>
</div>
</div>
<div class="other">
<% if(is_post()){ %>
<div class="container">
<div class="other">
<%- is_post() ? partial('_partial/post-nav') : '' %>
<div class="container">
<%- partial('_partial/post-nav') %>
</div>
</div>
</div>
<
/div>
<
% } %>
<div class="container comment">
<div class="container comment">
<%- theme.comment ? partial('_partial/_comment/' + theme.comment) : '' %>
<%- theme.comment ? partial('_partial/_comment/' + theme.comment) : '' %>
</div>
</div>
...
...
source/css/style.css
浏览文件 @
23161519
...
@@ -278,7 +278,7 @@ a:hover {
...
@@ -278,7 +278,7 @@ a:hover {
width
:
100%
;
width
:
100%
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
flex-flow
:
row-reverse
flex-flow
:
row-reverse
}
}
.content
.post-nav
span
{
.content
.post-nav
span
{
...
@@ -347,6 +347,19 @@ a:hover {
...
@@ -347,6 +347,19 @@ a:hover {
position
:
relative
;
position
:
relative
;
}
}
.content
.tag-unordered
{
word-break
:
break-word
;
}
.content
.tag-unordered
.list-count
::before
{
content
:
"("
}
.content
.tag-unordered
.list-count
::after
{
content
:
")"
}
.comment
{
.comment
{
padding
:
3em
1em
;
padding
:
3em
1em
;
}
}
...
@@ -367,6 +380,7 @@ article p {
...
@@ -367,6 +380,7 @@ article p {
article
a
{
article
a
{
color
:
#aa874b
;
color
:
#aa874b
;
word-break
:
break-all
;
}
}
article
>
table
{
article
>
table
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录