diff --git a/archetypes/default.md b/archetypes/default.md index 068c706..8aba8b1 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -7,5 +7,4 @@ categories: tags: draft: true -type: "post" --- diff --git a/archetypes/projects.md b/archetypes/projects.md index d306634..becee1e 100644 --- a/archetypes/projects.md +++ b/archetypes/projects.md @@ -7,7 +7,6 @@ categories: tags: draft: true -type: "project" status: link: --- diff --git a/assets/scss/blog.scss b/assets/scss/blog.scss new file mode 100644 index 0000000..8fbfae5 --- /dev/null +++ b/assets/scss/blog.scss @@ -0,0 +1,8 @@ +// general +@import "variables"; +@import "style"; + +// partials +@import "partials/sidebar"; +@import "partials/footer"; +@import "partials/helpers/icons.scss"; \ No newline at end of file diff --git a/assets/home.scss b/assets/scss/home.scss similarity index 72% rename from assets/home.scss rename to assets/scss/home.scss index 1693b5f..c83048b 100644 --- a/assets/home.scss +++ b/assets/scss/home.scss @@ -1,3 +1,16 @@ +// general +@import "variables"; +@import "style"; + +// shortcodes +@import "shortcodes/verticalposts"; + +// partials +@import "partials/sidebar"; +@import "partials/footer"; +@import "partials/helpers/icons"; + + #introduction { background: var(--vriish-gradient); } diff --git a/assets/partials/footer.scss b/assets/scss/partials/footer.scss similarity index 100% rename from assets/partials/footer.scss rename to assets/scss/partials/footer.scss diff --git a/assets/shortcodes/_icons.scss b/assets/scss/partials/helpers/icons.scss similarity index 100% rename from assets/shortcodes/_icons.scss rename to assets/scss/partials/helpers/icons.scss diff --git a/assets/partials/sidebar.scss b/assets/scss/partials/sidebar.scss similarity index 100% rename from assets/partials/sidebar.scss rename to assets/scss/partials/sidebar.scss diff --git a/assets/shortcodes/_verticalposts.scss b/assets/scss/shortcodes/verticalposts.scss similarity index 100% rename from assets/shortcodes/_verticalposts.scss rename to assets/scss/shortcodes/verticalposts.scss diff --git a/assets/style.scss b/assets/scss/style.scss similarity index 94% rename from assets/style.scss rename to assets/scss/style.scss index b2c6889..6c8b897 100644 --- a/assets/style.scss +++ b/assets/scss/style.scss @@ -1,14 +1,3 @@ -// general -@import "variables"; -@import "shortcodes"; - -// partials -@import "partials/sidebar"; -@import "partials/footer"; - -// pages -@import "home"; - * { box-sizing: border-box; scrollbar-color: var(--vriish-rose) var(--background); diff --git a/assets/variables.scss b/assets/scss/variables.scss similarity index 100% rename from assets/variables.scss rename to assets/scss/variables.scss diff --git a/assets/shortcodes/_index.scss b/assets/shortcodes/_index.scss deleted file mode 100644 index 00b695f..0000000 --- a/assets/shortcodes/_index.scss +++ /dev/null @@ -1,2 +0,0 @@ -@import "verticalposts"; -@import "icons"; \ No newline at end of file diff --git a/content/blog/firefox-dark-mode/index.de.md b/content/blog/firefox-dark-mode/index.de.md index 4d0e256..c95d9b2 100644 --- a/content/blog/firefox-dark-mode/index.de.md +++ b/content/blog/firefox-dark-mode/index.de.md @@ -6,7 +6,6 @@ categories: tags: draft: false -type: "post" description: "" slug: "dunkler-modus-von-firefox" --- diff --git a/content/blog/firefox-dark-mode/index.en.md b/content/blog/firefox-dark-mode/index.en.md index 4bc5e44..5aad72c 100644 --- a/content/blog/firefox-dark-mode/index.en.md +++ b/content/blog/firefox-dark-mode/index.en.md @@ -6,7 +6,6 @@ categories: tags: draft: false -type: "post" description: "" slug: "firefox-dark-mode" --- diff --git a/content/blog/graphic-for-natenoms-blog/index.en.md b/content/blog/graphic-for-natenoms-blog/index.en.md index 501fb44..a81b730 100644 --- a/content/blog/graphic-for-natenoms-blog/index.en.md +++ b/content/blog/graphic-for-natenoms-blog/index.en.md @@ -10,7 +10,6 @@ tags: - natenom draft: false -type: "post" description: "I did make a new iteration of this graphic for Natenoms Blog." --- diff --git a/content/blog/indieauth-using-gpg/index.en.md b/content/blog/indieauth-using-gpg/index.en.md index a4723a8..79b8f16 100644 --- a/content/blog/indieauth-using-gpg/index.en.md +++ b/content/blog/indieauth-using-gpg/index.en.md @@ -6,7 +6,6 @@ categories: tags: draft: false -type: "post" description: "" --- diff --git a/content/blog/pure-css-icons-gitea-theme/index.en.md b/content/blog/pure-css-icons-gitea-theme/index.en.md index 9e761f0..5fcda18 100644 --- a/content/blog/pure-css-icons-gitea-theme/index.en.md +++ b/content/blog/pure-css-icons-gitea-theme/index.en.md @@ -9,7 +9,6 @@ tags: - code draft: false -type: "post" description: "I'm working on my gitea theme and just added a $nojavascript alternative for two icons with pure css. :)" --- diff --git a/content/blog/theme-for-gitea/index.en.md b/content/blog/theme-for-gitea/index.en.md index 22d78bf..9cd4315 100644 --- a/content/blog/theme-for-gitea/index.en.md +++ b/content/blog/theme-for-gitea/index.en.md @@ -10,7 +10,6 @@ tags: - webdesign draft: false -type: "post" description: "My – also new – gitea theme appears to be usable, as long as you're not logged in." --- diff --git a/content/blog/vrifox.cc-rewritten-using-a-static-site-generator/index.en.md b/content/blog/vrifox.cc-rewritten-using-a-static-site-generator/index.en.md index f5fc476..e09c1cd 100644 --- a/content/blog/vrifox.cc-rewritten-using-a-static-site-generator/index.en.md +++ b/content/blog/vrifox.cc-rewritten-using-a-static-site-generator/index.en.md @@ -8,7 +8,6 @@ tags: - opensource draft: false -type: "post" description: "In the past I always preferred to make every bit myself (and disliked generators)." --- diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 6091686..9c51aab 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -2,8 +2,7 @@ {{ with .Title }} {{ . }} – {{ end }}{{ .Site.Title }} - {{- $style := resources.Get "/style.scss" | resources.ToCSS (dict "outputStyle" "compressed") }} - + {{ block "stylesheet" . }}{{ end }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index b1c7f66..d68cfa3 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,5 +1,5 @@ {{- define "stylesheet" -}} - {{- $scss := resources.Get "/_default/list.scss" -}} + {{- $scss := resources.Get "/scss/style.scss" -}} {{- $style := $scss | resources.ToCSS -}} {{- end -}} diff --git a/layouts/blog/list.html b/layouts/blog/list.html new file mode 100644 index 0000000..a67253c --- /dev/null +++ b/layouts/blog/list.html @@ -0,0 +1,17 @@ +{{- define "stylesheet" -}} + {{- $scss := resources.Get "/scss/blog.scss" -}} + {{- $style := $scss | resources.ToCSS -}} + +{{- end -}} + +{{- define "main" }} + +
+

{{ .Title }}

+

{{ .Content }}

+ {{- range .Pages }} +

{{ .Title }} {{ .Date.Day }}. {{ if eq .Params.lang "de"}} {{ index $.Site.Data.monate (printf "%d" .Date.Month) }} {{ else }} {{ .Date.Month }} {{ end }} {{ .Date.Year }}

+ {{- end }} +
+ +{{- end }} diff --git a/layouts/blog/single.html b/layouts/blog/single.html new file mode 100644 index 0000000..4c08bf6 --- /dev/null +++ b/layouts/blog/single.html @@ -0,0 +1,32 @@ +{{- define "stylesheet" -}} + {{- $scss := resources.Get "/scss/blog.scss" -}} + {{- $style := $scss | resources.ToCSS -}} + +{{- end -}} + +{{- define "main" }} +
+ {{- if eq .Params.type "post" }} +

{{ .Date | time.Format "2. January 2006" }}

+ {{- end }} +

{{ .Title }}

+ {{ .Content -}} + +
+{{- end }} diff --git a/layouts/index.html b/layouts/index.html index 9f931a6..12173fd 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,3 +1,9 @@ +{{- define "stylesheet" -}} + {{- $scss := resources.Get "/scss/home.scss" -}} + {{- $style := $scss | resources.ToCSS -}} + +{{- end -}} + {{- define "header" }}