diff --git a/_includes/body.html b/_includes/body.html index 98b8293ed9..f0efad56b2 100644 --- a/_includes/body.html +++ b/_includes/body.html @@ -13,30 +13,29 @@
- {% if page.title %} -

{{ page.title }}

{% endif %} {% if page.advisory %} + {%- if page.title -%} +

{{ page.title }}

+ {%- endif -%} + {%- if page.advisory -%}
{{ site.data.advisories.texts[page.advisory] | markdownify }}
- {% endif %} - {% unless page.tree == false or page.skip_read_time == true %}{% include read_time.html %}{% endunless %} + {%- endif -%} + {%- unless page.tree == false or page.skip_read_time == true -%}{% include read_time.html %}{%- endunless -%} {{ content }} - - {% unless page.notags == true %} - {% assign keywords = page.keywords | split:"," -%} - {% if keywords.size > 0 -%} - + {%- unless page.notags == true -%} + {%- assign keywords = page.keywords | split:"," -%} + {%- if keywords.size > 0 -%} + {%- for keyword in keywords -%} {%- assign strippedKeyword = keyword | strip -%} - {{ strippedKeyword }} + {{ strippedKeyword }} {%- unless forloop.last %}, {% endunless -%} - {% endfor -%} + {%- endfor -%} - {% endif -%} - {% endunless %} - {% if page.noratings != true %} + {%- endif -%} + {%- endunless %} + {%- if page.noratings != true -%}
- {% endif %} + {%- endif -%}
@@ -92,7 +87,7 @@ - + diff --git a/_layouts/docs.html b/_layouts/docs.html index d46e6f6995..f68f39ecca 100755 --- a/_layouts/docs.html +++ b/_layouts/docs.html @@ -1,10 +1,10 @@ -{% include head.html %} -{% if page.landing == true %} - {% include body-landing.html %} -{%else%} - {% include body.html %} -{% endif %} +{%- include head.html -%} +{%- if page.landing == true -%} + {%- include body-landing.html -%} +{%- else -%} + {%- include body.html -%} +{%- endif -%}