about summary refs log tree commit diff stats
path: root/templates/page.templ
diff options
context:
space:
mode:
authorAlan Pearce2024-06-24 23:28:17 +0200
committerAlan Pearce2024-06-24 23:28:17 +0200
commit6b5a99d1de4420a9334ed9b2119b56b138518c1c (patch)
tree344cec4b3fb144dbc87176246392aefeef43e308 /templates/page.templ
parent49b4d4d4e2bfcb5152b574100755bfbd39ede602 (diff)
downloadwebsite-6b5a99d1de4420a9334ed9b2119b56b138518c1c.tar.lz
website-6b5a99d1de4420a9334ed9b2119b56b138518c1c.tar.zst
website-6b5a99d1de4420a9334ed9b2119b56b138518c1c.zip
use embedded filesystem for server template access
Diffstat (limited to 'templates/page.templ')
-rw-r--r--templates/page.templ4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/page.templ b/templates/page.templ
index 08c17a0..1667fb0 100644
--- a/templates/page.templ
+++ b/templates/page.templ
@@ -1,7 +1,7 @@
 package templates
 
 import (
-	"os"
+	"io/fs"
 	"net/url"
 
 	"website/internal/config"
@@ -12,7 +12,7 @@ var (
 )
 
 func init() {
-	bytes, err := os.ReadFile("templates/style.css")
+	bytes, err := fs.ReadFile(Files, "style.css")
 	if err != nil {
 		panic(err)
 	}