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

Question: How do I remove nav-global elements ? #36

Closed
ghost opened this issue Feb 7, 2012 · 4 comments
Closed

Question: How do I remove nav-global elements ? #36

ghost opened this issue Feb 7, 2012 · 4 comments
Labels

Comments

@ghost
Copy link

ghost commented Feb 7, 2012

I want to remove "Pages" from navigation.
http://i.imgur.com/Or7O1.png

How exactly can I achieve this?

@plusjade
Copy link
Owner

plusjade commented Feb 7, 2012

the navbar uses JB/pages_list and "grouping" to list the links.

go to pages.html file. on the top you will see : group : navigation

remove that line and you're all set.

@ghost
Copy link
Author

ghost commented Feb 8, 2012

---
layout: page
title: Pages 
header: Pages
---
{% include JB/setup %}

<h2>All Pages</h2>
<ul>
{% assign pages_list = site.pages %}
{% include JB/pages_list %}
</ul>

This is how my pages.html looks like now.Removing that line didn't remove "Pages" from the nav bar.

@plusjade
Copy link
Owner

plusjade commented Feb 8, 2012

Ok, it looks like your theme is not using the pages_list helper. It's just hardlinking to the pages. So you can just remove the hardlink:

https://github.com/smectos/smectos.github.com/blob/master/_includes/themes/the-minimum/default.html#L25

@ghost
Copy link
Author

ghost commented Feb 8, 2012

Thank you very much.That worked.

@ghost ghost closed this as completed Feb 8, 2012
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant