From 8685c1ecd984529dcb044ba816497313d8896f1e Mon Sep 17 00:00:00 2001 From: iBug Date: Sat, 18 May 2019 01:48:38 +0800 Subject: [PATCH] Add jekyll-archives [ci skip] --- Gemfile | 1 + _config.yml | 22 ++++++++++++++++++++-- _pages/category-archive.md | 6 ++++++ _pages/tag-archive.md | 6 ++++++ 4 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 _pages/category-archive.md create mode 100644 _pages/tag-archive.md diff --git a/Gemfile b/Gemfile index 1d3a618..72c56a3 100644 --- a/Gemfile +++ b/Gemfile @@ -9,6 +9,7 @@ group :jekyll_plugins do gem "jekyll-git_metadata" gem "jekyll-assets" gem "jekyll-algolia" + gem "jekyll-archives" #gem "jekyll-liquify" gem "jekyll-paginate-v2" #gem "jekyll-tagging" diff --git a/_config.yml b/_config.yml index fbff257..a4b36e9 100644 --- a/_config.yml +++ b/_config.yml @@ -310,10 +310,10 @@ whitelist: # - path: /categories/ # - path: / category_archive: - type: liquid + type: jekyll-archives # liquid path: /categories/ tag_archive: - type: liquid + type: jekyll-archives # liquid path: /tags/ # https://github.com/jekyll/jekyll-archives jekyll-archives: @@ -374,3 +374,21 @@ defaults: toc_label: "目录" toc_icon: "th-list" toc_sticky: true + - scope: + path: "" + type: tag + values: + author_profile: true + read_time: false + comments: false + share: true + related: false + - scope: + path: "" + type: category + values: + author_profile: true + read_time: false + comments: false + share: true + related: false diff --git a/_pages/category-archive.md b/_pages/category-archive.md new file mode 100644 index 0000000..4cb3860 --- /dev/null +++ b/_pages/category-archive.md @@ -0,0 +1,6 @@ +--- +title: "Posts by Category" +layout: categories +permalink: /categories/ +author_profile: true +--- diff --git a/_pages/tag-archive.md b/_pages/tag-archive.md new file mode 100644 index 0000000..3f4e3f0 --- /dev/null +++ b/_pages/tag-archive.md @@ -0,0 +1,6 @@ +--- +title: "Posts by Tag" +permalink: /tags/ +layout: tags +author_profile: true +---