Skip to content

Commit

Permalink
Add categories to mark active in menu correctly
Browse files Browse the repository at this point in the history
Fixes #156
  • Loading branch information
xPaw committed Nov 5, 2018
1 parent 64b699e commit 7103005
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions _api/context-menu.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: documentation
category: api
title: Context Menu
description: Manage commands that appear in the context menu
type: client
Expand Down
1 change: 1 addition & 0 deletions _api/stylesheets.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: documentation
category: api
title: Stylesheets
description: Register CSS files to all clients
type: server
Expand Down
1 change: 1 addition & 0 deletions _docs/api.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: documentation
category: api
title: API reference
order: 7
---
Expand Down
1 change: 1 addition & 0 deletions _docs/configuration.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: documentation
category: configuration
title: Configuration
order: 4
---
Expand Down
1 change: 1 addition & 0 deletions _docs/guides.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: documentation
category: guides
title: Guides
order: 6
---
Expand Down
1 change: 1 addition & 0 deletions _docs/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: documentation
category: getting_started
title: Getting started
order: 1
---
Expand Down
1 change: 1 addition & 0 deletions _docs/install-and-upgrade.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: documentation
category: install-and-upgrade
title: Install and upgrade
order: 2
---
Expand Down
1 change: 1 addition & 0 deletions _docs/unofficial-install-methods/heroku.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: documentation
category: install-and-upgrade
title: Heroku
---

Expand Down
1 change: 1 addition & 0 deletions _docs/usage.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: documentation
category: usage
title: Usage
order: 3
---
Expand Down
1 change: 1 addition & 0 deletions _docs/users.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: documentation
category: users
title: Users
order: 5
---
Expand Down
1 change: 1 addition & 0 deletions _guides/ctcp.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: documentation
category: guides
title: Send CTCP commands with The Lounge
---

Expand Down
1 change: 1 addition & 0 deletions _guides/custom-css.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: documentation
category: guides
title: Customize The Lounge on-the-fly using CSS
---

Expand Down
1 change: 1 addition & 0 deletions _guides/https.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: documentation
category: guides
title: Protect The Lounge with HTTPS
---

Expand Down
1 change: 1 addition & 0 deletions _guides/network-overrides.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: documentation
category: guides
title: Override network defaults in the URL
---

Expand Down
1 change: 1 addition & 0 deletions _guides/reverse-proxies.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: documentation
category: guides
title: Configure a reverse proxy for The Lounge
---

Expand Down
1 change: 1 addition & 0 deletions _guides/theme-creation.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: documentation
category: guides
title: Create a theme
---

Expand Down
1 change: 1 addition & 0 deletions _guides/upgrade.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: documentation
category: guides
title: How to upgrade to The Lounge v3
---

Expand Down
2 changes: 1 addition & 1 deletion _includes/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<li>
<a
href="{{ site.baseurl }}{{ node.url | remove: "/index" }}"
{% if page.url == node.url %}class="active"{% endif %}
{% if page.url == node.url or (node.category != nil and node.category == page.category) %}class="active"{% endif %}
>
{{ node.title }}
</a>
Expand Down

0 comments on commit 7103005

Please sign in to comment.