Skip to content

Commit

Permalink
Add jekyll-archives [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed May 17, 2019
1 parent 852c853 commit 8685c1e
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
22 changes: 20 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,10 @@ whitelist:
# - <base_path/categories/my-awesome-category/index.html ~> path: /categories/
# - <base_path/my-awesome-category/index.html ~> 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:
Expand Down Expand Up @@ -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
6 changes: 6 additions & 0 deletions _pages/category-archive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: "Posts by Category"
layout: categories
permalink: /categories/
author_profile: true
---
6 changes: 6 additions & 0 deletions _pages/tag-archive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: "Posts by Tag"
permalink: /tags/
layout: tags
author_profile: true
---

0 comments on commit 8685c1e

Please sign in to comment.