diff --git a/default_theme/section._ b/default_theme/section._ index e4988869a..5a5e16e2b 100644 --- a/default_theme/section._ +++ b/default_theme/section._ @@ -1,10 +1,12 @@
- <% if (typeof nested === 'undefined') { %> + <% if (typeof nested === 'undefined' || (section.context && section.context.github)) { %>
+ <% if (typeof nested === 'undefined') { %>

<%- section.name %>

+ <% } %> <% if (section.context && section.context.github) { %> <%= section.context.path %> diff --git a/test/fixture/html/nested.output.files b/test/fixture/html/nested.output.files index bcd7eb89d..3aa05c120 100644 --- a/test/fixture/html/nested.output.files +++ b/test/fixture/html/nested.output.files @@ -195,10 +195,12 @@
+

Klass

+
@@ -800,10 +802,12 @@ k.isArrayOfBuffers();
+

bar

+
@@ -854,10 +858,12 @@ like a
klass

+

bar

+
@@ -918,10 +924,12 @@ like a klass

+

bar

+
@@ -972,10 +980,12 @@ like a klass. This needs a klass. This needs a