From 8e1d6d6dca25724ef12db48917c9c5cce4509db0 Mon Sep 17 00:00:00 2001 From: brooke Date: Fri, 16 Aug 2024 14:05:53 -0400 Subject: [PATCH] update --- content/thankyou/index.md | 7 ++++++ themes/gallo/layouts/_default/single.html | 10 +++++--- themes/gallo/layouts/partials/thankyou.html | 5 ++++ themes/gallo/static/admin/config.yml | 28 ++++++++++++++++++++- 4 files changed, 45 insertions(+), 5 deletions(-) create mode 100644 content/thankyou/index.md create mode 100644 themes/gallo/layouts/partials/thankyou.html diff --git a/content/thankyou/index.md b/content/thankyou/index.md new file mode 100644 index 0000000..909263e --- /dev/null +++ b/content/thankyou/index.md @@ -0,0 +1,7 @@ +--- +date: '2024-08-16' +title: Thank you for your inquiry! +thankyou: true +--- + +You should receive an email with more information, we hope to be in contact soon! \ No newline at end of file diff --git a/themes/gallo/layouts/_default/single.html b/themes/gallo/layouts/_default/single.html index 17b4830..cbe487e 100644 --- a/themes/gallo/layouts/_default/single.html +++ b/themes/gallo/layouts/_default/single.html @@ -1,6 +1,9 @@ {{ define "main" }} -
+
+ {{ if .Params.thankyou }} {{ partial "thankyou.html" . }} {{ else }}

{{ .Title }}

{{ .Params.subTitle }}

@@ -10,9 +13,8 @@ "rental_catalog.html" . }} {{ end }} {{ if .Params.art }} {{ partial "artist_catalog.html" . }} {{ end }}
- - {{ partial "questions.html" . }} {{ partial "contact_form.html" . }} {{ - partial "gallery.html" . }} + {{ end }} {{ partial "questions.html" . }} {{ partial "contact_form.html" . + }} {{ partial "gallery.html" . }}
{{ end }} diff --git a/themes/gallo/layouts/partials/thankyou.html b/themes/gallo/layouts/partials/thankyou.html new file mode 100644 index 0000000..02cc37a --- /dev/null +++ b/themes/gallo/layouts/partials/thankyou.html @@ -0,0 +1,5 @@ +
+

{{ .Title }}

+

{{ .Params.subTitle }}

+
{{ .Content }}
+
diff --git a/themes/gallo/static/admin/config.yml b/themes/gallo/static/admin/config.yml index 2179856..abaeb05 100644 --- a/themes/gallo/static/admin/config.yml +++ b/themes/gallo/static/admin/config.yml @@ -12,7 +12,7 @@ public_folder: "/media" media_folder: "themes/gallo/static/media" site_url: https://www.gallowelding.com -logo_url: https://www.gallowelding.com/img/gallo_welding.svg +logo_url: https://www.gallowelding.com/media/gallo_welding.svg locale: en show_preview_links: false search: false @@ -112,6 +112,32 @@ collections: fields: - { label: Question, name: question, widget: string } - { label: Answer, name: answer, widget: markdown } + - name: contact + label: Contact Page + file: content/contact/index.md + fields: + - label: Title + name: title + widget: string + - label: Date Last Edited + name: date + widget: datetime + - label: Contact Form HTML + name: frame + widget: code + - name: thankyou + label: Contact "Thank You" Page + file: content/thankyou/index.md + fields: + - label: Title + name: title + widget: string + - label: Date Last Edited + name: date + widget: datetime + - label: Body + name: body + widget: markdown - name: catalog label: Catalog file: content/catalog/index.md