From 034a3ab377ef21a9482c1fc7cfce99e5e9503fd8 Mon Sep 17 00:00:00 2001 From: brooke <brooke@myco.systems> Date: Sun, 16 Jun 2024 03:12:45 -0400 Subject: [PATCH] fix css not loading --- layouts/partials/head/css.html | 20 +++++++++++--------- static/css/main.css | 10 ++++------ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/layouts/partials/head/css.html b/layouts/partials/head/css.html index 91b928d..36cbbb4 100644 --- a/layouts/partials/head/css.html +++ b/layouts/partials/head/css.html @@ -1,9 +1,11 @@ -{{- with resources.Get "css/main.css" }} - {{- if eq hugo.Environment "development" }} - <link rel="stylesheet" href="{{ .RelPermalink }}"> - {{- else }} - {{- with . | minify | fingerprint }} - <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"> - {{- end }} - {{- end }} -{{- end }} +{{- with resources.Get "css/main.css" }} {{- if eq hugo.Environment +"development" }} +<link rel="stylesheet" href="{{ .RelPermalink }}" /> +{{- else }} {{- with . | minify | fingerprint }} +<link + rel="stylesheet" + href="{{ .RelPermalink }}" + integrity="{{ .Data.Integrity }}" + crossorigin="anonymous" +/> +{{- end }} {{- end }} {{- end }} diff --git a/static/css/main.css b/static/css/main.css index 58935d4..ce772c3 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -1,9 +1,3 @@ -* { - box-sizing: border-box; - font-family: Consolas, Monaco, "Lucida Console", monospace; - font-size: 0.9rem; - color: #ccc; -} html { width: 100%; @@ -17,6 +11,10 @@ html { } body { + box-sizing: border-box !important; + font-family: Consolas, Monaco, "Lucida Console", monospace !important; + font-size: 0.9rem !important; + color: #ccc !important; margin: 0; padding-top: 3.5rem; padding-bottom: 3.5rem;