Skip to content

Commit

Permalink
create sidebar pages
Browse files Browse the repository at this point in the history
  • Loading branch information
rjawesome committed Jun 28, 2023
1 parent 83b7a25 commit bfe63a2
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 2 deletions.
2 changes: 0 additions & 2 deletions _includes/sidebar.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{% assign sidebar = site.data.sidebars[page.sidebar].entries %}

<ul id="mysidebar" class="nav">
<li class="sidebarTitle">{{sidebar[0].product}} {{sidebar[0].version}}</li>
{% for entry in sidebar %}
Expand Down
8 changes: 8 additions & 0 deletions pages/sidebar-home_sidebar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: none
permalink: sidebar-home_sidebar.html
---

{% assign sidebar = site.data.sidebars["home_sidebar"].entries %}

{% include sidebar.html %}
8 changes: 8 additions & 0 deletions pages/sidebar-mydoc_sidebar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: none
permalink: sidebar-mydoc_sidebar.html
---

{% assign sidebar = site.data.sidebars["mydoc_sidebar"].entries %}

{% include sidebar.html %}
8 changes: 8 additions & 0 deletions pages/sidebar-other.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: none
permalink: sidebar-other.html
---

{% assign sidebar = site.data.sidebars["other"].entries %}

{% include sidebar.html %}
8 changes: 8 additions & 0 deletions pages/sidebar-product1_sidebar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: none
permalink: sidebar-product1_sidebar.html
---

{% assign sidebar = site.data.sidebars["product1_sidebar"].entries %}

{% include sidebar.html %}
8 changes: 8 additions & 0 deletions pages/sidebar-product2_sidebar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: none
permalink: sidebar-product2_sidebar.html
---

{% assign sidebar = site.data.sidebars["product2_sidebar"].entries %}

{% include sidebar.html %}

0 comments on commit bfe63a2

Please sign in to comment.