diff --git a/_includes/side-nav.html b/_includes/side-nav.html index 3554a88..d0e2596 100644 --- a/_includes/side-nav.html +++ b/_includes/side-nav.html @@ -1,3 +1,11 @@ -{% for item in site.topic limit: 15 %} - {{ item.title }} -{% endfor %} \ No newline at end of file +
+{% for item in site.topic %} +
+ {% if item.url == page.url %} +
{{ item.title }}
+ {% else %} + {{ item.title }} + {% endif %} +
+{% endfor %} +
\ No newline at end of file diff --git a/_layouts/topic.html b/_layouts/topic.html index aa110fd..2040b2b 100644 --- a/_layouts/topic.html +++ b/_layouts/topic.html @@ -6,14 +6,21 @@ layout: default
-
-
-

{{ page.title }}

- {% if page.website != "" %} - {{ page.website }} - {% endif %} +
+
+ {% include side-nav.html %} +
+
+
+
+

{{ page.title }}

+ {% if page.website != "" %} + {{ page.website }} + {% endif %} +
+
+
+ {{ content }}
-
- {{ content }}
\ No newline at end of file diff --git a/assets/css/site.css b/assets/css/site.css index cb3ca9f..da0f488 100644 --- a/assets/css/site.css +++ b/assets/css/site.css @@ -40,3 +40,11 @@ hr { .card-body h1 { margin-bottom: 0; } + +.side-nav { + flex-flow: column nowrap; +} + +.side-nav-active { + padding-left: 4px; +} \ No newline at end of file