From ef86a0d3f670e30236d48795a2592fe5f9206c19 Mon Sep 17 00:00:00 2001 From: ehab-hassan Date: Mon, 28 Mar 2022 10:44:07 +0200 Subject: [PATCH] add background color --- content/mission/_index.md | 4 +++- templates/shortcodes/row.html | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/content/mission/_index.md b/content/mission/_index.md index 2ad7c8c..b363927 100644 --- a/content/mission/_index.md +++ b/content/mission/_index.md @@ -95,7 +95,9 @@ And we’re aiming for new heights. The People’s Internet will turn into a DAO {% end %} -{% row(style="center narrow") %} + +{% row(bgColor="#70dfc9" style="center narrow") %} + ## **START THE INTERNET
REVOLUTION** diff --git a/templates/shortcodes/row.html b/templates/shortcodes/row.html index 5e2ab34..b2a7f5c 100644 --- a/templates/shortcodes/row.html +++ b/templates/shortcodes/row.html @@ -41,7 +41,6 @@ Parameters: {% set row_class = row_class ~ " lg:m-20" %} {% endif %} - {% endif %} @@ -50,6 +49,11 @@ Parameters: {% set styles = "background: url('" ~ bgPath ~ "'); background-size: cover" %} {% set row_class = row_class ~ "w-screen -mx-8 sm:-mx-12 md:-mx-16 lg:-mx-20 lg:py-40 p-8 sm:p-12 md:p-16 lg:p-20" %} {% endif %} +{% if bgColor %} + {% set styles = "background-color: " ~ bgColor ~ "; background-size: cover" %} + {% set row_class = row_class ~ "w-screen -mx-8 sm:-mx-12 md:-mx-16 lg:-mx-20 lg:py-40 p-8 sm:p-12 md:p-16 lg:p-20" %} +{% endif %} +