From c00bdf2808826ef2136a41459341753d737d3a92 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Thu, 18 Apr 2024 16:52:42 +0800 Subject: [PATCH] Set up hero block template --- src/_includes/global/hero.njk | 48 +++++++++++++++++++++++++++++++++++ src/_includes/main/hero.njk | 46 +++++---------------------------- 2 files changed, 54 insertions(+), 40 deletions(-) create mode 100644 src/_includes/global/hero.njk diff --git a/src/_includes/global/hero.njk b/src/_includes/global/hero.njk new file mode 100644 index 00000000..94d078b7 --- /dev/null +++ b/src/_includes/global/hero.njk @@ -0,0 +1,48 @@ +
+ +
+ {% block heroImg %} + {{ heroImg }} + {% endblock %} +
+
+ + + + \ No newline at end of file diff --git a/src/_includes/main/hero.njk b/src/_includes/main/hero.njk index 118076e8..344bac97 100644 --- a/src/_includes/main/hero.njk +++ b/src/_includes/main/hero.njk @@ -1,44 +1,10 @@ -
- -
- Banner of Leilukin's Hub -
-
+{% extends "global/hero.njk" %} - - - +{% endblock %} \ No newline at end of file