Skip to content

Commit 0c14f9f

Browse files
committed
Splited the data of navigation tabs.
1 parent 5e19d96 commit 0c14f9f

3 files changed

Lines changed: 31 additions & 7 deletions

File tree

_data/label.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44
# © 2017-2019 Cotes Chung
55
# MIT Licensed
66

7-
tabs:
8-
- { name: "Home", icon: 'fas fa-home' }
9-
- { name: "Categories", path: tabs, url: categories, icon: 'fas fa-stream' }
10-
- { name: "Tags", path: tabs, url: tags, icon: 'fas fa-tags' }
11-
- { name: "Archives", path: tabs, url: archives, icon: 'fas fa-archive'}
12-
- { name: "About", path: tabs, url: about, icon: 'fas fa-info'}
137

148
panel:
159
lastmod: "Recent Update"

_data/tabs.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# The tab data.
2+
# v2.1
3+
# https://github.com/cotes2020/jekyll-theme-chirpy
4+
# © 2020 Cotes Chung
5+
# MIT Licensed
6+
7+
8+
-
9+
name: Home
10+
icon: "fas fa-home"
11+
-
12+
name: Categories
13+
icon: "fas fa-stream"
14+
path: tabs
15+
url: categories
16+
-
17+
name: "Tags"
18+
icon: "fas fa-tags"
19+
path: tabs
20+
url: tags
21+
-
22+
name: "Archives"
23+
path: tabs
24+
url: archives
25+
icon: "fas fa-archive"
26+
-
27+
name: "About"
28+
icon: "fas fa-info"
29+
path: tabs
30+
url: about

_includes/sidebar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<ul class="nav flex-column">
3131
{% assign page_urls = page.url | split: "/" %}
3232

33-
{% for item in site.data.label.tabs %}
33+
{% for item in site.data.tabs %}
3434
{% assign ref = site.baseurl | append: "/" %}
3535

3636
{% if item.path %}

0 commit comments

Comments
 (0)