From b6f26eb0658816eb55a2f1cd2d678e3b6891c320 Mon Sep 17 00:00:00 2001 From: Chaoming Li Date: Thu, 21 Nov 2024 16:37:10 +1100 Subject: [PATCH] added features layout and submenu --- layouts/_default/feature.html | 76 +++++++++++++++++++++++++++++++++++ layouts/partials/header.html | 30 ++++++++++++++ 2 files changed, 106 insertions(+) create mode 100644 layouts/_default/feature.html diff --git a/layouts/_default/feature.html b/layouts/_default/feature.html new file mode 100644 index 0000000..d85b8c6 --- /dev/null +++ b/layouts/_default/feature.html @@ -0,0 +1,76 @@ +{{ define "main" }} +
+ +
+ +
+
+
+
+ {{ with .Params.badge }} +
+ + {{ . }} + +
+ {{ end }} +

{{ .Title }}

+

{{ .Description }}

+
+
+
+
+ + +
+ + {{ if .Params.features }} +
+
+ {{ range .Params.features }} +
+
+ {{ .title }} +
+
+

{{ .description }}

+
+
+ {{ end }} +
+
+ {{ end }} + + +
+ {{ .Content }} +
+ + + {{ if .Params.demo }} +
+
+

See it in action

+

{{ .Params.demo.description }}

+
+
+
+ Demo +
+
+
+ {{ end }} +
+ + + {{ partial "components/cta.html" . }} +
+{{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index f910cec..097ccc1 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,4 +1,5 @@ {{ $headerConfig := .Site.Params.header }} +{{ $dropdownConfig := $headerConfig.menu.dropdown }}
@@ -19,7 +20,25 @@ @@ -55,7 +74,18 @@