From a82d3647da115c5d62321123a8554d3d922878a9 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Mon, 17 Feb 2020 03:36:54 +0800 Subject: [PATCH] Splited the data of navigation tabs. --- _data/label.yml | 6 ------ _data/tabs.yaml | 30 ++++++++++++++++++++++++++++++ _includes/sidebar.html | 2 +- 3 files changed, 31 insertions(+), 7 deletions(-) create mode 100644 _data/tabs.yaml diff --git a/_data/label.yml b/_data/label.yml index e3de675..d170552 100644 --- a/_data/label.yml +++ b/_data/label.yml @@ -4,12 +4,6 @@ # © 2017-2019 Cotes Chung # MIT Licensed -tabs: - - { name: "Home", icon: 'fas fa-home' } - - { name: "Categories", path: tabs, url: categories, icon: 'fas fa-stream' } - - { name: "Tags", path: tabs, url: tags, icon: 'fas fa-tags' } - - { name: "Archives", path: tabs, url: archives, icon: 'fas fa-archive'} - - { name: "About", path: tabs, url: about, icon: 'fas fa-info'} panel: lastmod: "Recent Update" diff --git a/_data/tabs.yaml b/_data/tabs.yaml new file mode 100644 index 0000000..0f65841 --- /dev/null +++ b/_data/tabs.yaml @@ -0,0 +1,30 @@ +# The tab data. +# v2.1 +# https://github.com/cotes2020/jekyll-theme-chirpy +# © 2020 Cotes Chung +# MIT Licensed + + +- + name: Home + icon: "fas fa-home" +- + name: Categories + icon: "fas fa-stream" + path: tabs + url: categories +- + name: "Tags" + icon: "fas fa-tags" + path: tabs + url: tags +- + name: "Archives" + path: tabs + url: archives + icon: "fas fa-archive" +- + name: "About" + icon: "fas fa-info" + path: tabs + url: about \ No newline at end of file diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 650e444..285c0fa 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -30,7 +30,7 @@