Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can add links to the bar on the side. #91

Open
ArnavMotwani opened this issue Nov 8, 2020 · 9 comments
Open

How can add links to the bar on the side. #91

ArnavMotwani opened this issue Nov 8, 2020 · 9 comments

Comments

@ArnavMotwani
Copy link

I am using the minimal them in a couple simple repos. I want to add links to each page on the side of the page (above the "View the project on GitHub" button but below the logo. How can I do this?

@glowkeeper
Copy link

Yeah, but how? I can see how to create direct links, but I'd like to create a navigation menu, say menu.md, then do something like {{ menu }} in the header section. Is something like that possible?

@BDHU
Copy link

BDHU commented Aug 20, 2021

Something like this? FYI, the code is here. Feel free to use the modified theme

@solvaholic
Copy link

Oh I like that @BDHU !

Yeah, but how?

@glowkeeper I think you're asking about step 5 in the instructions @MatBenfield linked.

I can see how to create direct links, but I'd like to create a navigation menu, say menu.md, then do something like {{ menu }} in the header section. Is something like that possible?

Yes. If you put menu.md in your site's _includes directory then you can include it the same way _layouts/default.html includes _includes/head-custom.html:

{% include head-custom.html %}

Those {% %} are for Jekyll to process when jekyll build runs. Jekyll's Includes documentation says more about that include tag.

Be sure to consider where (and whether) you wish your menu to appear on narrower displays. @BDHU's example works very well; Compare it to the default contents in this repository, to see how it's been modified.

solvaholic added a commit to solvaholic/reimagined-fortnight that referenced this issue Aug 22, 2021
@solvaholic
Copy link

Yeah, but how? I can see how to create direct links, but I'd like to create a navigation menu, say menu.md, then do something like {{ menu }} in the header section. Is something like that possible?

@ArnavMotwani @glowkeeper in case it'll help, I set up a demo:

https://solvaholic.github.io/reimagined-fortnight/

The repository's commit history explains the steps I took:

https://github.com/solvaholic/reimagined-fortnight/commits/main

This weekend I set out to add dark mode to a Minimal-themed Pages site, and got so much more. https://github.com/BDHU/bdhu.github.io is fantastic! 🙇

@godalming123
Copy link

godalming123 commented Aug 26, 2021

Yeah, but how? I can see how to create direct links, but I'd like to create a navigation menu, say menu.md, then do something like {{ menu }} in the header section. Is something like that possible?

@ArnavMotwani @glowkeeper in case it'll help, I set up a demo:

https://solvaholic.github.io/reimagined-fortnight/

The repository's commit history explains the steps I took:

https://github.com/solvaholic/reimagined-fortnight/commits/main

This weekend I set out to add dark mode to a Minimal-themed Pages site, and got so much more. https://github.com/BDHU/bdhu.github.io is fantastic! bow

did you use my fork for dark mode with a minimal theme (https://github.com/godalming123/minimal) ? Your first example has the exact same colors. If you did use my fork I'm amazed to see 2 people adopt it already!

@stale
Copy link

stale bot commented Jan 9, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jan 9, 2022
@stale stale bot removed the wontfix label Jan 29, 2022
@vaibhavvikas
Copy link

vaibhavvikas commented Jun 25, 2022

This feature should be merged into the main branch. This is one of the most important features if we require to create documentation. Let's say we want navigation on the page, we can simply add desired items on the sidebar, and the users can simply navigate.

@godalming123
Copy link

godalming123 commented Jun 25, 2022

If you are going to use minimal I would recommend using BDHU's fork it's mostly the same but adds dark mode and is still maintained

@vaibhavvikas
Copy link

vaibhavvikas commented Jun 27, 2022

If you are going to use minimal I would recommend using BDHU's fork it's mostly the same but adds dark mode and is still maintained

Thanks for the suggestion. I created my template based on minimal, using the minimalist theme by BDHU to add Navigation on the sidebar.

https://vaibhavvikas.github.io/jekyll-theme-minimalistic/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants