Archives
- {{ range (where .Site.RegularPages "Section" "post").GroupByDate "2006.01" }} + {{ range (where .Site.RegularPages "Section" "post").GroupByDate "2006-01" }} {{ .Key }} ({{ len .Pages }}){{ end }}
From 7d8511715a615bc915a0e8a7baa67da1a6712dd3 Mon Sep 17 00:00:00 2001 From: Librahang <245462755@qq.com> Date: Thu, 5 Mar 2020 17:16:28 +0800 Subject: [PATCH] 1.format date in blog as yyyy-mm 2.Change 'Guidance' to 'Post a blog' 3. Change to 10 blogs per page in Homepage --- config.toml | 2 +- content/guidance/index_.md | 2 +- themes/hugo-blog-jeffprod/layouts/index.html | 2 +- themes/hugo-blog-jeffprod/layouts/partials/header.html | 4 +++- .../hugo-blog-jeffprod/layouts/partials/widget-archives.html | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/config.toml b/config.toml index c332493..574ead5 100644 --- a/config.toml +++ b/config.toml @@ -3,7 +3,7 @@ baseurl = "http://blog.openeuler.org" author = "@JeffProd" copyright = "Copyright © 2008–2018, @JeffProd" canonifyurls = true -paginate = 3 +paginate = 10 theme = "hugo-blog-jeffprod" diff --git a/content/guidance/index_.md b/content/guidance/index_.md index 0f56556..6870ac5 100644 --- a/content/guidance/index_.md +++ b/content/guidance/index_.md @@ -1,5 +1,5 @@ +++ -title = "Guidance" +title = "Post a blog" +++ ## 前期准备 diff --git a/themes/hugo-blog-jeffprod/layouts/index.html b/themes/hugo-blog-jeffprod/layouts/index.html index e0ddfc5..8c77907 100644 --- a/themes/hugo-blog-jeffprod/layouts/index.html +++ b/themes/hugo-blog-jeffprod/layouts/index.html @@ -5,7 +5,7 @@