From 5b8e8017ca7254ed877e5b03949239534d154af4 Mon Sep 17 00:00:00 2001 From: Lucas Schumacher Date: Thu, 1 Aug 2024 20:50:33 -0400 Subject: [PATCH] Add nav bar --- templates/contact.gohtml | 9 ++++++--- templates/faq.gohtml | 19 +++++++++++-------- templates/home.gohtml | 21 ++++++++++++--------- templates/tailwind.gohtml | 18 ++++++++++++++++++ 4 files changed, 47 insertions(+), 20 deletions(-) diff --git a/templates/contact.gohtml b/templates/contact.gohtml index b1a4ba5..d07c0bb 100644 --- a/templates/contact.gohtml +++ b/templates/contact.gohtml @@ -1,9 +1,12 @@ {{template "head" .}} - -

Contact Page

-

To get in touch, email me at example@example.com

+ + {{template "header".}} +
+

Contact Page

+

To get in touch, email me at example@example.com

+
{{template "footer" .}} diff --git a/templates/faq.gohtml b/templates/faq.gohtml index 4492c8c..b75e8ad 100644 --- a/templates/faq.gohtml +++ b/templates/faq.gohtml @@ -1,14 +1,17 @@ {{template "head" .}} - -

FAQ

-
-
- {{range .}} - {{template "qa" .}} - {{end}} -
+ + {{template "header".}} +
+

FAQ

+
+
+ {{range .}} + {{template "qa" .}} + {{end}} +
+
{{template "footer" .}} diff --git a/templates/home.gohtml b/templates/home.gohtml index 2a13949..710eaa6 100644 --- a/templates/home.gohtml +++ b/templates/home.gohtml @@ -1,15 +1,18 @@ {{template "head" .}} - -

- Welcome to my awesome site! -

-
- {{template "lorem-ipsum"}} - {{template "lorem-ipsum"}} - {{template "lorem-ipsum"}} -
+ + {{template "header".}} +
+

+ Welcome to my awesome site! +

+
+ {{template "lorem-ipsum"}} + {{template "lorem-ipsum"}} + {{template "lorem-ipsum"}} +
+
{{template "footer" .}} diff --git a/templates/tailwind.gohtml b/templates/tailwind.gohtml index 89205c1..c6607e7 100644 --- a/templates/tailwind.gohtml +++ b/templates/tailwind.gohtml @@ -5,6 +5,24 @@ {{end}} + +{{define "header"}} +
+ +
+{{end}} + {{define "footer"}}