Skip to content

Commit

Permalink
Improved the page recognition.
Browse files Browse the repository at this point in the history
Useful for label localization
  • Loading branch information
cotes2020 committed Jun 30, 2020
1 parent 77e252b commit 975dc64
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions _includes/css-selector.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@

{% elsif page.layout == 'page' %}

{% if page.title == 'Categories' %}
{% if page.type == 'categories' %}

<link rel="preload" href="{{ '/assets/css/categories.css' | relative_url }}" as="style">
<link rel="stylesheet" href="{{ '/assets/css/categories.css' | relative_url }}">

{% elsif page.title == 'Tags' %}
{% elsif page.type == 'tags' %}

<link rel="preload" href="{{ '/assets/css/tags.css' | relative_url }}" as="style">
<link rel="stylesheet" href="{{ '/assets/css/tags.css' | relative_url }}">

{% elsif page.title == 'Archives' %}
{% elsif page.type == 'archives' %}

<link rel="preload" href="{{ '/assets/css/archives.css' | relative_url }}" as="style">
<link rel="stylesheet" href="{{ '/assets/css/archives.css' | relative_url }}">
Expand Down
2 changes: 1 addition & 1 deletion _includes/js-selector.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

{% elsif page.layout == 'page' %}

{% if page.title == 'Categories' %}
{% if page.type == 'categories' %}
<script src="{{ '/assets/js/categories.min.js' | relative_url }}" async></script>
{% else %}
<script src="{{ '/assets/js/page.min.js' | relative_url }}" async></script>
Expand Down
2 changes: 1 addition & 1 deletion tabs/archives.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Archives

type: archives
# The Archives of posts.
# v2.0
# https://github.com/cotes2020/jekyll-theme-chirpy
Expand Down
2 changes: 1 addition & 1 deletion tabs/categories.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Categories

type: categories
# All the Categories of posts
# v2.0
# https://github.com/cotes2020/jekyll-theme-chirpy
Expand Down
2 changes: 1 addition & 1 deletion tabs/tags.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Tags

type: tags
# All the Tags of posts.
# v2.0
# https://github.com/cotes2020/jekyll-theme-chirpy
Expand Down

0 comments on commit 975dc64

Please sign in to comment.