Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
website
提交
dae0d5e7
W
website
项目概览
openeuler
/
website
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
website
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
dae0d5e7
编写于
5月 16, 2020
作者:
Y
Yujia Chen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix bugs in blog
上级
be58716c
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
17 addition
and
13 deletion
+17
-13
themes/project/layouts/archives/list.html
themes/project/layouts/archives/list.html
+3
-3
themes/project/layouts/blog/list.html
themes/project/layouts/blog/list.html
+4
-5
themes/project/layouts/partials/widgets/archives.html
themes/project/layouts/partials/widgets/archives.html
+1
-1
themes/project/layouts/partials/widgets/tags.html
themes/project/layouts/partials/widgets/tags.html
+1
-1
themes/project/layouts/tag/list.html
themes/project/layouts/tag/list.html
+3
-3
themes/project/static/css/table.css
themes/project/static/css/table.css
+5
-0
未找到文件。
themes/project/layouts/archives/list.html
浏览文件 @
dae0d5e7
...
...
@@ -22,12 +22,12 @@
<div
class=
"row"
>
<div
class=
"col-md-
9
"
>
<div
class=
"col-md-
8
"
>
<section
class=
"post"
>
{{range .Data.Pages}}
<h
2><a
href=
"{{ .RelPermalink }}"
>
{{ .Title }}
</a></h2
>
<h
3
style=
"font-family: 方正兰亭中黑;"
><a
href=
"{{ .Permalink }}"
>
{{ .Title }}
</a></h3
>
<h5
class=
"author-category"
>
{{ if isset .Params "author" }}
{{ .Params.author }}
...
...
@@ -61,7 +61,7 @@
<div
class=
"col-md-3"
>
<h3
style=
"overflow:hidden"
><a
href=
"/zh/blogguidance.html"
><img
src=
"{{ "
/
svg
/
edit.svg
"
}}"
alt=
"edit"
>
<h3
style=
"overflow:hidden
;font-family: 方正兰亭中黑;
"
><a
href=
"/zh/blogguidance.html"
><img
src=
"{{ "
/
svg
/
edit.svg
"
}}"
alt=
"edit"
>
{{i18n "main_postablog_source"}}
</a></h3>
{{partial "widgets/tags.html" . }}
{{partial "widgets/archives.html" . }}
...
...
themes/project/layouts/blog/list.html
浏览文件 @
dae0d5e7
...
...
@@ -22,14 +22,13 @@
<div
class=
"row"
>
<!-- *** LEFT COLUMN *** -->
<div
class=
"col-md-
9
"
>
<div
class=
"col-md-
8
"
>
{{ $paginator := .Paginate (where .Data.Pages "Type" "blog") }}
{{ range $paginator.Pages }}
<section
class=
"post"
>
<div
class=
"row"
>
<h2><a
href=
"{{ .Permalink }}"
>
{{ .Title }}
</a>
</h2>
<h3
style=
"font-family: 方正兰亭中黑;"
><a
href=
"{{ .Permalink }}"
>
{{ .Title }}
</a></h3>
<h5
class=
"author-category"
>
{{ if isset .Params "author" }}
{{ .Params.author }}
...
...
@@ -61,8 +60,8 @@
</div>
<!-- /.col-md-9 -->
<div
class=
"col-md-
3
"
>
<h3
style=
"overflow:hidden"
><a
href=
"/zh/blogguidance.html"
><img
src=
"{{ "
/
svg
/
edit.svg
"
}}"
alt=
"edit"
>
<div
class=
"col-md-
4
"
>
<h3
style=
"overflow:hidden
; font-family:方正兰亭中黑;
"
><a
href=
"/zh/blogguidance.html"
><img
src=
"{{ "
/
svg
/
edit.svg
"
}}"
alt=
"edit"
>
{{i18n "main_postablog_source"}}
</a></h3>
{{partial "widgets/tags.html" . }}
...
...
themes/project/layouts/partials/widgets/archives.html
浏览文件 @
dae0d5e7
...
...
@@ -10,7 +10,7 @@
<div
class=
"panel-body"
>
<ul
class=
"tag-cloud"
>
{{ range (where .Site.RegularPages "Section" "blog").GroupByDate "2006-01" }}
<li>
<a
href=
"{{ $.Site.BaseURL }}
/
{{$lan}}/archives/{{ .Key | urlize }}.html"
><i
<li>
<a
href=
"{{ $.Site.BaseURL }}{{$lan}}/archives/{{ .Key | urlize }}.html"
><i
class=
"fa fa-tags"
></i>
{{ .Key }}({{ len .Pages }})
</a><br>
</li>
{{ end }}
...
...
themes/project/layouts/partials/widgets/tags.html
浏览文件 @
dae0d5e7
...
...
@@ -10,7 +10,7 @@
<div
class=
"panel-body"
>
<ul
class=
"tag-cloud"
>
{{ range $index, $items := .Site.Taxonomies.tags }}
<li><a
href=
"{{ $.Site.BaseURL }}
/
{{$lan}}/tags/{{ $index | urlize }}.html"
><i
class=
"fa fa-tags"
></i>
{{ $index }}
</a>
<li><a
href=
"{{ $.Site.BaseURL }}{{$lan}}/tags/{{ $index | urlize }}.html"
><i
class=
"fa fa-tags"
></i>
{{ $index }}
</a>
</li>
{{ end }}
</ul>
...
...
themes/project/layouts/tag/list.html
浏览文件 @
dae0d5e7
...
...
@@ -22,12 +22,12 @@
<div
class=
"row"
>
<div
class=
"col-md-
9
"
>
<div
class=
"col-md-
8
"
>
<section
class=
"post"
>
{{range .Data.Pages}}
<h
2><a
href=
"{{ .RelPermalink }}"
>
{{ .Title }}
</a></h2
>
<h
3
style=
"font-family:方正兰亭中黑;"
><a
href=
"{{ .Permalink }}"
>
{{ .Title }}
</a></h3
>
<h5
class=
"author-category"
>
{{ if isset .Params "author" }}
{{ .Params.author }}
...
...
@@ -61,7 +61,7 @@
<div
class=
"col-md-3"
>
<h3
style=
"overflow:hidden"
><a
href=
"/zh/blogguidance.html"
><img
src=
"{{ "
/
svg
/
edit.svg
"
}}"
alt=
"edit"
>
<h3
style=
"overflow:hidden
;font-family:方正兰亭中黑;
"
><a
href=
"/zh/blogguidance.html"
><img
src=
"{{ "
/
svg
/
edit.svg
"
}}"
alt=
"edit"
>
{{i18n "main_postablog_source"}}
</a></h3>
{{partial "widgets/tags.html" . }}
{{partial "widgets/archives.html" . }}
...
...
themes/project/static/css/table.css
浏览文件 @
dae0d5e7
...
...
@@ -24,4 +24,9 @@ table th {
thead
th
{
border-width
:
0
0
2px
;
color
:
#363636
;
}
.container
.col-md-9
img
{
height
:
auto
;
max-width
:
100%
;
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录