diff --git a/_config.yml b/_config.yml index b18e3fd..5be97ee 100644 --- a/_config.yml +++ b/_config.yml @@ -17,8 +17,8 @@ description: >- # used by seo meta and the atom feed bootstrap Jekyll theme with responsive web design and focuses on text presentation. -# Replace with the website url, e.g. 'https://username.github.io' -url: 'protocol://domain' +# fill in the base hostname & protocol for your site, e.g., 'https://username.github.io' +url: '' author: your_full_name # change to your full name @@ -80,7 +80,7 @@ disqus: # theme_mode: dual -# boolean type, global switch for ToC in posts. +# boolean type, the global switch for ToC in posts. toc: true paginate: 10 @@ -105,16 +105,21 @@ kramdown: # or you think you're smart enough to change other relevant URLs within this template. permalink: /posts/:title/ +collections: + tabs: + output: true + sort_by: order + + defaults: - scope: - path: "" # An empty string here means all files in the project + path: '' # An empty string here means all files in the project type: posts values: layout: post comments: true # Enable comments in posts. toc: true # Display TOC column in posts. - location: Post breadcrumb: - label: Posts @@ -128,8 +133,6 @@ defaults: scope: path: tags values: - tab_active: Tags - location: Tag breadcrumb: - label: Home @@ -141,8 +144,6 @@ defaults: scope: path: categories values: - tab_active: Categories - location: Category breadcrumb: - label: Home @@ -152,7 +153,8 @@ defaults: url: /tabs/categories/ - scope: - path: tabs + path: '' + type: tabs # see `site.collections` values: layout: page dynamic_title: true # Hide title in mobile screens. diff --git a/_data/tabs.yml b/_data/tabs.yml deleted file mode 100644 index 0f65841..0000000 --- a/_data/tabs.yml +++ /dev/null @@ -1,30 +0,0 @@ -# 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/css-selector.html b/_includes/css-selector.html index 53e53db..965071b 100644 --- a/_includes/css-selector.html +++ b/_includes/css-selector.html @@ -12,20 +12,21 @@ {% elsif page.layout == 'page' %} - {% if page.type == 'categories' %} + {% if page.collection == 'tabs' and page.title != 'About' %} - - - - {% elsif page.type == 'tags' %} - - - - - {% elsif page.type == 'archives' %} - - - + {% if page.title == 'Categories' %} + + + + {% elsif page.title == 'Tags' %} + + + + {% elsif page.title == 'Archives'%} + + + + {% endif %} {% else %} diff --git a/_includes/js-selector.html b/_includes/js-selector.html index 62a36e6..622de8f 100644 --- a/_includes/js-selector.html +++ b/_includes/js-selector.html @@ -22,7 +22,7 @@ {% elsif page.layout == 'page' %} - {% if page.type == 'categories' %} + {% if page.title == 'Categories' and page.collection == 'tabs' %} {% else %} diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 1e9e4a1..d21702d 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -7,6 +7,7 @@ -->
+ diff --git a/_includes/topbar.html b/_includes/topbar.html index 1d4f144..901d2e5 100644 --- a/_includes/topbar.html +++ b/_includes/topbar.html @@ -29,13 +29,13 @@