diff --git a/themes/smol/LICENSE.md b/themes/smol/LICENSE.md deleted file mode 100644 index 630c225..0000000 --- a/themes/smol/LICENSE.md +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 Vimux - -Copyright (c) 2020 colorchestra - -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 -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/themes/smol/README.md b/themes/smol/README.md deleted file mode 100644 index ccceb37..0000000 --- a/themes/smol/README.md +++ /dev/null @@ -1,92 +0,0 @@ -# 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. - -smol is based on [Blank](https://github.com/Vimux/Blank) created by [Vimux](https://github.com/Vimux). - - -![Screenshot](/images/tn.png) - -## Features - -- No JavaScript -- No Google spyware or tracking of any kind -- No other external dependencies, embedded fonts or comment sections -- Dark mode support (depending on your OS's setting) - -## Installation - -In your Hugo site `themes` directory, run: - -``` -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 `smol`. - -``` -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. - -``` -# Parameters -[params] - subtitle = "Your blog subtitle goes here!" - dateFmt = "02.01.2006 15:04" - -# Header -[menu] - [[menu.main]] - identifier = "posts" - name = "Posts" - url = "/posts/" - weight = 1 - - [[menu.main]] - identifier = "categories" - name = "Categories" - url = "/categories/" - weight = 2 - - [[menu.main]] - identifier = "tags" - name = "Tags" - url = "/tags/" - weight = 3 - -# Footer - [[menu.footer]] - name = "Github" - url = "https://github.com/example" - weight = 1 - - [[menu.footer]] - name = "Mastodon" - url = "https://example.com/@user" - weight = 2 - - [[menu.footer]] - name = "Imprint" - url = "/imprint" - weight = 3 - -``` - -For more information read the official [quick start guide](https://gohugo.io/getting-started/quick-start/) of Hugo. - -## Optional features -### Custom copyright text -Add `copyright = "Your text here"` - in the config.toml to change the copyright notice in the footer. - -### Image captions -You can add captions to images (technically using `
` HTML tags) by adding titles, like so: `![Alt text here](/path/to/image.png "Put your caption here!")` - -## 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). - -## License - -This theme is released under the [MIT license](https://github.com/colorchestra/smol/blob/master/LICENSE). diff --git a/themes/smol/archetypes/default.md b/themes/smol/archetypes/default.md deleted file mode 100644 index ef75f76..0000000 --- a/themes/smol/archetypes/default.md +++ /dev/null @@ -1,4 +0,0 @@ -+++ -title = "{{ replace .Name "-" " " | title }}" -date = {{ .Date }} -+++ diff --git a/themes/smol/images/screenshot.png b/themes/smol/images/screenshot.png deleted file mode 100644 index 31cedc5..0000000 Binary files a/themes/smol/images/screenshot.png and /dev/null differ diff --git a/themes/smol/images/tn.png b/themes/smol/images/tn.png deleted file mode 100644 index 565e7fe..0000000 Binary files a/themes/smol/images/tn.png and /dev/null differ diff --git a/themes/smol/layouts/_default/_markup/render-image.html b/themes/smol/layouts/_default/_markup/render-image.html deleted file mode 100644 index 41008ca..0000000 --- a/themes/smol/layouts/_default/_markup/render-image.html +++ /dev/null @@ -1,11 +0,0 @@ -{{ if .Title }} -
- {{ .Text }} -
{{ .Title }}
-
-{{ else }} -
- {{ .Text }} -
-{{ end }} - diff --git a/themes/smol/layouts/_default/baseof.html b/themes/smol/layouts/_default/baseof.html deleted file mode 100644 index 926c1f5..0000000 --- a/themes/smol/layouts/_default/baseof.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - {{ .Title }} - {{ with .Site.Params.description }}{{ end }} - {{ with .Site.Params.author }}{{ end }} - - {{ range .Site.Params.customCSS -}} - - {{- end }} - {{ with .OutputFormats.Get "RSS" -}} - {{ printf `` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }} - {{- end }} - - - {{ partial "header" . }} - {{ block "main" . }}{{ end }} - {{ partial "footer" . }} - - diff --git a/themes/smol/layouts/_default/list.html b/themes/smol/layouts/_default/list.html deleted file mode 100644 index 1a1abce..0000000 --- a/themes/smol/layouts/_default/list.html +++ /dev/null @@ -1,26 +0,0 @@ -{{ define "main" }} -
- {{ $listtitle := .Title }} - {{ if or .Title .Content }} -
- {{ with .Title }}

{{ . }}

{{ end }} - {{ with .Content }}
{{ . }}
{{ end }} -
- {{ end }} - - - {{ partial "pagination.html" . }} -
-{{ end }} diff --git a/themes/smol/layouts/_default/single.html b/themes/smol/layouts/_default/single.html deleted file mode 100644 index b334487..0000000 --- a/themes/smol/layouts/_default/single.html +++ /dev/null @@ -1,16 +0,0 @@ -{{ define "main" }} -
-
-

{{ .Title }}

- - {{ range .Params.tags }} - {{ . }} - {{ end }} - -
- {{ .Content }} -
-
-
-{{ partial "sidebar.html" . }} -{{ end }} diff --git a/themes/smol/layouts/_default/summary.html b/themes/smol/layouts/_default/summary.html deleted file mode 100644 index a347932..0000000 --- a/themes/smol/layouts/_default/summary.html +++ /dev/null @@ -1,13 +0,0 @@ -
-

{{ .Title }}

- - {{ range .Params.tags }} - {{ . }} - {{ end }} -
- {{ .Summary }} - {{ if .Truncated }} - Read more... - {{ end }} -
-
diff --git a/themes/smol/layouts/index.html b/themes/smol/layouts/index.html deleted file mode 100644 index cd86013..0000000 --- a/themes/smol/layouts/index.html +++ /dev/null @@ -1,9 +0,0 @@ -{{ define "main" }} -
- {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }} - {{ range $paginator.Pages }} - {{ .Render "summary" }} - {{ end }} - {{ partial "pagination.html" . }} -
-{{ end }} diff --git a/themes/smol/layouts/partials/footer.html b/themes/smol/layouts/partials/footer.html deleted file mode 100644 index 8ba9f44..0000000 --- a/themes/smol/layouts/partials/footer.html +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/themes/smol/layouts/partials/header.html b/themes/smol/layouts/partials/header.html deleted file mode 100644 index d3088ff..0000000 --- a/themes/smol/layouts/partials/header.html +++ /dev/null @@ -1,16 +0,0 @@ -
- {{ strings.Repeat ( .Site.Title | len | add 6 ) "=" }}
- == {{ .Site.Title }} ==
- {{ strings.Repeat ( .Site.Title | len | add 6 ) "=" }} -
{{ .Site.Params.subtitle }}

-

-

-

- {{ end }} -
diff --git a/themes/smol/layouts/partials/pagination.html b/themes/smol/layouts/partials/pagination.html deleted file mode 100644 index 79f8053..0000000 --- a/themes/smol/layouts/partials/pagination.html +++ /dev/null @@ -1,9 +0,0 @@ -
-{{ if .Paginator.HasPrev }} - Previous Page -{{ end }} -{{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }} -{{ if .Paginator.HasNext }} - Next Page -{{ end }} -
diff --git a/themes/smol/layouts/partials/sidebar.html b/themes/smol/layouts/partials/sidebar.html deleted file mode 100644 index 92bbd80..0000000 --- a/themes/smol/layouts/partials/sidebar.html +++ /dev/null @@ -1,14 +0,0 @@ - diff --git a/themes/smol/static/css/style.css b/themes/smol/static/css/style.css deleted file mode 100644 index ce0019f..0000000 --- a/themes/smol/static/css/style.css +++ /dev/null @@ -1,11 +0,0 @@ -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} -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} diff --git a/themes/smol/theme.toml b/themes/smol/theme.toml deleted file mode 100644 index 318f26c..0000000 --- a/themes/smol/theme.toml +++ /dev/null @@ -1,17 +0,0 @@ -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 = ["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] - name = "morph" - homepage = "morph.sh" - -[original] - author = "Vimux" - homepage = "https://github.com/Vimux" - repo = "https://github.com/colorchestra/blank"