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