diff --git a/src/_includes/partials/hero-section.html b/src/_includes/partials/hero-section.html index be5baa3..68d462a 100644 --- a/src/_includes/partials/hero-section.html +++ b/src/_includes/partials/hero-section.html @@ -1,16 +1,28 @@ -
-
-
-

- {% if heroTitle %} - {{ heroTitle }} - {% else %} - {{ title }} - {% endif %} -

- {% if description %} -

{{ description }}

+{% if heroTitle or description %} + {% if heroBackground or heroColor %} + + {% endif %} +
+
+
+ {% if heroTitle %} +

+ {{ heroTitle }} +

+ {% endif %} + {% if description %} +

{{ description }}

+ {% endif %} +
-
-
\ No newline at end of file + +{% endif %} \ No newline at end of file diff --git a/src/index.md b/src/index.md index a51ca7f..b793629 100644 --- a/src/index.md +++ b/src/index.md @@ -1,11 +1,10 @@ --- title: 'Home' -description: 'A website made with Eleventy' -heroTitle: 'Welcome' +heroTitle: 'Welcome to my website' +heroBackground: var(--surface1) +heroColor: var(--text1) metaDesc: 'A made up agency site that you build if you take Learn Eleventy From Scratch, by Piccalilli' layout: 'home' --- -## Posts - {% include "partials/post-list.html" %} \ No newline at end of file