diff --git a/layout/_layout.swig b/layout/_layout.swig index 2881909270..26e03e0044 100644 --- a/layout/_layout.swig +++ b/layout/_layout.swig @@ -1,26 +1,26 @@ {# NexT version #} -{% set version = next_env('version') %} +{%- set version = next_env('version') %} {# Language & Config #} -{% set title = __('title') !== 'title' && __('title') || config.title %} -{% set subtitle = __('subtitle') !== 'subtitle' && __('subtitle') || config.subtitle %} -{% set author = __('author') !== 'author' && __('author') || config.author %} -{% set description = __('description') !== 'description' && __('description') || config.description %} +{%- set title = __('title') !== 'title' && __('title') || config.title %} +{%- set subtitle = __('subtitle') !== 'subtitle' && __('subtitle') || config.subtitle %} +{%- set author = __('author') !== 'author' && __('author') || config.author %} +{%- set description = __('description') !== 'description' && __('description') || config.description %} -{% set html_class = 'theme-next ' + theme.scheme %} -{% if theme.motion.enable %} - {% set html_class = html_class + ' use-motion' %} -{% endif %} +{%- set html_class = 'theme-next ' + theme.scheme %} +{%- if theme.motion.enable %} + {%- set html_class = html_class + ' use-motion' %} +{%- endif %}
{{ partial('_partials/head/head.swig', {}, {cache: theme.cache.enable}) }} {% include '_partials/head/head-unique.swig' %} - {% for inject_item in theme.injects.head %} + {%- for inject_item in theme.injects.head %} {{ partial(inject_item.layout, inject_item.locals, inject_item.options) }} - {% endfor %} + {%- endfor %}