- {%- if theme.scheme === 'Pisces' || theme.scheme === 'Gemini' %}
+ {%- if theme.scheme === 'Pisces' or theme.scheme === 'Gemini' %}
{% include '_partials/header/sub-menu.swig' %}
{%- endif %}
diff --git a/layout/_macro/post.swig b/layout/_macro/post.swig
index 106bc89200..0bee0592d6 100644
--- a/layout/_macro/post.swig
+++ b/layout/_macro/post.swig
@@ -8,7 +8,7 @@
{%- set post_class = post_class + ' post-sticky' %}
{%- endif %}
- {%- if theme.reading_progress.enable && not is_index %}
+ {%- if theme.reading_progress.enable and not is_index %}
{%- endif %}
@@ -34,7 +34,7 @@
{# Not to show title for quote posts that do not have a title #}
{%- if not (is_index and post.type === 'quote' and not post.title) %}
- <{%- if theme.seo %}h2{% else %}h1{%- endif %} class="post-title{%- if post.direction && post.direction.toLowerCase() === 'rtl' %} rtl{%- endif %}" itemprop="name headline">{#
+ <{%- if theme.seo %}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 %}
@@ -72,7 +72,7 @@
{{ __('post.posted') }}
- {%- if !date_diff && time_diff && theme.post_meta.updated_at.enable && theme.post_meta.updated_at.another_day %}
+ {%- if !date_diff and time_diff and theme.post_meta.updated_at.enable and theme.post_meta.updated_at.another_day %}
{%- set create_title = __('post.created') + __('symbol.colon') + full_date(post.date) + ' / ' + __('post.modified') + __('symbol.colon') + time(post.updated) %}
{% else %}
{%- set create_title = __('post.created') + __('symbol.colon') + full_date(post.date) %}
@@ -84,8 +84,8 @@
{%- endif %}
- {%- if theme.post_meta.updated_at.enable && datetime_diff %}
- {%- set display_updated = !theme.post_meta.updated_at.another_day || theme.post_meta.updated_at.another_day && date_diff %}
+ {%- if theme.post_meta.updated_at.enable and datetime_diff %}
+ {%- set display_updated = !theme.post_meta.updated_at.another_day or theme.post_meta.updated_at.another_day and date_diff %}
{%- if display_updated or !theme.post_meta.created_at %}
@@ -194,7 +194,7 @@
{#################}
{### POST BODY ###}
{#################}
-
+
{# Gallery support #}
{%- if post.photos and post.photos.length %}
diff --git a/layout/_partials/footer.swig b/layout/_partials/footer.swig
index c20a3a7b47..3032d6982c 100644
--- a/layout/_partials/footer.swig
+++ b/layout/_partials/footer.swig
@@ -8,7 +8,7 @@
-
{{ theme.footer.copyright || author }}
+
{{ theme.footer.copyright or author }}
{%- if config.symbols_count_time.total_symbols %}
|
diff --git a/layout/_partials/header/index.swig b/layout/_partials/header/index.swig
index 9924e5ee3b..d3e8462521 100644
--- a/layout/_partials/header/index.swig
+++ b/layout/_partials/header/index.swig
@@ -1,11 +1,11 @@
{{ partial('_partials/header/brand.swig', {}, {cache: theme.cache.enable}) }}
-{%- set hasSearch = theme.algolia_search.enable || theme.local_search.enable %}
+{%- set hasSearch = theme.algolia_search.enable or theme.local_search.enable %}
{%- endif %}
-{%- if theme.rss %}
+{%- if rss %}
diff --git a/layout/_third-party/quicklink.swig b/layout/_third-party/quicklink.swig
index ced37b2cfa..25c428170d 100644
--- a/layout/_third-party/quicklink.swig
+++ b/layout/_third-party/quicklink.swig
@@ -12,7 +12,7 @@
{%- set loadQL = true %}
{%- endif %}
{%- endif %}
-
+
{%- if loadQL or (page.quicklink or post.quicklink) %}