fix css not loading
This commit is contained in:
parent
a5c28c05aa
commit
034a3ab377
2 changed files with 15 additions and 15 deletions
|
@ -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 }}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue