+@import "components/header.css";
+@import "components/footer.css";
+
body {
color: #222;
font-family: sans-serif;
max-width: 768px;
}
-header {
- border-bottom: 1px solid #222;
- margin-bottom: 1rem;
-}
-
-footer {
- border-top: 1px solid #222;
- margin-top: 1rem;
-}
-
a {
color: #00e;
text-decoration: none;
{{- with resources.Get "css/main.css" }}
- {{- if hugo.IsDevelopment }}
- <link rel="stylesheet" href="{{ .RelPermalink }}">
- {{- else }}
- {{- with . | minify | fingerprint }}
- <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
+ {{- $opts := dict
+ "minify" (cond hugo.IsDevelopment false true)
+ "sourceMap" (cond hugo.IsDevelopment "linked" "none")
+ }}
+ {{- with . | css.Build $opts }}
+ {{- if hugo.IsDevelopment }}
+ <link rel="stylesheet" href="{{ .RelPermalink }}">
+ {{- else }}
+ {{- with . | fingerprint }}
+ <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
+ {{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- with resources.Get "js/main.js" }}
{{- $opts := dict
- "minify" (not hugo.IsDevelopment)
- "sourceMap" (cond hugo.IsDevelopment "external" "")
- "targetPath" "js/main.js"
+ "minify" (cond hugo.IsDevelopment false true)
+ "sourceMap" (cond hugo.IsDevelopment "linked" "none")
}}
{{- with . | js.Build $opts }}
{{- if hugo.IsDevelopment }}