Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
大白技术控
yanglr2010
提交
79b73bf6
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 搜索 >>
提交
79b73bf6
编写于
7月 22, 2019
作者:
EvanOne(文一)
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: Add support for front-matter: link
上级
16f2b3b5
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
16 addition
and
21 deletion
+16
-21
languages/en.yml
languages/en.yml
+1
-1
languages/zh-CN.yml
languages/zh-CN.yml
+1
-1
layout/_mixins/post-header.pug
layout/_mixins/post-header.pug
+10
-18
layout/_mixins/posts-sort.pug
layout/_mixins/posts-sort.pug
+4
-1
未找到文件。
languages/en.yml
浏览文件 @
79b73bf6
...
...
@@ -56,7 +56,7 @@ post:
read_more
:
Read more
fire
:
Heat
sticky
:
Sticky top
untitled
:
Untitled
untitled
:
( Untitled )
end
:
End of text, thank you for reading
copyright
:
author
:
Author
...
...
languages/zh-CN.yml
浏览文件 @
79b73bf6
...
...
@@ -56,7 +56,7 @@ post:
read_more
:
阅读全文
fire
:
热度
sticky
:
置顶文章
untitled
:
文章未命名
untitled
:
( 文章未命名 )
end
:
本文结束,感谢您的阅读
copyright
:
author
:
本文作者
...
...
layout/_mixins/post-header.pug
浏览文件 @
79b73bf6
mixin postHeader(post)
div.post-header
if (is_post())
if (post.title)
h1.post-title= post.title
else
h1.post-title= _p("post.untitled")
if is_post()
h1.post-title= post.title || _p("post.untitled")
else
a(href=url_for(post.canonical_path)).post-title-link
if (post.title)
h1.post-title= post.title
else
h1.post-title= _p("post.untitled")
if post.link
a(href=url_for(post.link) target="_blank").post-title-link
h1.post-title= post.title || post.link
else
a(href=url_for(post.canonical_path)).post-title-link
h1.post-title= post.title || _p("post.untitled")
div.post-meta
if theme.post_meta.created.enable
...
...
@@ -19,10 +17,7 @@ mixin postHeader(post)
if !theme.post_meta.icon_only
span= _p("post.posted") + " "
if post.date
span= full_date(post.date, "YYYY-MM-DD")
else
span none
span= post.date ? full_date(post.date, "YYYY-MM-DD") : 'none'
if theme.post_meta.updated.enable
span.post-meta-update
...
...
@@ -30,10 +25,7 @@ mixin postHeader(post)
if !theme.post_meta.icon_only
span= _p("post.updated") + " "
if post.updated
span= full_date(post.updated, "YYYY-MM-DD")
else
span none
span= post.updated ? full_date(post.updated, "YYYY-MM-DD") : 'none'
if theme.post_meta.word_count.enable
span.post-meta-word-count
...
...
layout/_mixins/posts-sort.pug
浏览文件 @
79b73bf6
...
...
@@ -13,7 +13,10 @@ mixin articleSort(posts)
if post.date
time.article-sort-item__time= full_date(post.date, "MM-DD")
h2.article-sort-item__title
a(href=url_for(post.path))= post.title || "No Title"
if post.link
a(href=url_for(post.link) target="_blank")= post.title || post.link
else
a(href=url_for(post.path))= post.title || _p('post.untitled')
if post.top
include ../_components/sticky-top.pug
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录