From 3af43b33ddbd90994864df95f08ee92cf6ff5b1d Mon Sep 17 00:00:00 2001 From: Simon Martens Date: Wed, 4 Dec 2024 17:55:39 +0100 Subject: [PATCH] BUGFIX: prevent reloading loop with unwatching css, js files --- .air.toml | 2 +- views/assets/style.css | 4 ---- views/layouts/default/root.gohtml | 8 +++++--- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.air.toml b/.air.toml index 9e00d35..0d717db 100644 --- a/.air.toml +++ b/.air.toml @@ -23,7 +23,7 @@ exclude_regex = ["_test.go"] exclude_unchanged = false follow_symlink = false include_dir = [] -include_ext = ["go", "tpl", "tmpl", "html", "gohtml", "css", "js"] +include_ext = ["go", "tpl", "tmpl", "html", "gohtml"] include_file = [] kill_delay = "0s" log = "build-errors.log" diff --git a/views/assets/style.css b/views/assets/style.css index 61387d3..9a36c34 100644 --- a/views/assets/style.css +++ b/views/assets/style.css @@ -624,7 +624,3 @@ a[aria-current="page"] { padding-top: 0.75rem; padding-bottom: 0.75rem; } -.text-xl { - font-size: 1.25rem; - line-height: 1.75rem; -} diff --git a/views/layouts/default/root.gohtml b/views/layouts/default/root.gohtml index d293774..55f7de6 100644 --- a/views/layouts/default/root.gohtml +++ b/views/layouts/default/root.gohtml @@ -31,9 +31,11 @@ {{ end }} - {{ block "body" . }} - - {{ end }} +
+ {{ block "body" . }} + + {{ end }} +