From 70d6d315c6529d9c01cad8e8d68ec0b6d34be70e Mon Sep 17 00:00:00 2001 From: Zachary Klosko <31484611+zklosko@users.noreply.github.com> Date: Sun, 17 May 2020 11:15:45 -0400 Subject: [PATCH] Trying new liquid nav --- docs/_data/nav.yaml | 87 ++++++++++++++++++++++++++++++++++++++ docs/_layouts/default.html | 15 +++---- docs/index.md | 1 + docs/quickstart.md | 5 +++ 4 files changed, 98 insertions(+), 10 deletions(-) create mode 100644 docs/_data/nav.yaml diff --git a/docs/_data/nav.yaml b/docs/_data/nav.yaml new file mode 100644 index 000000000..9215b430c --- /dev/null +++ b/docs/_data/nav.yaml @@ -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 \ No newline at end of file diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index 5b156f4ca..82e6e3b9c 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -38,16 +38,11 @@ {% endif %} - {% for link in site.navigation %} - {% assign current = nil %} - {% if page.url == link.url %} - {% assign current = 'current' %} - {% endif %} - -
- {% endfor %} +