diff --git a/archetypes/default.md b/archetypes/default.md index 8aba8b1..068c706 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -7,4 +7,5 @@ categories: tags: draft: true +type: "post" --- diff --git a/archetypes/projects.md b/archetypes/projects.md index becee1e..d306634 100644 --- a/archetypes/projects.md +++ b/archetypes/projects.md @@ -7,6 +7,7 @@ categories: tags: draft: true +type: "project" status: link: --- diff --git a/assets/scss/partials/footer.scss b/assets/footer.scss similarity index 100% rename from assets/scss/partials/footer.scss rename to assets/footer.scss diff --git a/assets/scss/home.scss b/assets/home.scss similarity index 72% rename from assets/scss/home.scss rename to assets/home.scss index c83048b..1693b5f 100644 --- a/assets/scss/home.scss +++ b/assets/home.scss @@ -1,16 +1,3 @@ -// 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/scss/blog.scss b/assets/scss/blog.scss deleted file mode 100644 index 8fbfae5..0000000 --- a/assets/scss/blog.scss +++ /dev/null @@ -1,8 +0,0 @@ -// 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/scss/partials/helpers/icons.scss b/assets/shortcodes/_icons.scss similarity index 100% rename from assets/scss/partials/helpers/icons.scss rename to assets/shortcodes/_icons.scss diff --git a/assets/shortcodes/_index.scss b/assets/shortcodes/_index.scss new file mode 100644 index 0000000..00b695f --- /dev/null +++ b/assets/shortcodes/_index.scss @@ -0,0 +1,2 @@ +@import "verticalposts"; +@import "icons"; \ No newline at end of file diff --git a/assets/scss/shortcodes/verticalposts.scss b/assets/shortcodes/_verticalposts.scss similarity index 100% rename from assets/scss/shortcodes/verticalposts.scss rename to assets/shortcodes/_verticalposts.scss diff --git a/assets/scss/partials/sidebar.scss b/assets/sidebar.scss similarity index 100% rename from assets/scss/partials/sidebar.scss rename to assets/sidebar.scss diff --git a/assets/scss/style.scss b/assets/style.scss similarity index 93% rename from assets/scss/style.scss rename to assets/style.scss index 6c8b897..928e9bc 100644 --- a/assets/scss/style.scss +++ b/assets/style.scss @@ -1,3 +1,14 @@ +// general +@import "variables"; +@import "shortcodes"; + +// site parts +@import "sidebar"; +@import "footer"; + +// pages +@import "home"; + * { box-sizing: border-box; scrollbar-color: var(--vriish-rose) var(--background); @@ -59,7 +70,8 @@ html { p { hyphens: auto; img { - border-radius: 1rem; + border: 2px solid var(--border); + border-radius: 4px; display: block; margin: 0 auto; } diff --git a/assets/scss/variables.scss b/assets/variables.scss similarity index 100% rename from assets/scss/variables.scss rename to assets/variables.scss diff --git a/content/blog/firefox-dark-mode/index.de.md b/content/blog/firefox-dark-mode/index.de.md index c95d9b2..4d0e256 100644 --- a/content/blog/firefox-dark-mode/index.de.md +++ b/content/blog/firefox-dark-mode/index.de.md @@ -6,6 +6,7 @@ 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 5aad72c..4bc5e44 100644 --- a/content/blog/firefox-dark-mode/index.en.md +++ b/content/blog/firefox-dark-mode/index.en.md @@ -6,6 +6,7 @@ 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 a81b730..501fb44 100644 --- a/content/blog/graphic-for-natenoms-blog/index.en.md +++ b/content/blog/graphic-for-natenoms-blog/index.en.md @@ -10,6 +10,7 @@ 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 79b8f16..a4723a8 100644 --- a/content/blog/indieauth-using-gpg/index.en.md +++ b/content/blog/indieauth-using-gpg/index.en.md @@ -6,6 +6,7 @@ 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 5fcda18..9e761f0 100644 --- a/content/blog/pure-css-icons-gitea-theme/index.en.md +++ b/content/blog/pure-css-icons-gitea-theme/index.en.md @@ -9,6 +9,7 @@ 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 9cd4315..22d78bf 100644 --- a/content/blog/theme-for-gitea/index.en.md +++ b/content/blog/theme-for-gitea/index.en.md @@ -10,6 +10,7 @@ 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 e09c1cd..f5fc476 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,6 +8,7 @@ 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 9c51aab..6091686 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -2,7 +2,8 @@ {{ with .Title }} {{ . }} – {{ end }}{{ .Site.Title }} - {{ block "stylesheet" . }}{{ end }} + {{- $style := resources.Get "/style.scss" | resources.ToCSS (dict "outputStyle" "compressed") }} + diff --git a/layouts/_default/list.html b/layouts/_default/list.html index d68cfa3..b1c7f66 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,5 +1,5 @@ {{- define "stylesheet" -}} - {{- $scss := resources.Get "/scss/style.scss" -}} + {{- $scss := resources.Get "/_default/list.scss" -}} {{- $style := $scss | resources.ToCSS -}} {{- end -}} diff --git a/layouts/blog/list.html b/layouts/blog/list.html deleted file mode 100644 index a67253c..0000000 --- a/layouts/blog/list.html +++ /dev/null @@ -1,17 +0,0 @@ -{{- 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 deleted file mode 100644 index 4c08bf6..0000000 --- a/layouts/blog/single.html +++ /dev/null @@ -1,32 +0,0 @@ -{{- 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 12173fd..9f931a6 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,9 +1,3 @@ -{{- define "stylesheet" -}} - {{- $scss := resources.Get "/scss/home.scss" -}} - {{- $style := $scss | resources.ToCSS -}} - -{{- end -}} - {{- define "header" }}