From 1892bc38d8416a6ec79f37c41a9ffb38b6f44938 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Fri, 24 Jan 2025 18:36:15 +0100 Subject: minimalize layout --- _plugins/toc.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '_plugins/toc.rb') diff --git a/_plugins/toc.rb b/_plugins/toc.rb index 3c4f836..80acc82 100644 --- a/_plugins/toc.rb +++ b/_plugins/toc.rb @@ -9,7 +9,9 @@ module Jekyll # enumerate over all h1-4 headings @els = doc.css("h1, h2, h3, h4") - return '
%s
' % [ output_toc ] + toc = output_toc() + return '' if toc.empty? + return '' % [ toc ] end def output_toc @@ -29,7 +31,7 @@ module Jekyll if level >= level_next output += '
  • ' else - output += '
  • ' + output += '
  • ' output += '' end -- cgit v1.2.3