diff --git a/assets/css/gemini/style.css b/assets/css/gemini/style.css
index bab6e6c..04480cf 100644
--- a/assets/css/gemini/style.css
+++ b/assets/css/gemini/style.css
@@ -123,3 +123,28 @@
.back-to-top {
bottom: 30px;
}
+
+.posts-expand .post-meta-container {
+ margin: 10px auto;
+}
+
+.post-meta-item-icon {
+ margin: 0 0 0 -5px;
+}
+
+:not(.post-meta-break) + .post-meta-item::before {
+ content: '|';
+ margin: 0 0.3em;
+}
+
+.post-meta-catg:not(:last-child)::after {
+ content: ';';
+ margin: 0px;
+}
+
+
+/* Font A */
+.fa-spin {
+ -webkit-animation: fa-spin .8s infinite linear;
+ animation: fa-spin .8s infinite linear;
+}
diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml
index 1a77b97..5ff7c4c 100644
--- a/exampleSite/config.yaml
+++ b/exampleSite/config.yaml
@@ -57,6 +57,8 @@ menus:
# User-define Settings
# -------------------------------------
params:
+ mainSections: [ "posts" ]
+ dateFormat: 2006-01-02
# -------------------------------------
# Scheme Settings
# -------------------------------------
diff --git a/i18n/en-us.toml b/i18n/en-us.toml
index bde84b6..f5f5536 100644
--- a/i18n/en-us.toml
+++ b/i18n/en-us.toml
@@ -2,6 +2,9 @@
# English Version
#--------------------------------------
+[ColoneFlag]
+ other = ":"
+
[SitePostsTitle]
other = "Posts"
[SiteCatesTitle]
@@ -15,4 +18,27 @@
[RSSTitle]
other = "RSS Subscribe"
[CCLinkTitle]
- other = "Creative Commons"
\ No newline at end of file
+ other = "Creative Commons"
+
+[PostPublishDate]
+ other = "Publish"
+[PostPublishTime]
+ other = "Create Time"
+[PostLastModDate]
+ other = "Update"
+[PostLastModTime]
+ other = "Modify Time"
+[PostWords]
+ other = "Words"
+[PostWordCount]
+ other = "{{- .WordCount -}}"
+[PostReading]
+ other = "Read"
+[PostReadTime]
+ other = "{{- .ReadingTime -}}min"
+[PostVisitor]
+ other = "Views"
+[PostCatg]
+ other = "Categories"
+[PostReadMore]
+ other = "Read More"
\ No newline at end of file
diff --git a/i18n/zh-cn.toml b/i18n/zh-cn.toml
index cab45a5..bc6b2d0 100644
--- a/i18n/zh-cn.toml
+++ b/i18n/zh-cn.toml
@@ -2,6 +2,9 @@
# 中文版本
#--------------------------------------
+[ColoneFlag]
+ other = ":"
+
[SitePostsTitle]
other = "日志"
[SiteCatesTitle]
@@ -15,4 +18,27 @@
[RSSTitle]
other = "RSS 订阅"
[CCLinkTitle]
- other = "共享知识"
\ No newline at end of file
+ other = "共享知识"
+
+[PostPublishDate]
+ other = "发表于"
+[PostPublishTime]
+ other = "创建时间"
+[PostLastModDate]
+ other = "更新于"
+[PostLastModTime]
+ other = "修改时间"
+[PostWords]
+ other = "字数"
+[PostWordCount]
+ other = "{{- .WordCount -}}字"
+[PostReading]
+ other = "阅读"
+[PostReadTime]
+ other = "{{- .ReadingTime -}}分钟"
+[PostVisitor]
+ other = "浏览次数"
+[PostCatg]
+ other = "分类"
+[PostReadMore]
+ other = "阅读全文"
\ No newline at end of file
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 962c844..fe39880 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -19,10 +19,7 @@
{{ partial "partials/header.html" . }}
-
- {{- block "main" . -}}
- {{- end -}}
-
+ {{- block "main" . -}}{{- end -}}
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index e69de29..02ce795 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -0,0 +1,2 @@
+{{- define "main" }}
+{{- end }}
\ No newline at end of file
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index e69de29..02ce795 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -0,0 +1,2 @@
+{{- define "main" }}
+{{- end }}
\ No newline at end of file
diff --git a/layouts/index.html b/layouts/index.html
index 8068816..8d34d9e 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,21 +1,12 @@
-{{ define "main" }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+{{- define "main" }}
+{{- $paginator := .Paginate (where .Site.RegularPages "Section" "in" .Site.Params.mainSections) }}
+{{- range $paginator.Pages }}
+