From 3c9fd723a0ab51588fa23d4a9b3cf8ed74d34743 Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Thu, 6 Feb 2025 17:44:53 +0100 Subject: [PATCH] Work work work --- .gitignore | 3 ++- hugo.toml | 4 +++- themes/default/assets/sass/style.scss | 4 ++++ themes/default/layouts/_default/baseof.html | 6 +++--- themes/default/layouts/partials/footer.html | 0 themes/default/layouts/partials/head.html | 9 +++++++++ themes/default/layouts/partials/header.html | 6 ++++++ 7 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 themes/default/assets/sass/style.scss create mode 100644 themes/default/layouts/partials/footer.html create mode 100644 themes/default/layouts/partials/head.html create mode 100644 themes/default/layouts/partials/header.html diff --git a/.gitignore b/.gitignore index f141bae..fb32dce 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /html/ -.hugo_build.lock \ No newline at end of file +/resources/ +.hugo_build.lock diff --git a/hugo.toml b/hugo.toml index 7aa6b30..6f0f918 100644 --- a/hugo.toml +++ b/hugo.toml @@ -3,4 +3,6 @@ languageCode = 'de-de' title = 'Title' theme = 'default' publishDir = 'html' -cleanDestinationDir = true \ No newline at end of file +cleanDestinationDir = true +markup.goldmark.renderer.unsafe = false +disableHugoGeneratorInject = true \ No newline at end of file diff --git a/themes/default/assets/sass/style.scss b/themes/default/assets/sass/style.scss new file mode 100644 index 0000000..2066fe8 --- /dev/null +++ b/themes/default/assets/sass/style.scss @@ -0,0 +1,4 @@ +* { + margin: 0; + padding: 0; +} \ No newline at end of file diff --git a/themes/default/layouts/_default/baseof.html b/themes/default/layouts/_default/baseof.html index 13cc6e8..0870e13 100644 --- a/themes/default/layouts/_default/baseof.html +++ b/themes/default/layouts/_default/baseof.html @@ -1,17 +1,17 @@ - {{ .Site.Title }} + {{ partial "head.html" . }}
- + {{ partial "header.html" . }}
{{ block "main" . }}{{ end }}
\ No newline at end of file diff --git a/themes/default/layouts/partials/footer.html b/themes/default/layouts/partials/footer.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/default/layouts/partials/head.html b/themes/default/layouts/partials/head.html new file mode 100644 index 0000000..7b600bf --- /dev/null +++ b/themes/default/layouts/partials/head.html @@ -0,0 +1,9 @@ + + +{{ .Site.Title }} +{{- with resources.Get "sass/style.scss" }} +{{- $opts := dict "transpiler" "libsass" "targetPath" "css/media.css" }} +{{- with . | toCSS $opts }} + +{{- end }} +{{- end }} \ No newline at end of file diff --git a/themes/default/layouts/partials/header.html b/themes/default/layouts/partials/header.html new file mode 100644 index 0000000..0e23b2e --- /dev/null +++ b/themes/default/layouts/partials/header.html @@ -0,0 +1,6 @@ + \ No newline at end of file