Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDocCN
LoveIt
提交
66b76b59
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 搜索 >>
提交
66b76b59
编写于
3月 04, 2020
作者:
D
Dillon
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(git): git info in footer
上级
41e27cd9
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
31 addition
and
10 deletion
+31
-10
assets/css/_partial/_single/_footer.scss
assets/css/_partial/_single/_footer.scss
+17
-1
exampleSite/config.toml
exampleSite/config.toml
+6
-7
layouts/partials/single/footer.html
layouts/partials/single/footer.html
+6
-0
resources/_gen/assets/scss/css/style.template.scss_40942e46c3aa444eabf479d066570690.content
...le.template.scss_40942e46c3aa444eabf479d066570690.content
+1
-1
resources/_gen/assets/scss/css/style.template.scss_40942e46c3aa444eabf479d066570690.json
...style.template.scss_40942e46c3aa444eabf479d066570690.json
+1
-1
未找到文件。
assets/css/_partial/_single/_footer.scss
浏览文件 @
66b76b59
...
...
@@ -20,6 +20,22 @@
.dark-theme
&
{
color
:
$global-font-secondary-color-dark
;
}
a
{
color
:
$single-link-color
;
.dark-theme
&
{
color
:
$single-link-color-dark
;
}
&
:hover
{
color
:
$single-link-hover-color
;
.dark-theme
&
{
color
:
$single-link-hover-color-dark
;
}
}
}
}
.post-info-license
{
...
...
@@ -32,10 +48,10 @@
}
.post-info-md
{
font-size
:
0
.8rem
;
width
:
8rem
;
a
{
font-size
:
0
.8rem
;
color
:
$single-link-color
;
.dark-theme
&
{
...
...
exampleSite/config.toml
浏览文件 @
66b76b59
...
...
@@ -12,9 +12,9 @@ themesDir = "../.."
# whether to use robots.txt
# 是否使用 robots.txt
enableRobotsTXT
=
true
# whether to use git commit log
to generate lastmod record
# 是否使用 git 信息
来生成文章的上次修改时间
enableGitInfo
=
fals
e
# whether to use git commit log
# 是否使用 git 信息
enableGitInfo
=
tru
e
# whether to use emoji code
# 是否使用 emoji 代码
enableEmoji
=
true
...
...
@@ -67,8 +67,6 @@ enableEmoji = true
keywords
=
[
"Theme"
,
"Hugo"
]
# site default theme ("light", "dark", "auto")
defaultTheme
=
"auto"
# public git repo url to link lastmod git commit only then enableGitInfo is true
gitRepo
=
""
# Home Page Info
[languages.en.params.home]
# Home Page Profile
...
...
@@ -268,8 +266,6 @@ enableEmoji = true
keywords
=
[
"Theme"
,
"Hugo"
]
# 网站默认主题 ("light", "dark", "auto")
defaultTheme
=
"auto"
# 用于生成文章上次修改时间的公共 git 仓库路径,仅在 enableGitInfo 设为 true 时有效
gitRepo
=
""
# 主页信息设置
[languages.zh.params.home]
# 主页个人信息
...
...
@@ -426,6 +422,9 @@ enableEmoji = true
# LoveIt theme version
# LoveIt 主题版本
version
=
"0.1.X"
# public git repo url only then enableGitInfo is true
# 公共 git 仓库路径,仅在 enableGitInfo 设为 true 时有效
gitRepo
=
"https://github.com/dillonzq/LoveIt"
# Header info
# 页面头部导航栏信息
[params.header]
...
...
layouts/partials/single/footer.html
浏览文件 @
66b76b59
...
...
@@ -5,6 +5,12 @@
<div
class=
"post-info-mod"
>
<span>
{{- printf (T "lastMod") $modify_date -}}
{{- with .GitInfo -}}
{{- $gitHash := .Hash -}}
<a
class=
"git-hash"
{{
with
$.
Site.Params.gitRepo
}}
href=
"{{ printf `%s/commit/%s` . $gitHash }}"
target=
"_blank"
{{
else
}}
href=
"javascript:void(0);"
{{
end
}}
title=
"commit by {{ .AuthorName }}({{ .AuthorEmail }}) {{ $gitHash }}: {{ .Subject }}"
>
<i
class=
"fas fa-hashtag fa-fw"
></i>
{{- .AbbreviatedHash -}}
</a>
{{- end -}}
</span>
</div>
<div
class=
"post-info-license"
>
...
...
resources/_gen/assets/scss/css/style.template.scss_40942e46c3aa444eabf479d066570690.content
浏览文件 @
66b76b59
此差异已折叠。
点击以展开。
resources/_gen/assets/scss/css/style.template.scss_40942e46c3aa444eabf479d066570690.json
浏览文件 @
66b76b59
{
"Target"
:
"css/style.min.52eef027334e2f9819adcad242e7298beefaf3f468d9085be0327f795ae0e4e5.css"
,
"MediaType"
:
"text/css"
,
"Data"
:{
"Integrity"
:
"sha256-Uu7wJzNOL5gZrcrSQucpi+768/Ro2Qhb4DJ/eVrg5OU="
}}
\ No newline at end of file
{
"Target"
:
"css/style.min.e9a885b35bab1db17c8dc0846bfea3e8513af60bd9812b4813224384fd65afa7.css"
,
"MediaType"
:
"text/css"
,
"Data"
:{
"Integrity"
:
"sha256-6aiFs1urHbF8jcCEa/6j6FE69gvZgStIEyJDhP1lr6c="
}}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录