Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDocCN
LoveIt
提交
edc53d7c
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 搜索 >>
提交
edc53d7c
编写于
2月 17, 2020
作者:
D
Dillon
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(social): add bilibili social config
上级
933e32c4
变更
11
展开全部
隐藏空白更改
内联
并排
Showing
11 changed file
with
1141 addition
and
6 deletion
+1141
-6
assets/css/lib/iconfont/iconfont.css
assets/css/lib/iconfont/iconfont.css
+633
-0
exampleSite/config.toml
exampleSite/config.toml
+1
-0
exampleSite/zh/config.toml
exampleSite/zh/config.toml
+2
-1
layouts/partials/function/icon.html
layouts/partials/function/icon.html
+4
-4
layouts/partials/home/social.html
layouts/partials/home/social.html
+8
-1
layouts/partials/script.html
layouts/partials/script.html
+5
-0
static/css/lib/iconfont/iconfont.eot
static/css/lib/iconfont/iconfont.eot
+0
-0
static/css/lib/iconfont/iconfont.svg
static/css/lib/iconfont/iconfont.svg
+488
-0
static/css/lib/iconfont/iconfont.ttf
static/css/lib/iconfont/iconfont.ttf
+0
-0
static/css/lib/iconfont/iconfont.woff
static/css/lib/iconfont/iconfont.woff
+0
-0
static/css/lib/iconfont/iconfont.woff2
static/css/lib/iconfont/iconfont.woff2
+0
-0
未找到文件。
assets/css/lib/iconfont/iconfont.css
0 → 100644
浏览文件 @
edc53d7c
此差异已折叠。
点击以展开。
exampleSite/config.toml
浏览文件 @
edc53d7c
...
...
@@ -219,6 +219,7 @@ dateFormatToUse = "2006-01-02"
#Gitea = "xxxx"
#XMPP = "xxxx"
#Matrix ="xxxx"
#Bilibili = ""
# Page config
[params.page]
...
...
exampleSite/zh/config.toml
浏览文件 @
edc53d7c
...
...
@@ -218,7 +218,8 @@ dateFormatToUse = "2006-01-02"
#Devto = "xxxx"
#Gitea = "xxxx"
#XMPP = "xxxx"
#Matrix ="xxxx"
#Matrix = "xxxx"
#Bilibili = ""
# 文章页面配置
[params.page]
...
...
layouts/partials/function/icon.html
浏览文件 @
edc53d7c
{{- $type := index . "type" | default "fa" }}
{{- $classList := split (index . "class") " " }}
{{- $scratch := index . "scratch" }}
{{- $type := index . "type" | default "fa"
-
}}
{{- $classList := split (index . "class") " "
-
}}
{{- $scratch := index . "scratch"
-
}}
{{- /* Font Awesome */ -}}
{{- if eq $type "fa" -}}
<i
class=
"{{ delimit $classList ` ` }}"
></i>
...
...
@@ -18,6 +18,6 @@
{{- $scratch.Set "forkawesome" true -}}
{{- /* Others */ -}}
{{- else -}}
<
span
class=
"{{ delimit $classList ` ` }}"
></span
>
<
i
class=
"{{ delimit $classList ` ` }}"
></i
>
{{- $scratch.Set "iconfont" true -}}
{{- end -}}
layouts/partials/home/social.html
浏览文件 @
edc53d7c
...
...
@@ -412,7 +412,14 @@
{{- partial "function/icon-link.html" $options -}}
{{- end -}}
{{- /* 058: Email */ -}}
{{- /* 058: bilibili */ -}}
{{- with .Site.Params.Social.Bilibili -}}
{{- $options := dict "href" (printf "https://space.bilibili.com/%s" .) "title" "bilibili" -}}
{{- $options = dict "class" "loveit it-bilibili-fill" "type" "other" "scratch" $.Scratch | merge $options -}}
{{- partial "function/icon-link.html" $options -}}
{{- end -}}
{{- /* 059: Email */ -}}
{{- with .Site.Params.Social.Email -}}
{{- $options := dict "href" (printf "mailto:%s" .) "title" "Email" -}}
{{- $options = dict "class" "far fa-envelope fa-fw" | merge $options -}}
...
...
layouts/partials/script.html
浏览文件 @
edc53d7c
...
...
@@ -5,6 +5,11 @@
{{- slice "css/lib/forkawesome/fork-awesome.scss" | .Scratch.Add "linkLocal" -}}
{{- end -}}
{{- /* iconfont https://www.iconfont.cn/ */ -}}
{{- if .Scratch.Get "iconfont" -}}
{{- slice "css/lib/iconfont/iconfont.css" | .Scratch.Add "linkLocal" -}}
{{- end -}}
{{- /* lazysizes https://github.com/aFarkas/lazysizes */ -}}
{{- with $CDN.lazysizesJS -}}
{{- slice . | $.Scratch.Add "scriptCDN" -}}
...
...
static/css/lib/iconfont/iconfont.eot
0 → 100644
浏览文件 @
edc53d7c
文件已添加
static/css/lib/iconfont/iconfont.svg
0 → 100644
浏览文件 @
edc53d7c
此差异已折叠。
点击以展开。
static/css/lib/iconfont/iconfont.ttf
0 → 100644
浏览文件 @
edc53d7c
文件已添加
static/css/lib/iconfont/iconfont.woff
0 → 100644
浏览文件 @
edc53d7c
文件已添加
static/css/lib/iconfont/iconfont.woff2
0 → 100644
浏览文件 @
edc53d7c
文件已添加
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录