diff --git a/assets/css/gemini/style.css b/assets/css/gemini/style.css index 04480cf..bd20ba0 100644 --- a/assets/css/gemini/style.css +++ b/assets/css/gemini/style.css @@ -142,6 +142,18 @@ margin: 0px; } +.posts-expand .post-header { + margin: 0; +} + +.posts-expand .post-body { + margin: 28px 0; +} + +.post-footer-btn { + text-align: center; +} + /* Font A */ .fa-spin { diff --git a/i18n/en-us.toml b/i18n/en-us.toml index f5f5536..20bdbcf 100644 --- a/i18n/en-us.toml +++ b/i18n/en-us.toml @@ -40,5 +40,7 @@ other = "Views" [PostCatg] other = "Categories" +[PostTag] + other = "Tags" [PostReadMore] other = "Read More" \ No newline at end of file diff --git a/i18n/zh-cn.toml b/i18n/zh-cn.toml index bc6b2d0..a220c6a 100644 --- a/i18n/zh-cn.toml +++ b/i18n/zh-cn.toml @@ -31,14 +31,16 @@ [PostWords] other = "字数" [PostWordCount] - other = "{{- .WordCount -}}字" + other = "{{- .WordCount -}}" [PostReading] other = "阅读" [PostReadTime] other = "{{- .ReadingTime -}}分钟" [PostVisitor] - other = "浏览次数" + other = "浏览数" [PostCatg] other = "分类" +[PostTag] + other = "标签" [PostReadMore] other = "阅读全文" \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index 8d34d9e..af5d033 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -10,73 +10,21 @@
- - {{- if gt .Lastmod .PublishDate }} - - {{- end }} - {{- if isset .Params "categories" }} - {{- if not (eq (len .Params.categories) 0) }} - - {{- end }} - {{- end }} - - - + {{- partial "post_meta/date" . }} + {{- partial "post_meta/catgs" . }} + {{- partial "post_meta/tags" . }}
-
{{ .Summary }}
-
+ +
{{ .Summary }}
+
{{- end }} diff --git a/layouts/partials/post_meta/catgs.html b/layouts/partials/post_meta/catgs.html new file mode 100644 index 0000000..bcdf35d --- /dev/null +++ b/layouts/partials/post_meta/catgs.html @@ -0,0 +1,17 @@ +{{- if isset .Params "categories" }} +{{- if not (eq (len .Params.categories) 0) }} + + + + + {{- T "PostCatg" }}{{- T "ColoneFlag"}} + + {{- range (first 3 .Params.categories) }} + + {{- end }} + + +{{- end }} +{{- end }} \ No newline at end of file diff --git a/layouts/partials/post_meta/date.html b/layouts/partials/post_meta/date.html new file mode 100644 index 0000000..b6c072b --- /dev/null +++ b/layouts/partials/post_meta/date.html @@ -0,0 +1,16 @@ + + + + + {{- T "PostPublishDate" }}{{- T "ColoneFlag" }} + + +{{- if gt .Lastmod .PublishDate }} + + + + + {{- T "PostLastModDate" }}{{- T "ColoneFlag" }} + + +{{- end }} \ No newline at end of file diff --git a/layouts/partials/post_meta/reading.html b/layouts/partials/post_meta/reading.html new file mode 100644 index 0000000..06f9631 --- /dev/null +++ b/layouts/partials/post_meta/reading.html @@ -0,0 +1,7 @@ + + + + + {{- T "PostReading" }}{{- T "ColoneFlag" -}} + {{- T "PostReadTime" . -}} + \ No newline at end of file diff --git a/layouts/partials/post_meta/tags.html b/layouts/partials/post_meta/tags.html new file mode 100644 index 0000000..62e64be --- /dev/null +++ b/layouts/partials/post_meta/tags.html @@ -0,0 +1,17 @@ +{{- if isset .Params "tags" }} +{{- if not (eq (len .Params.tags) 0) }} + + + + + {{- T "PostTag" }}{{- T "ColoneFlag"}} + + {{- range (first 3 .Params.tags) }} + + {{- end }} + + +{{- end }} +{{- end }} \ No newline at end of file diff --git a/layouts/partials/post_meta/views.html b/layouts/partials/post_meta/views.html new file mode 100644 index 0000000..e2882e7 --- /dev/null +++ b/layouts/partials/post_meta/views.html @@ -0,0 +1,9 @@ + + + + + {{- T "PostVisitor" -}}{{ T "ColoneFlag" -}} + + + + \ No newline at end of file diff --git a/layouts/partials/post_meta/words.html b/layouts/partials/post_meta/words.html new file mode 100644 index 0000000..2502fbf --- /dev/null +++ b/layouts/partials/post_meta/words.html @@ -0,0 +1,7 @@ + + + + + {{- T "PostWords" }}{{- T "ColoneFlag" -}} + {{- T "PostWordCount" . -}} + \ No newline at end of file