From d9469b824510a458ed13608af987ce09fa8823be Mon Sep 17 00:00:00 2001 From: David Eisinger Date: Mon, 9 Jan 2023 23:15:41 -0500 Subject: [PATCH] Basic stylesheet --- .gitignore | 1 + themes/v2/assets/css/style.scss | 4 ++++ themes/v2/layouts/partials/head.html | 2 ++ themes/v2/layouts/partials/header.html | 2 +- 4 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 themes/v2/assets/css/style.scss diff --git a/.gitignore b/.gitignore index e7e3002..421e603 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .hugo_build.lock public +resources/_gen diff --git a/themes/v2/assets/css/style.scss b/themes/v2/assets/css/style.scss new file mode 100644 index 0000000..82f0063 --- /dev/null +++ b/themes/v2/assets/css/style.scss @@ -0,0 +1,4 @@ +body { + font-family: monospace; + padding: 50px; +} diff --git a/themes/v2/layouts/partials/head.html b/themes/v2/layouts/partials/head.html index 8a50891..dc7392e 100644 --- a/themes/v2/layouts/partials/head.html +++ b/themes/v2/layouts/partials/head.html @@ -1,4 +1,6 @@ {{ .Site.Title }} + {{ $css := resources.Get "css/style.scss" | toCSS | minify | fingerprint }} + diff --git a/themes/v2/layouts/partials/header.html b/themes/v2/layouts/partials/header.html index 9e44334..012cbad 100644 --- a/themes/v2/layouts/partials/header.html +++ b/themes/v2/layouts/partials/header.html @@ -1,3 +1,3 @@

{{ .Site.Title }}

-
+