summaryrefslogtreecommitdiff
path: root/_includes/views
diff options
context:
space:
mode:
authorjeffreytse <jeffreytse.mail@gmail.com>2021-06-25 14:19:46 +0800
committerjeffreytse <jeffreytse.mail@gmail.com>2021-06-25 14:19:46 +0800
commit3340bcd1b7a4aaf9fe7f1d3097af713b5234c98e (patch)
treef72cee9d1ff64fb092d68f4ecae3ba7973b0c8c4 /_includes/views
parent404a26e6a9be6785e45f52367f0068eaaa33b3bd (diff)
style: adjust the liquid syntax of some code
Diffstat (limited to '_includes/views')
-rw-r--r--_includes/views/banner.html20
1 files changed, 10 insertions, 10 deletions
diff --git a/_includes/views/banner.html b/_includes/views/banner.html
index f26d06f..b852fb0 100644
--- a/_includes/views/banner.html
+++ b/_includes/views/banner.html
@@ -15,19 +15,19 @@
{%- include functions.html func='get_banner' -%}
-{% if banner_image %}
- {% if banner_background %}
+{%- if banner_image -%}
+ {%- if banner_background -%}
<style>
html .page-banner {
background: {{ banner_background }};
}
</style>
- {% endif %}
- {% if banner_height %}
+ {%- endif -%}
+ {%- if banner_height -%}
<style>
- {% assign num = banner_height | times: 1 %}
- {% assign unit = banner_height | replace_first: num %}
- {% assign banner_min_height = banner_min_height | default: banner_height %}
+ {%- assign num = banner_height | times: 1 -%}
+ {%- assign unit = banner_height | replace_first: num -%}
+ {%- assign banner_min_height = banner_min_height | default: banner_height -%}
html .page-banner {
height: {{ banner_height | times: 0.368 | append: unit }};
min-height: {{ banner_min_height }};
@@ -36,9 +36,9 @@
height: {{ banner_height }};
}
</style>
- {% endif %}
+ {%- endif -%}
- {% if banner_opacity %}
+ {%- if banner_opacity -%}
<style>
html .page-banner .page-banner-img > *:first-child {
opacity: {{ banner_opacity }};
@@ -48,7 +48,7 @@
opacity: {{ banner_opacity | times: 0.718 }};
}
</style>
- {% endif %}
+ {%- endif -%}
{%- if banner_heading_style -%}
<style>
html .page-banner .page-banner-inner > *:first-child > *:nth-child(1) {