diff --git a/layout/_macro/post.njk b/layout/_macro/post.njk index 8d4b70877..772dfba8b 100644 --- a/layout/_macro/post.njk +++ b/layout/_macro/post.njk @@ -20,7 +20,7 @@ {%- if post.header !== false %}
- <{%- if is_index %}h2{% else %}h1{%- endif %} class="post-title{%- if post.direction and post.direction.toLowerCase() === 'rtl' %} rtl{%- endif %}" itemprop="name headline"> + <{% if is_index %}h2{% else %}h1{% endif %} class="post-title{% if post.direction and post.direction.toLowerCase() === 'rtl' %} rtl{% endif %}" itemprop="name headline"> {# Link posts #} {%- if post.link %} {%- if post.sticky > 0 %} @@ -42,7 +42,7 @@ {{- post.title }} {{- post_edit(post.source) }} {%- endif %} - +
{{ partial('_partials/post/post-meta.njk') }} @@ -57,7 +57,7 @@ {#################} {### POST BODY ###} {#################} -
+
{%- if is_index %} {%- if post.description and theme.excerpt_description %}

{{ post.description }}

diff --git a/layout/_partials/header/brand.njk b/layout/_partials/header/brand.njk index ff0d296fd..929996069 100644 --- a/layout/_partials/header/brand.njk +++ b/layout/_partials/header/brand.njk @@ -16,7 +16,7 @@ -

{{ title }}

+ <{% if is_home() or is_archive() %}h1{% else %}p{% endif %} class="site-title">{{ title }}
{%- if subtitle %} diff --git a/layout/_partials/header/index.njk b/layout/_partials/header/index.njk index 69a40c255..37c4c109f 100644 --- a/layout/_partials/header/index.njk +++ b/layout/_partials/header/index.njk @@ -1,4 +1,4 @@ -{{ partial('_partials/header/brand.njk', {}, {cache: theme.cache.enable}) }} +{{ partial('_partials/header/brand.njk') }} {{ partial('_partials/header/menu.njk', {}, {cache: theme.cache.enable}) }} diff --git a/layout/_partials/header/menu.njk b/layout/_partials/header/menu.njk index 5b39769d6..d1dc8a52f 100644 --- a/layout/_partials/header/menu.njk +++ b/layout/_partials/header/menu.njk @@ -25,7 +25,7 @@ {%- if theme.algolia_search.enable or theme.local_search.enable %} {%- endif %} diff --git a/layout/_partials/sidebar/site-overview.njk b/layout/_partials/sidebar/site-overview.njk index 8f3de41a4..857c4c6d7 100644 --- a/layout/_partials/sidebar/site-overview.njk +++ b/layout/_partials/sidebar/site-overview.njk @@ -30,7 +30,7 @@ {%- endif %} {{ site.categories.length }} {{ __('state.categories') }} - {%- if hasCategoriesPage %}{%- endif %} + {%- if hasCategoriesPage %}{% endif %}
{%- endif %} @@ -44,7 +44,7 @@ {%- endif %} {{ site.tags.length }} {{ __('state.tags') }} - {%- if hasTagsPage %}{%- endif %} + {%- if hasTagsPage %}{% endif %}
{%- endif %} @@ -54,7 +54,7 @@ {%- if theme.chat.enable and (theme.chatra.enable or theme.tidio.enable or theme.gitter.enable) %} @@ -84,7 +84,7 @@ {%- if theme.links %}