diff --git a/src/_includes/sidebar/menu-side.html b/src/_includes/sidebar/menu-side.html index 089aae8a6f..2bf86810b3 100644 --- a/src/_includes/sidebar/menu-side.html +++ b/src/_includes/sidebar/menu-side.html @@ -33,6 +33,7 @@ {% assign maxHeader = include.h_max | default: 6 %} {% assign nodes = include.html | split: ' maxHeader %} {% continue %} + {% else %} + {% assign amount = i | plus:1 %} {% endif %} {% if firstHeader %} @@ -95,7 +98,7 @@ {% endif %} {% endcapture %}{% assign tocWorkspace = '' %} -{% assign amount = _hAttrToStrip | size %} + {% if amount > 0 %}

On this page

{{ my_toc | markdownify | strip }} diff --git a/src/_layouts/home.html b/src/_layouts/home.html index 6be9b57205..478628668a 100644 --- a/src/_layouts/home.html +++ b/src/_layouts/home.html @@ -2,30 +2,62 @@ layout: main --- -
-
-
- {%- if page.title -%} -

- {{ page.title }} {% unless page.landing %}{{ page.integration_type | capitalize }}{% endunless %} -

- {%- endif -%} - - {%- if page.beta -%} - {% include content/beta.md %} - {%- endif -%} - -
- {{ content }} -
+
+
+ -
+ {% include_cached navbar/navbar-mobile.html %} +
+ +
+
+
+
+ {%- if page.title -%} +

+ {{ page.title }} {% unless page.landing %}{{ page.integration_type | capitalize }}{% endunless %} +

+ {%- endif -%} + + {%- if page.beta -%} + {% include content/beta.md %} + {%- endif -%} + +
+ {{ content }} +
+
+ +
+ + {% unless page.hide-feedback %} + {% include components/feedback.html %} + {% endunless %} + + {% include components/callout.html %} +
+
+
+
+ +
+ {% include_cached navbar/nav.html %} + + -
+ diff --git a/src/_layouts/main.html b/src/_layouts/main.html index 1dcea09640..649ae9e1e7 100644 --- a/src/_layouts/main.html +++ b/src/_layouts/main.html @@ -19,39 +19,7 @@ {% endif %} -
-
- - - {% include_cached navbar/navbar-mobile.html %} -
- -
- {{ content }} -
-
- -
- {% include_cached navbar/nav.html %} - - -
+ {{ content }}