Trying new liquid nav

This commit is contained in:
Zachary Klosko 2020-05-17 11:15:45 -04:00
parent f3ab68c2c5
commit 70d6d315c6
4 changed files with 98 additions and 10 deletions

87
docs/_data/nav.yaml Normal file
View File

@ -0,0 +1,87 @@
main:
- text: Quick Install
url: quickstart
- text: Advanced Install
url: install
- text: Features
url: features
- text: FAQ
url: faq
- text: Manual
url: manual
- text: Help!
url: troubleshooting
installer:
- Quick Install:
- text: Quick Install
url: quickstart
- text: Host Configuration
url: host-configuration
- text: Setting the Server Time
url: setting-the-server-time
- text: Configuring Track Types
url: track-types
- text: Advanced Install
url: install
- text: Features
url: features
- text: FAQ
url: faq
- text: Manual
url: manual
- text: Help!
url: troubleshooting
man-mainmenus:
- text: Quick Install
url: quickstart
- text: Advanced Install
url: install
- text: Features
url: features
- text: FAQ
url: faq
- text: Manual
url: manual
- text: Main Menus
- text: Upload
url: upload
- text: Dashboard
url: dashboard
- text: Tracks
url: tracks
- text: Playlists
url: playlists
- text: Smartblocks
url: smartblocks
- text: Webstreams
url: webstreams
- text: Podcasts
url: podcasts
- text: Radio Page
url: radio-page
- text: Calendar
url: calendar
- text: Settings
- text: General
url: general-settings
- text: Users
url: users
- text: Stream Settings
url: stream-settings
- text: Status
url: sttus
- text: Analytics
- text: Playout History
url: history
- text: History Templates
url: history-templates
- text: Listener Statistics
url: listener-stats
- text: Help
url: help
- text: Listen
url: listen
- text: Help!
url: troubleshooting

View File

@ -38,16 +38,11 @@
</ul>
{% endif %}
{% for link in site.navigation %}
{% assign current = nil %}
{% if page.url == link.url %}
{% assign current = 'current' %}
{% endif %}
<p class="nav-list-item{% if forloop.first %}first{% endif %} {{ current }} {% if forloop.last %}nav-list-item-last{% endif %}">
<a class="{{ current }}" href="{{ link.url }}">{{ link.text }}</a>
<p>
{% endfor %}
<ul>
{% for item in site.data.nav[page.sidebar] %}
<li><a href="{{ item.url }}">{{ item.text }}</a></li>
{% endfor %}
</ul>
</header>
<section>

View File

@ -1,6 +1,7 @@
---
layout: default
title: Home
sidebar: main
---

View File

@ -1,3 +1,8 @@
---
title: Quick Install
sidebar: installer
---
Up and running in 10 minutes!
----------------------------