fix css not loading

This commit is contained in:
brooke 2024-06-16 03:12:45 -04:00
parent a5c28c05aa
commit 034a3ab377
2 changed files with 15 additions and 15 deletions

View file

@ -1,9 +1,11 @@
{{- with resources.Get "css/main.css" }} {{- with resources.Get "css/main.css" }} {{- if eq hugo.Environment
{{- if eq hugo.Environment "development" }} "development" }}
<link rel="stylesheet" href="{{ .RelPermalink }}"> <link rel="stylesheet" href="{{ .RelPermalink }}" />
{{- else }} {{- else }} {{- with . | minify | fingerprint }}
{{- with . | minify | fingerprint }} <link
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"> rel="stylesheet"
{{- end }} href="{{ .RelPermalink }}"
{{- end }} integrity="{{ .Data.Integrity }}"
{{- end }} crossorigin="anonymous"
/>
{{- end }} {{- end }} {{- end }}

View file

@ -1,9 +1,3 @@
* {
box-sizing: border-box;
font-family: Consolas, Monaco, "Lucida Console", monospace;
font-size: 0.9rem;
color: #ccc;
}
html { html {
width: 100%; width: 100%;
@ -17,6 +11,10 @@ html {
} }
body { body {
box-sizing: border-box !important;
font-family: Consolas, Monaco, "Lucida Console", monospace !important;
font-size: 0.9rem !important;
color: #ccc !important;
margin: 0; margin: 0;
padding-top: 3.5rem; padding-top: 3.5rem;
padding-bottom: 3.5rem; padding-bottom: 3.5rem;