diff --git a/_plugins/sidebar_item.rb b/_plugins/sidebar_item.rb index bfb218b8..77a9740e 100644 --- a/_plugins/sidebar_item.rb +++ b/_plugins/sidebar_item.rb @@ -11,7 +11,7 @@ module Jekyll if item["href"] classes.push("external") end - className = classes.size ? "class=\"#{classes.join(' ')}\"" : ""; + className = classes.size > 0 ? " class=\"#{classes.join(' ')}\"" : "" return "#{item["title"]}" end