From 03436316738a873e8866d958232e322932bb6519 Mon Sep 17 00:00:00 2001 From: Chaoming Li Date: Mon, 18 Nov 2024 15:26:49 +1100 Subject: [PATCH] feat: convert CTA section into reusable shortcode --- layouts/index.html | 18 ------------------ layouts/shortcodes/cta.html | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 18 deletions(-) create mode 100644 layouts/shortcodes/cta.html diff --git a/layouts/index.html b/layouts/index.html index f495df1..89327cd 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -3,22 +3,4 @@ {{ if .Content }} {{ .Content }} {{ end }} - - -
-
-
-

Ready to Transform Your User Experience?

-

Join thousands of companies already using our platform to drive growth.

- -
-
-
{{ end }} diff --git a/layouts/shortcodes/cta.html b/layouts/shortcodes/cta.html new file mode 100644 index 0000000..34ce8ee --- /dev/null +++ b/layouts/shortcodes/cta.html @@ -0,0 +1,17 @@ +{{/* CTA Shortcode */}} +
+
+
+

{{ .Get "title" | default "Ready to Transform Your User Experience?" }}

+

{{ .Get "description" | default "Join thousands of companies already using our platform to drive growth." }}

+ +
+
+