Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDocCN
LoveIt
提交
dcbc7547
L
LoveIt
项目概览
OpenDocCN
/
LoveIt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
LoveIt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
dcbc7547
编写于
8月 19, 2019
作者:
D
Dillon
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: new style update
上级
ee7c7549
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
109 addition
and
22 deletion
+109
-22
archetypes/default.md
archetypes/default.md
+3
-2
assets/css/_core/_base.scss
assets/css/_core/_base.scss
+8
-0
assets/css/_core/_media.scss
assets/css/_core/_media.scss
+0
-7
assets/css/_page/_post.scss
assets/css/_page/_post.scss
+60
-4
assets/css/_page/_posts.scss
assets/css/_page/_posts.scss
+1
-0
assets/css/_variables.scss
assets/css/_variables.scss
+3
-0
i18n/en.toml
i18n/en.toml
+2
-2
i18n/zh.toml
i18n/zh.toml
+5
-2
layouts/_default/single.md
layouts/_default/single.md
+1
-0
layouts/partials/post/footer.html
layouts/partials/post/footer.html
+23
-5
layouts/posts/single.html
layouts/posts/single.html
+3
-0
未找到文件。
archetypes/default.md
浏览文件 @
dcbc7547
...
...
@@ -6,12 +6,13 @@ draft: true
description
:
"
"
show_in_homepage
:
true
show_description
:
false
license
:
'
'
tags
:
[]
categories
:
[]
featured_image
:
"
"
featured_image_preview
:
"
"
featured_image
:
'
'
featured_image_preview
:
'
'
comment
:
true
toc
:
false
...
...
assets/css/_core/_base.scss
浏览文件 @
dcbc7547
...
...
@@ -73,3 +73,11 @@ a {
}
}
}
.navbar
{
background-color
:
$navbar-background-color
;
.dark-theme
&
{
background-color
:
$navbar-background-color-dark
;
}
}
assets/css/_core/_media.scss
浏览文件 @
dcbc7547
...
...
@@ -19,7 +19,6 @@
margin
:
0
;
height
:
4
.5em
;
line-height
:
4
.5em
;
background
:
$global-background-color
;
.navbar-header
{
display
:
flex
;
...
...
@@ -90,7 +89,6 @@
.menu
{
text-align
:
center
;
background
:
$global-background-color
;
border-top
:
2px
solid
$global-font-color
;
display
:
none
;
box-shadow
:
0px
2px
4px
rgba
(
0
,
0
,
0
,
0
.1
)
,
0px
4px
8px
rgba
(
0
,
0
,
0
,
0
.1
);
...
...
@@ -105,14 +103,9 @@
}
.dark-theme
&
{
background
:
$global-background-color-dark
;
border-top
:
2px
solid
$global-font-color-dark
;
}
}
.dark-theme
&
{
background
:
$global-background-color-dark
!
important
;
}
}
}
...
...
assets/css/_page/_post.scss
浏览文件 @
dcbc7547
...
...
@@ -144,6 +144,22 @@
padding-left
:
2em
;
}
ruby
{
background
:
$code-background
;
rt
{
color
:
$global-font-secondary-color
;
}
.dark-theme
&
{
background
:
$code-background-dark
;
rt
{
color
:
$global-font-secondary-color-dark
;
}
}
}
.table-wrapper
{
overflow-x
:
auto
;
...
...
@@ -362,20 +378,60 @@
p
{
font-size
:
1em
;
margin
:
.5em
0
.5em
0
;
text-align
:
justify
;
}
.post-footer
{
margin-top
:
3rem
;
.post-info
{
margin-top
:
3rem
;
border-bottom
:
1px
solid
$global-border-color
;
padding
:
1rem
0
0
.3rem
;
display
:
flex
;
justify-content
:
space-between
;
.dark-theme
&
{
border-top
:
1px
solid
$global-border-color-dark
;
border-bottom
:
1px
solid
$global-border-color-dark
;
}
.post-info-line
{
display
:
flex
;
justify-content
:
space-between
;
.post-info-mod
{
font-size
:
0
.8em
;
color
:
$global-font-secondary-color
;
.dark-theme
&
{
color
:
$global-font-secondary-color-dark
;
}
}
.post-info-license
{
font-size
:
0
.8em
;
color
:
$global-font-secondary-color
;
.dark-theme
&
{
color
:
$global-font-secondary-color-dark
;
}
}
.post-info-md
a
{
font-size
:
0
.8em
;
color
:
$post-link-color
;
.dark-theme
&
{
color
:
$post-link-color-dark
;
}
&
:hover
{
color
:
$post-link-hover-color
;
.dark-theme
&
{
color
:
$post-link-hover-color-dark
;
}
}
}
}
}
.post-tags
{
...
...
assets/css/_page/_posts.scss
浏览文件 @
dcbc7547
...
...
@@ -84,6 +84,7 @@
}
.post-footer
{
margin-top
:
0
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
...
...
assets/css/_variables.scss
浏览文件 @
dcbc7547
...
...
@@ -7,6 +7,9 @@
$global-background-color
:
#fff
!
default
;
$global-background-color-dark
:
#292a2d
!
default
;
$navbar-background-color
:
#FAFAFA
!
default
;
$navbar-background-color-dark
:
#252627
!
default
;
// Text color of the body.
$global-font-color
:
#161209
!
default
;
$global-font-color-dark
:
#a9a9b3
!
default
;
...
...
i18n/en.toml
浏览文件 @
dcbc7547
...
...
@@ -59,7 +59,7 @@ other = "Author"
other
=
"This article is updated with %s"
[license]
other
=
"
L
icense"
other
=
"
Published under the %s l
icense"
[back]
other
=
"Back"
...
...
@@ -68,7 +68,7 @@ other = "Back"
other
=
"Home"
[readmore]
other
=
"Read More
......
"
other
=
"Read More"
# === posts/single.html ===
# === 404.html ===
...
...
i18n/zh.toml
浏览文件 @
dcbc7547
...
...
@@ -59,7 +59,10 @@ other = "作者"
other
=
"本文于 %s 更新"
[license]
other
=
"许可协议"
other
=
"采用 %s 协议发布"
[seeMarkDown]
other
=
"阅读原始文档"
[back]
other
=
"返回"
...
...
@@ -68,7 +71,7 @@ other = "返回"
other
=
"主页"
[readmore]
other
=
"阅读全文
......
"
other
=
"阅读全文"
# === posts/single.html ===
# === 404.html ===
...
...
layouts/_default/single.md
0 → 100644
浏览文件 @
dcbc7547
{{ .RawContent }}
\ No newline at end of file
layouts/partials/post/footer.html
浏览文件 @
dcbc7547
{{ $modify_date := .Lastmod.Format (.Site.Params.dateFormatToUse | default "2006-01-02") -}}
<div
class=
"post-footer"
>
<div
class=
"post-info"
>
<div
class=
"post-info-mod"
><span>
{{ printf (T "lastMod") $modify_date }}
</span></div>
<div
class=
"post-info-share"
>
{{ if and ( .Param "socialShare" ) (gt (len (.Param "share")) 0) }}
<span>
{{ partial "post/share.html" . }}
</span>
{{ end }}
<div
class=
"post-info-line"
>
<div
class=
"post-info-mod"
>
<span>
{{ printf (T "lastMod") $modify_date }}
</span>
</div>
<div
class=
"post-info-license"
>
{{ if .Params.license }}
<span>
{{ printf (T "license") .Params.license | safeHTML }}
</span>
{{ end }}
</div>
</div>
<div
class=
"post-info-line"
>
<div
class=
"post-info-md"
>
{{ if .Site.Params.linkToMarkDown }}
{{ with .OutputFormats.Get "markdown" }}
<span><a
class=
"link-to-markdown"
href=
"{{ .Permalink }}"
target=
"_blank"
>
{{ T "seeMarkDown" }}
</a></span>
{{ end }}
{{ end }}
</div>
<div
class=
"post-info-share"
>
{{ if and ( .Param "socialShare" ) (gt (len (.Param "share")) 0) }}
<span>
{{ partial "post/share.html" . }}
</span>
{{ end }}
</div>
</div>
</div>
...
...
layouts/posts/single.html
浏览文件 @
dcbc7547
...
...
@@ -64,6 +64,9 @@
{{ $REin = `:\(([\w- ]+?)\):` }}
{{ $REout = `
<i
class=
"inline-icon $1"
></i>
` }}
{{ $content = replaceRE $REin $REout $content }}
{{ $REin = `\[(.+?)\]\^\((.+?)\)` }}
{{ $REout = `
<strong><ruby>
$1
<rt>
$2
</rt></ruby></strong>
` }}
{{ $content = replaceRE $REin $REout $content }}
{{ $content | safeHTML }}
</div>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录