diff --git a/LICENSE.md b/LICENSE.md index 83861e5..630c225 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -4,8 +4,6 @@ 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 diff --git a/README.md b/README.md index 7e7398d..ccceb37 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# smolsite +# smol -A minimal, monospaced site theme for Hugo that respects your privacy and is easy on your bandwidth. +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. -smolsite is based on [Smol](https://git.datenkastl.org/fliegerjohn/smol). +smol is based on [Blank](https://github.com/Vimux/Blank) created by [Vimux](https://github.com/Vimux). ![Screenshot](/images/tn.png) @@ -19,13 +19,13 @@ smolsite is based on [Smol](https://git.datenkastl.org/fliegerjohn/smol). In your Hugo site `themes` directory, run: ``` -git clone https://git.datenkastl.org/fliegerjohn/smolsite.git +git clone https://github.com/colorchestra/smol ``` -Next, open `config.toml` in the base of the Hugo site and ensure the theme option is set to `smolsite`. +Next, open `config.toml` in the base of the Hugo site and ensure the theme option is set to `smol`. ``` -theme = "smolsite" +theme = "smol" ``` 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,13 +85,8 @@ 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/smolsite/issues)to let me know. Or make directly a [pull request](https://git.datenkastl.org/fliegerjohn/smolsite/pulls). +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). ## License -This theme is released under the [MIT license](https://git.datenkastl.org/fliegerjohn/smolsite/raw/branch/master/LICENSE.md). - - -## Acknowledgements - -Smol - [colorchestra](https://github.com/colorchestra/smol) +This theme is released under the [MIT license](https://github.com/colorchestra/smol/blob/master/LICENSE). diff --git a/archetypes/news.md b/archetypes/news.md deleted file mode 100644 index 11e7cff..0000000 --- a/archetypes/news.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -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/archetypes/posts.md b/archetypes/posts.md deleted file mode 100644 index 11182ff..0000000 --- a/archetypes/posts.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: "{{ replace .Name "-" " " | title }}" -date: {{ .Date }} -slug: {{ now.Format "2006-01-02" }}-{{ .Name | urlize }} -type: posts -draft: true -categories: - - default -tags: - - default ---- diff --git a/layouts/_default/index.rss.xml b/layouts/_default/index.rss.xml deleted file mode 100644 index 41aa5ea..0000000 --- a/layouts/_default/index.rss.xml +++ /dev/null @@ -1,72 +0,0 @@ -{{- /* 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 }} - - diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index 2114922..a347932 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -2,7 +2,7 @@

{{ .Title }}

{{ range .Params.tags }} - {{ . }} + {{ . }} {{ end }}
{{ .Summary }} diff --git a/static/css/style.css b/static/css/style.css index 91f0cc4..ce0019f 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1,11 +1,11 @@ html {overflow-y: scroll} -: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} +: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} 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%;} +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} diff --git a/theme.toml b/theme.toml index 8b92f8c..318f26c 100644 --- a/theme.toml +++ b/theme.toml @@ -1,10 +1,10 @@ -name = "smolsite" +name = "smol" 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 = ["minimal", "monospace", "dark mode", "simple", "clean", "light", "responsive", "fast", "no-js", "no-tracking", "privacy"] -features = ["privacy", "responsive", "fast"] +tags = ["blog", "minimal", "monospace", "dark mode", "simple", "clean", "light", "responsive", "fast", "no-js", "no-tracking", "privacy"] +features = ["blog", "privacy", "responsive", "fast"] min_version = "0.20" [author] @@ -14,4 +14,4 @@ min_version = "0.20" [original] author = "Vimux" homepage = "https://github.com/Vimux" - repo = "https://github.com/Vimux/blank" + repo = "https://github.com/colorchestra/blank"