From e8d4570dba938aa7ce706e688d62928b53e6da77 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Sun, 14 Jul 2024 09:06:43 -0700 Subject: [PATCH] Updated the main template to require header meta tags --- internal/views/layout/withTemplate.templ | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/internal/views/layout/withTemplate.templ b/internal/views/layout/withTemplate.templ index 28da166..83ed5bc 100644 --- a/internal/views/layout/withTemplate.templ +++ b/internal/views/layout/withTemplate.templ @@ -1,18 +1,24 @@ package layout -templ WithTemplate() { +import ( + "git.jamestombleson.com/jtom38/newsbot-portal/components/bulma" + bl "git.jamestombleson.com/jtom38/newsbot-portal/components/bulma/layout" + "git.jamestombleson.com/jtom38/newsbot-portal/internal/models" +) + +templ WithTemplate(meta models.HeaderMetaTags) { - @header() + @header(meta) @navBar()
-
+ @bl.Container(bulma.BreakpointDefault) { { children... } @footer() -
+ } }