diff --git a/.gitignore b/.gitignore index 8dd6d56..1c3fa73 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ public/ +resources/ .hugo_build.lock diff --git a/assets/sass/main.scss b/assets/sass/main.scss new file mode 100644 index 0000000..d36af64 --- /dev/null +++ b/assets/sass/main.scss @@ -0,0 +1,5 @@ +body { + font-family: system-ui, sans-serif; + margin: 0; + background-color: red; +} diff --git a/layouts/baseof.html b/layouts/baseof.html new file mode 100644 index 0000000..0cdaee0 --- /dev/null +++ b/layouts/baseof.html @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + {{ block "title" . }}{{ .Site.Title }}{{ end }} + + {{ with resources.Get "sass/main.scss" | toCSS }} + + {{ end }} + + {{ block "head" . }}{{ end }} + + +
+ {{ block "main" . }}{{ end }} +
+ + diff --git a/layouts/list.html b/layouts/list.html new file mode 100644 index 0000000..6d0c0cf --- /dev/null +++ b/layouts/list.html @@ -0,0 +1,12 @@ +{{ define "main" }} + +{{ .Content }} + +
+ +{{ range .Pages.ByDate }} +

{{ .Date.Format "2006-01-02" }}

+ {{ .Content }} +{{ end }} + +{{ end }} \ No newline at end of file diff --git a/layouts/single.html b/layouts/single.html new file mode 100644 index 0000000..83fdfa9 --- /dev/null +++ b/layouts/single.html @@ -0,0 +1,8 @@ +{{ define "title" }}SWP - {{ .Page.Title }}{{ end }} + +{{ define "main" }} +

{{ .Date.Format "2006-01-02" }}

+ +{{ .Content }} + +{{ end }} \ No newline at end of file