From 8e9a80f7cc2f970962c58e0fa1f1c1f416d58398 Mon Sep 17 00:00:00 2001 From: colorchestra Date: Tue, 3 Aug 2021 22:35:45 +0200 Subject: [PATCH 01/10] images now centered --- static/css/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/css/style.css b/static/css/style.css index ce0019f..cfcb30f 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -6,6 +6,6 @@ p > code{color: var(--precolor); background: var(--prebgcolor); padding:2px} pre{color: var(--precolor); background: var(--prebgcolor); padding:24px; overflow-x: auto} article{padding:24px 0} .center {display: block;margin-left: auto;margin-right: auto;width: 100%;} -img {display: block; max-width: 100%; height: auto;} figcaption {color: #888; font: 12px/1.5 monospace; text-align: center;} figure {margin: auto} +img {display: block; max-width: 100%; height: auto; margin: auto} From 278e3ea81a72d2955ff6e692d57e27b30f6aa93f Mon Sep 17 00:00:00 2001 From: colorchestra Date: Tue, 10 Aug 2021 23:35:33 +0200 Subject: [PATCH 02/10] add initial posts archetype --- archetypes/posts.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 archetypes/posts.md diff --git a/archetypes/posts.md b/archetypes/posts.md new file mode 100644 index 0000000..11182ff --- /dev/null +++ b/archetypes/posts.md @@ -0,0 +1,11 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +slug: {{ now.Format "2006-01-02" }}-{{ .Name | urlize }} +type: posts +draft: true +categories: + - default +tags: + - default +--- From 4129f82cd766921c9a5a46e55f46ec1081bde167 Mon Sep 17 00:00:00 2001 From: colorchestra Date: Tue, 10 Aug 2021 23:47:45 +0200 Subject: [PATCH 03/10] fix error in theme.toml --- theme.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme.toml b/theme.toml index 318f26c..e295d2e 100644 --- a/theme.toml +++ b/theme.toml @@ -14,4 +14,4 @@ min_version = "0.20" [original] author = "Vimux" homepage = "https://github.com/Vimux" - repo = "https://github.com/colorchestra/blank" + repo = "https://github.com/Vimux/blank" From 9c5b894c09507df23a167eaddd9a1a351d89cbf4 Mon Sep 17 00:00:00 2001 From: colorchestra Date: Sat, 25 Nov 2023 00:31:07 +0100 Subject: [PATCH 04/10] add code tag?? idk??? --- static/css/style.css | 1 + 1 file changed, 1 insertion(+) diff --git a/static/css/style.css b/static/css/style.css index cfcb30f..585aaac 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -3,6 +3,7 @@ html {overflow-y: scroll} @media (prefers-color-scheme: dark) { :root { --bgcolor: black; --fontcolor: white; --linkcolor: #5bf; --visitedcolor: #ae5ee0; --precolor: #fff; --prebgcolor: #383838;}} body{max-width:800px;margin:40px auto;padding:0 10px;font:14px/1.5 monospace;color:var(--fontcolor); background: var(--bgcolor)}a:link{color: var(--linkcolor)}a:visited{color: var(--visitedcolor)}a:active{color: var(--visitedcolor)}h1,h2,h3{line-height:1.2} p > code{color: var(--precolor); background: var(--prebgcolor); padding:2px} +code{color: var(--precolor); background: var(--prebgcolor); padding:2px} pre{color: var(--precolor); background: var(--prebgcolor); padding:24px; overflow-x: auto} article{padding:24px 0} .center {display: block;margin-left: auto;margin-right: auto;width: 100%;} From ac271dc68cb2df3e90cf4184cb08ec8731aa84ee Mon Sep 17 00:00:00 2001 From: fliegerjohn Date: Sat, 13 Jan 2024 18:28:57 +0100 Subject: [PATCH 05/10] Add missing backslash on tags around the summary. --- layouts/_default/summary.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index a347932..2114922 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -2,7 +2,7 @@

{{ .Title }}

{{ range .Params.tags }} - {{ . }} + {{ . }} {{ end }}
{{ .Summary }} From 793953fe61613216b7c9b7a9948efeb59cf9d45f Mon Sep 17 00:00:00 2001 From: fliegerjohn Date: Sat, 13 Jan 2024 23:47:04 +0100 Subject: [PATCH 06/10] Fixing #1 by only including posts from posts/ --- layouts/_default/index.rss.xml | 72 ++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 layouts/_default/index.rss.xml diff --git a/layouts/_default/index.rss.xml b/layouts/_default/index.rss.xml new file mode 100644 index 0000000..41aa5ea --- /dev/null +++ b/layouts/_default/index.rss.xml @@ -0,0 +1,72 @@ +{{- /* Deprecate site.Author.email in favor of site.Params.author.email */}} +{{- $authorEmail := "" }} +{{- with site.Params.author }} + {{- if reflect.IsMap . }} + {{- with .email }} + {{- $authorEmail = . }} + {{- end }} + {{- end }} +{{- else }} + {{- with site.Author.email }} + {{- $authorEmail = . }} + {{- warnf "The author key in site configuration is deprecated. Use params.author.email instead." }} + {{- end }} +{{- end }} + +{{- /* Deprecate site.Author.name in favor of site.Params.author.name */}} +{{- $authorName := "" }} +{{- with site.Params.author }} + {{- if reflect.IsMap . }} + {{- with .name }} + {{- $authorName = . }} + {{- end }} + {{- else }} + {{- $authorName = . }} + {{- end }} +{{- else }} + {{- with site.Author.name }} + {{- $authorName = . }} + {{- warnf "The author key in site configuration is deprecated. Use params.author.name instead." }} + {{- end }} +{{- end }} + +{{- $pctx := . }} +{{- if .IsHome }}{{ $pctx = .Site }}{{ end }} +{{- $pages := slice }} +{{- if or $.IsHome $.IsSection }} +{{- $pages = $pctx.RegularPages }} +{{- else }} +{{- $pages = $pctx.Pages }} +{{- end }} +{{- $limit := .Site.Config.Services.RSS.Limit }} +{{- if ge $limit 1 }} +{{- $pages = $pages | first $limit }} +{{- end }} +{{- printf "" | safeHTML }} + + + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }} + {{ .Permalink }} + Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ .Site.Title }} + Hugo -- gohugo.io + {{ site.Language.LanguageCode }}{{ with $authorEmail }} + {{.}}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with $authorEmail }} + {{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with .Site.Copyright }} + {{ . }}{{ end }}{{ if not .Date.IsZero }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + {{- with .OutputFormats.Get "RSS" }} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{- end }} + + {{- range where (where .Site.Pages ".Section" "posts") "Kind" "page" }} + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{- with $authorEmail }}{{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }} + {{ .Permalink }} + {{ .Summary | transform.XMLEscape | safeHTML }} + + {{- end }} + + From eef539a20e914f66480751239ea84cbaf23565c5 Mon Sep 17 00:00:00 2001 From: Fliegerjohn Date: Fri, 1 Nov 2024 10:33:36 +0100 Subject: [PATCH 07/10] update License --- LICENSE.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/LICENSE.md b/LICENSE.md index 630c225..83861e5 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -4,6 +4,8 @@ Copyright (c) 2016 Vimux Copyright (c) 2020 colorchestra +Copyright (c) 2024 fliegerjohn + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to From 874809c58842a841764bda721d34cd3eceb3b959 Mon Sep 17 00:00:00 2001 From: Fliegerjohn Date: Fri, 1 Nov 2024 10:41:32 +0100 Subject: [PATCH 08/10] Update Readme --- README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ccceb37..c1b2271 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # smol -A minimal, monospaced blogging theme for Hugo that respects your privacy and is easy on your bandwidth. A demo can be found at https://smol-demo.morph.sh. +A minimal, monospaced blogging theme for Hugo that respects your privacy and is easy on your bandwidth. smol is based on [Blank](https://github.com/Vimux/Blank) created by [Vimux](https://github.com/Vimux). @@ -19,7 +19,7 @@ smol is based on [Blank](https://github.com/Vimux/Blank) created by [Vimux](http In your Hugo site `themes` directory, run: ``` -git clone https://github.com/colorchestra/smol +git clone https://git.datenkastl.org/fliegerjohn/smol.git ``` Next, open `config.toml` in the base of the Hugo site and ensure the theme option is set to `smol`. @@ -85,8 +85,13 @@ You can add captions to images (technically using `
` HTML tags) by a ## Contributing -Have you found a bug or got an idea for a new feature? Feel free to use the [issue tracker](https://github.com/colorchestra/smol/issues) to let me know. Or make directly a [pull request](https://github.com/colorchestra/smol/pulls). +Have you found a bug or got an idea for a new feature? Feel free to use the [issue tracker](https://git.datenkastl.org/fliegerjohn/smol/issues)to let me know. Or make directly a [pull request](https://git.datenkastl.org/fliegerjohn/smol/pulls). ## License -This theme is released under the [MIT license](https://github.com/colorchestra/smol/blob/master/LICENSE). +This theme is released under the [MIT license](https://git.datenkastl.org/fliegerjohn/smol/raw/branch/master/LICENSE.md). + + +## Acknowledgements + +Smol - [colorchestra](https://github.com/colorchestra/smol) From 94f6eff800e05327e867bea6bc910eeb4fa2599b Mon Sep 17 00:00:00 2001 From: Fliegerjohn Date: Fri, 1 Nov 2024 13:37:48 +0100 Subject: [PATCH 09/10] Delete darkmode. Make site dark by default. --- static/css/style.css | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/static/css/style.css b/static/css/style.css index 585aaac..91f0cc4 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1,7 +1,6 @@ html {overflow-y: scroll} -:root { --bgcolor: white; --fontcolor: #444; --linkcolor: #00e; --visitedcolor: #551a8b; --precolor: #fff; --prebgcolor: #000;} -@media (prefers-color-scheme: dark) { :root { --bgcolor: black; --fontcolor: white; --linkcolor: #5bf; --visitedcolor: #ae5ee0; --precolor: #fff; --prebgcolor: #383838;}} -body{max-width:800px;margin:40px auto;padding:0 10px;font:14px/1.5 monospace;color:var(--fontcolor); background: var(--bgcolor)}a:link{color: var(--linkcolor)}a:visited{color: var(--visitedcolor)}a:active{color: var(--visitedcolor)}h1,h2,h3{line-height:1.2} +:root { --bgcolor: #2c2e38; --fontcolor: white; --linkcolor: #5bf; --visitedcolor: #ae5ee0; --precolor: #fff; --prebgcolor: #383838;} +body{max-width:1000px;margin:40px auto;padding:0 10px;font:14px/1.5 monospace;color:var(--fontcolor); background: var(--bgcolor)}a:link{color: var(--linkcolor)}a:visited{color: var(--visitedcolor)}a:active{color: var(--visitedcolor)}h1,h2,h3{line-height:1.2} p > code{color: var(--precolor); background: var(--prebgcolor); padding:2px} code{color: var(--precolor); background: var(--prebgcolor); padding:2px} pre{color: var(--precolor); background: var(--prebgcolor); padding:24px; overflow-x: auto} From 7ab6e3802d8f01ee5f0e5f71d726f12b28e5ac2d Mon Sep 17 00:00:00 2001 From: Fliegerjohn Date: Fri, 1 Nov 2024 13:47:59 +0100 Subject: [PATCH 10/10] rebrand to smolsite --- README.md | 16 ++++++++-------- archetypes/news.md | 11 +++++++++++ theme.toml | 6 +++--- 3 files changed, 22 insertions(+), 11 deletions(-) create mode 100644 archetypes/news.md diff --git a/README.md b/README.md index c1b2271..7e7398d 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# smol +# smolsite -A minimal, monospaced blogging theme for Hugo that respects your privacy and is easy on your bandwidth. +A minimal, monospaced site theme for Hugo that respects your privacy and is easy on your bandwidth. -smol is based on [Blank](https://github.com/Vimux/Blank) created by [Vimux](https://github.com/Vimux). +smolsite is based on [Smol](https://git.datenkastl.org/fliegerjohn/smol). ![Screenshot](/images/tn.png) @@ -19,13 +19,13 @@ smol is based on [Blank](https://github.com/Vimux/Blank) created by [Vimux](http In your Hugo site `themes` directory, run: ``` -git clone https://git.datenkastl.org/fliegerjohn/smol.git +git clone https://git.datenkastl.org/fliegerjohn/smolsite.git ``` -Next, open `config.toml` in the base of the Hugo site and ensure the theme option is set to `smol`. +Next, open `config.toml` in the base of the Hugo site and ensure the theme option is set to `smolsite`. ``` -theme = "smol" +theme = "smolsite" ``` Lastly, add the following lines to your `config.toml` to set site parameters and make use of all the menu entries in the header and footer sections if you need them. @@ -85,11 +85,11 @@ You can add captions to images (technically using `
` HTML tags) by a ## Contributing -Have you found a bug or got an idea for a new feature? Feel free to use the [issue tracker](https://git.datenkastl.org/fliegerjohn/smol/issues)to let me know. Or make directly a [pull request](https://git.datenkastl.org/fliegerjohn/smol/pulls). +Have you found a bug or got an idea for a new feature? Feel free to use the [issue tracker](https://git.datenkastl.org/fliegerjohn/smolsite/issues)to let me know. Or make directly a [pull request](https://git.datenkastl.org/fliegerjohn/smolsite/pulls). ## License -This theme is released under the [MIT license](https://git.datenkastl.org/fliegerjohn/smol/raw/branch/master/LICENSE.md). +This theme is released under the [MIT license](https://git.datenkastl.org/fliegerjohn/smolsite/raw/branch/master/LICENSE.md). ## Acknowledgements diff --git a/archetypes/news.md b/archetypes/news.md new file mode 100644 index 0000000..11e7cff --- /dev/null +++ b/archetypes/news.md @@ -0,0 +1,11 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +slug: {{ now.Format "2006-01-02" }}-{{ .Name | urlize }} +type: news +draft: true +categories: + - default +tags: + - default +--- diff --git a/theme.toml b/theme.toml index e295d2e..8b92f8c 100644 --- a/theme.toml +++ b/theme.toml @@ -1,10 +1,10 @@ -name = "smol" +name = "smolsite" license = "MIT" licenselink = "https://github.com/colorchestra/smol/blob/master/LICENSE.md" description = "Minimal Hugo theme using a Monospace font and without any tracking or external dependencies." homepage = "https://github.com/colorchestra/smol" -tags = ["blog", "minimal", "monospace", "dark mode", "simple", "clean", "light", "responsive", "fast", "no-js", "no-tracking", "privacy"] -features = ["blog", "privacy", "responsive", "fast"] +tags = ["minimal", "monospace", "dark mode", "simple", "clean", "light", "responsive", "fast", "no-js", "no-tracking", "privacy"] +features = ["privacy", "responsive", "fast"] min_version = "0.20" [author]