This commit is contained in:
2023-06-05 17:09:13 +03:00
parent 651870110c
commit f6d9f5f863
3 changed files with 10 additions and 2 deletions

BIN
content/about/bg_new.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

View File

@@ -6,7 +6,7 @@ insert_anchor_links: "left"
<!-- section 1 (header) --> <!-- section 1 (header) -->
{% row(style="semiNarrow mbottom" bgPath="images/bg_new.jpg") %} {% row(style="semiNarrow mbottom" bgPath="bg_new.jpg") %}
<br> <br>

View File

@@ -124,7 +124,8 @@ Parameters:
<!-- makes row full screen width and adds background img --> <!-- makes row full screen width and adds background img -->
{% set styles = "" %} {% set styles = "" %}
{% if bgPath %} {% if bgPath %}
{% set styles = "background: url('" ~ bgPath ~ "'); background-size: cover; background-position: bottom" %} {% set background_url = page.permalink ~ bgPath %}
{% set styles = "background: url('" ~ background_url ~ "'); background-size: cover; background-position: bottom;" %}
{% set row_class = row_class ~ "w-screen sm:-mx-12 md:-mx-16 lg:-mx-20" %} {% set row_class = row_class ~ "w-screen sm:-mx-12 md:-mx-16 lg:-mx-20" %}
{% endif %} {% endif %}
{% if bgColor %} {% if bgColor %}
@@ -135,6 +136,13 @@ Parameters:
{% set styles = "background: " ~ gradient ~ "; background-size: cover" %} {% set styles = "background: " ~ gradient ~ "; background-size: cover" %}
{% set row_class = row_class ~ " w-auto -mx-4 sm:-mx-12 md:-mx-16 lg:-mx-20" %} {% set row_class = row_class ~ " w-auto -mx-4 sm:-mx-12 md:-mx-16 lg:-mx-20" %}
{% endif %} {% endif %}
{% if bgStyle %}
{% if "full" in bgStyle %}
{% set styles = styles ~ "height: -webkit-fill-available; height: 100vh;" %}
{% elif "hero" in bgStyle %}
{% set div_class = div_class ~ " -mt-24 pt-12 " %}
{% endif %}
{% endif %}
{% set url = body | split(pat="href=") | slice(start=1) | first | split(pat=">") | first | trim_start_matches(pat='"') %} {% set url = body | split(pat="href=") | slice(start=1) | first | split(pat=">") | first | trim_start_matches(pat='"') %}