cotes2020 / jekyll-theme-chirpy

A minimal, responsive, and feature-rich Jekyll theme for technical writing.
https://chirpy.cotes.page
MIT License
7.1k stars 5.63k forks source link

Can we put the tab urls in the root instead of under /tabs/ ? #238

Closed RyanTG closed 3 years ago

RyanTG commented 3 years ago

Checklist

Description

For the "real" tabs in the sidebar - Categories, Tags, Archives, About - can we change the tabs.url so that it doesn't include /tabs/? For example, instead of /tabs/categories it would just be /categories

I'm having trouble figuring out where the tabs.url is coming from: https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_includes/sidebar.html#L42

Thank you!

cotes2020 commented 3 years ago

can we change the tabs.url so that ...

If you want to change the output path, see permalinks.

I'm having trouble figuring out where the tabs.url is coming from ...

The tabs are implemented using Jekyll collections feature

RyanTG commented 3 years ago

Ah, thank you. I use permalinks on all my posts, but didn't even think to use them on these files. Duh.

Thanks for making such a nice theme! I love 3 column themes - but there aren't that many of them! Yours is very slick and well-designed.

RyanTG commented 3 years ago

Sorry - I have another related question, if you have time to answer it:

I would like one of my Tabs to be a link to a Category page. One of my categories is more important than the others, and so I would like to highlight it in the Tabs.

For example: I want to add a tab called Music that links to /categories/music/

What is the best way to do that?

If I create a music.md file in the _tabs folder, and give it

---
layout: category
title: Music
icon: fas fa-music
order: 4
permalink: /categories/music/
---

I think the layout line is the problem, but I'm not sure of the answer. Thanks.