From 6cdfea74611fc5166235ce59e8b81f41d20ac0e6 Mon Sep 17 00:00:00 2001 From: ehab-hassan Date: Thu, 30 Nov 2023 09:00:46 +0200 Subject: [PATCH] added Hero --- content/home/index.md | 27 ++++++++++++++++++++++++++- templates/shortcodes/hero.html | 23 +++++++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 templates/shortcodes/hero.html diff --git a/content/home/index.md b/content/home/index.md index d2c1113..c71fa18 100644 --- a/content/home/index.md +++ b/content/home/index.md @@ -7,9 +7,34 @@ draft: false weight: 1 --- +
+ + + + + +{% hero( + + hero_subtitle = "Very proud to introduce" + hero_title = "Revolutionary way to build the web" + hero_text = "This is a section of some simple filler text, also known as placeholder text. It shares some characteristics of a real written text but is random." + hero_img = "https://images.unsplash.com/photo-1618004912476-29818d81ae2e?auto=format&q=75&fit=crop&w=1000" + hero_link1 = "#" + hero_link1_name = "Start Now" + hero_link2 = "#" + hero_link2_name = "Take tour" + +) %} + +# test + +{% end %} + + + -
+ {% cta( diff --git a/templates/shortcodes/hero.html b/templates/shortcodes/hero.html new file mode 100644 index 0000000..2bc5ee0 --- /dev/null +++ b/templates/shortcodes/hero.html @@ -0,0 +1,23 @@ +
+ +
+

{{ hero_subtitle }}

+ +

{{ hero_title }}

+ +

{{ hero_text }}

+ + +
+ + + +
+ Photo by Fakurian Design +
+ +
\ No newline at end of file