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 }} +
+
+

- +

-
-
    -
  1. Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. -
    - - 阅读全文 » - -
    +
    {{ .Summary }}
    +
    + + {{- T "PostReadMore" }} » +
-{{ end }} \ No newline at end of file +
+{{- end }} +{{- end }} \ No newline at end of file diff --git a/layouts/partials/head/css.html b/layouts/partials/head/css.html index 94f010d..67c9aa5 100644 --- a/layouts/partials/head/css.html +++ b/layouts/partials/head/css.html @@ -1,5 +1,5 @@ - - + + {{- $scheme := lower .Site.Params.scheme }} {{- $styleScheme := (printf "css/%s/style.css" $scheme) }} diff --git a/static/css/hover.css b/static/css/hover.css index c096618..b20923b 100644 --- a/static/css/hover.css +++ b/static/css/hover.css @@ -68,4 +68,108 @@ animation-timing-function: linear; -webkit-animation-iteration-count: infinite; animation-iteration-count: infinite; +} + +/* Bounce To Right */ +.hvr-bounce-to-right { + background: var(--btn-default-bg); + border: 2px solid var(--btn-default-border-color); + border-radius: 2px; + color: var(--btn-default-color); + display: inline-block; + font-size: 0.875em; + line-height: 2; + padding: 0 20px; + display: inline-block; + vertical-align: middle; + -webkit-transform: perspective(1px) translateZ(0); + transform: perspective(1px) translateZ(0); + box-shadow: 0 0 1px rgba(0, 0, 0, 0); + position: relative; + -webkit-transition-property: color; + transition-property: color; + -webkit-transition-duration: 0.5s; + transition-duration: 0.5s; +} +.hvr-bounce-to-right:before { + content: ""; + position: absolute; + z-index: -1; + top: -1px; + left: -1px; + right: 0; + bottom: 0; + background: var(--btn-default-hover-bg); + -webkit-transform: scaleX(0); + transform: scaleX(0); + -webkit-transform-origin: 0 50%; + transform-origin: 0 50%; + -webkit-transition-property: transform; + transition-property: transform; + -webkit-transition-duration: 0.5s; + transition-duration: 0.5s; + -webkit-transition-timing-function: ease-out; + transition-timing-function: ease-out; +} +.hvr-bounce-to-right:hover, .hvr-bounce-to-right:focus, .hvr-bounce-to-right:active { + background: var(--btn-default-bg); + border-color: var(--btn-default-hover-border-color); + color: var(--btn-default-hover-color); +} +.hvr-bounce-to-right:hover:before, .hvr-bounce-to-right:focus:before, .hvr-bounce-to-right:active:before { + -webkit-transform: scaleX(1); + transform: scaleX(1); + -webkit-transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66); + transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66); +} + +/* Shutter Out Horizontal */ +.hvr-shutter-out-horizontal { + background: var(--btn-default-bg); + border: 2px solid var(--btn-default-border-color); + border-radius: 2px; + color: var(--btn-default-color); + display: inline-block; + font-size: 0.875em; + line-height: 2; + padding: 0 20px; + display: inline-block; + vertical-align: middle; + -webkit-transform: perspective(1px) translateZ(0); + transform: perspective(1px) translateZ(0); + box-shadow: 0 0 1px rgba(0, 0, 0, 0); + position: relative; + -webkit-transition-property: color; + transition-property: color; + -webkit-transition-duration: 0.3s; + transition-duration: 0.3s; +} +.hvr-shutter-out-horizontal:before { + content: ""; + position: absolute; + z-index: -1; + top: -1px; + bottom: 0; + left: -1px; + right: 0; + background: var(--btn-default-hover-bg); + -webkit-transform: scaleX(0); + transform: scaleX(0); + -webkit-transform-origin: 50%; + transform-origin: 50%; + -webkit-transition-property: transform; + transition-property: transform; + -webkit-transition-duration: 0.3s; + transition-duration: 0.3s; + -webkit-transition-timing-function: ease-out; + transition-timing-function: ease-out; +} +.hvr-shutter-out-horizontal:hover, .hvr-shutter-out-horizontal:focus, .hvr-shutter-out-horizontal:active { + background: var(--btn-default-bg); + border-color: var(--btn-default-hover-border-color); + color: var(--btn-default-hover-color); +} +.hvr-shutter-out-horizontal:hover:before, .hvr-shutter-out-horizontal:focus:before, .hvr-shutter-out-horizontal:active:before { + -webkit-transform: scaleX(1); + transform: scaleX(1); } \ No newline at end of file