diff --git a/content/assets/stylesheets/includes/blogpost.scss b/content/assets/stylesheets/includes/blogpost.scss index e97e42c..7b6da5d 100644 --- a/content/assets/stylesheets/includes/blogpost.scss +++ b/content/assets/stylesheets/includes/blogpost.scss @@ -7,6 +7,15 @@ } } +$sel: ''; +@for $i from 1 through 9 { + $sel: if($i == 1, "ul", selector-nest($sel, "ul")) !global; + + #markdown-toc.toc-depth-#{$i} #{$sel} { + display: none; + } +} + // Definition list is not defined in bulma dl { dt { diff --git a/content/blog/16-17/linux.md b/content/blog/16-17/linux.md index aa36554..7d54e16 100644 --- a/content/blog/16-17/linux.md +++ b/content/blog/16-17/linux.md @@ -3,7 +3,8 @@ title: "Linux: hoe doe?" created_at: 02-02-2017 description: Uitleg en tips voor iedereen die linux wil installeren. author: Rien -toc: true +toc: + depth: 1 --- _Bij het begin van ieder schooljaar komt er een verse lading studentjes Informatica toe die in de lessen Computergebruik kennis maken met de wondere wereld van GNU/Linux. diff --git a/layouts/blogpost.md b/layouts/blogpost.md index 9043051..0f06b28 100644 --- a/layouts/blogpost.md +++ b/layouts/blogpost.md @@ -4,7 +4,7 @@ Table of Contents

* x -{:toc} +{:toc .toc-depth-<%= item[:toc][:depth] %>} <% end %>