all repos — homestead @ 7c9ce0ed7f5058db65a13c036857cd7c32a5464b

Code for my website

move templ templates into separate package

Alan Pearce
commit

7c9ce0ed7f5058db65a13c036857cd7c32a5464b

parent

415059cadd06ea235091cc4e78f585d52fea9f04

1 file changed, 3 insertions(+), 3 deletions(-)

changed files
M internal/builder/homepage.templtemplates/homepage.templ
@@ -1,12 +1,12 @@
-package builder +package templates import ( "website/internal/config" "website/internal/content" ) -templ homepage(config config.Config, posts []content.Post, content string) { - @page(config, PageSettings{ +templ Homepage(config config.Config, posts []content.Post, content string) { + @Page(config, PageSettings{ Title: config.Title, TitleAttrs: templ.Attributes{ "class": "p-name u-url",