all repos — homestead @ 8b36ca4877a67d344300b52f38942078384161fa

Code for my website

group CSS reading with Files FS

Alan Pearce
commit

8b36ca4877a67d344300b52f38942078384161fa

parent

026f939cf91bd2dc0877e203383eacc2405f8db4

1 file changed, 0 insertions(+), 13 deletions(-)

changed files
M templates/layout.templtemplates/layout.templ
@@ -4,21 +4,8 @@ import (
"context" "go.alanpearce.eu/website/internal/config" "io" - "io/fs" "net/url" ) - -var ( - CSS string -) - -func init() { - bytes, err := fs.ReadFile(Files, "style.css") - if err != nil { - panic(err) - } - CSS = string(bytes) -} type PageSettings struct { Title string