Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
大白技术控
yanglr2010
提交
c5e640ef
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 搜索 >>
提交
c5e640ef
编写于
1月 29, 2020
作者:
C
coortop
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加文章分享模块
上级
797a3b91
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
39 addition
and
0 deletion
+39
-0
_config.yml
_config.yml
+7
-0
layout/_partials/widgets/share.pug
layout/_partials/widgets/share.pug
+7
-0
layout/post.pug
layout/post.pug
+3
-0
source/css/_common/components/widgets/index.styl
source/css/_common/components/widgets/index.styl
+1
-0
source/css/_common/components/widgets/share.styl
source/css/_common/components/widgets/share.styl
+21
-0
未找到文件。
_config.yml
浏览文件 @
c5e640ef
...
...
@@ -392,6 +392,13 @@ post_widget:
# Show the horizon line before the text of the end.
horizon_line
:
true
# Article sharing
article_share
:
enable
:
true
#Apps to share
#Optional value: qzone, qq, weibo, wechat, douban, google, facebook, twitter
application
:
weibo, qq, wechat, qzone, twitter
# Automatically retain article excerpt.
auto_excerpt
:
enable
:
false
...
...
layout/_partials/widgets/share.pug
0 → 100644
浏览文件 @
c5e640ef
- var article_share = theme.article_share
div.post-share-container
div.social-share-text= "分享到:"
div.social-share(data-sites=`${article_share.application}`)
link(rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/social-share.js/1.0.16/css/share.min.css")
script(src="https://cdnjs.cloudflare.com/ajax/libs/social-share.js/1.0.16/js/social-share.min.js")
layout/post.pug
浏览文件 @
c5e640ef
...
...
@@ -15,6 +15,9 @@ block content
+gallery(page)
!= page.content
if theme.article_share && theme.article_share.enable
include ./_partials/widgets/share.pug
footer.post-footer
if theme.post_widget.end_text.enable
div.post-end
...
...
source/css/_common/components/widgets/index.styl
浏览文件 @
c5e640ef
...
...
@@ -12,3 +12,4 @@
@import './copy-button.styl';
@import './sticky-top.styl';
@import './pagination.styl';
@import './share.styl';
source/css/_common/components/widgets/share.styl
0 → 100644
浏览文件 @
c5e640ef
.post-share-container {
width: 100%;
height: 40px;
margin-bottom: 25px;
}
.post-share-container > div {
height: 40px;
float: left;
line-height: 40px;
}
.post-share-container .social-share-text {
margin-right: 4px;
font-size: 16px;
}
.post-share-container .social-share > a {
margin: 0;
margin-right: 8px;
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录