diff --git a/_includes/css-selector.html b/_includes/css-selector.html
index da7e668a200..53e53db9991 100644
--- a/_includes/css-selector.html
+++ b/_includes/css-selector.html
@@ -12,17 +12,17 @@
{% elsif page.layout == 'page' %}
- {% if page.title == 'Categories' %}
+ {% if page.type == 'categories' %}
- {% elsif page.title == 'Tags' %}
+ {% elsif page.type == 'tags' %}
- {% elsif page.title == 'Archives' %}
+ {% elsif page.type == 'archives' %}
diff --git a/_includes/js-selector.html b/_includes/js-selector.html
index 3f8a8739571..83afe3c50f6 100644
--- a/_includes/js-selector.html
+++ b/_includes/js-selector.html
@@ -30,7 +30,7 @@
{% elsif page.layout == 'page' %}
- {% if page.title == 'Categories' %}
+ {% if page.type == 'categories' %}
{% else %}
diff --git a/tabs/archives.md b/tabs/archives.md
index b7a2d906ee9..e4d43485813 100644
--- a/tabs/archives.md
+++ b/tabs/archives.md
@@ -1,6 +1,6 @@
---
title: Archives
-
+type: archives
# The Archives of posts.
# v2.0
# https://github.com/cotes2020/jekyll-theme-chirpy
diff --git a/tabs/categories.md b/tabs/categories.md
index fed6b989546..d621bfb1ce4 100644
--- a/tabs/categories.md
+++ b/tabs/categories.md
@@ -1,6 +1,6 @@
---
title: Categories
-
+type: categories
# All the Categories of posts
# v2.0
# https://github.com/cotes2020/jekyll-theme-chirpy
diff --git a/tabs/tags.md b/tabs/tags.md
index 06271900f89..6a2152a7c06 100644
--- a/tabs/tags.md
+++ b/tabs/tags.md
@@ -1,6 +1,6 @@
---
title: Tags
-
+type: tags
# All the Tags of posts.
# v2.0
# https://github.com/cotes2020/jekyll-theme-chirpy