├── layouts ├── partials │ ├── head_custom.html │ ├── date.html │ ├── footer.html │ ├── footer_custom.html │ ├── duration.html │ ├── contents.html │ ├── related.html │ ├── header.html │ └── head.html ├── 404.html ├── index.html └── _default │ ├── single.html │ ├── baseof.html │ └── list.html ├── config.toml ├── archetypes └── default.md ├── images ├── tn.png └── screenshot.png ├── .gitmodules ├── README.md ├── theme.toml └── LICENSE /layouts/partials/head_custom.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/404.html: -------------------------------------------------------------------------------- 1 | {{ define "main" }} 2 | {{ .Content }} 3 | {{ end }} -------------------------------------------------------------------------------- /config.toml: -------------------------------------------------------------------------------- 1 | [module] 2 | [module.hugoVersion] 3 | extended = false -------------------------------------------------------------------------------- /layouts/index.html: -------------------------------------------------------------------------------- 1 | {{ define "main" }} 2 | {{ .Content }} 3 | {{ end }} -------------------------------------------------------------------------------- /archetypes/default.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "" 3 | date: "" 4 | draft: true 5 | --- 6 | -------------------------------------------------------------------------------- /images/tn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/splch/hugo-simplecss/HEAD/images/tn.png -------------------------------------------------------------------------------- /images/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/splch/hugo-simplecss/HEAD/images/screenshot.png -------------------------------------------------------------------------------- /layouts/partials/date.html: -------------------------------------------------------------------------------- 1 | {{ if gt .Params.date 0 }} 2 | {{ .Date.Format "January 2, 2006" }} 3 | {{ end }} -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "static/css/simple.css"] 2 | path = static/css/simple.css 3 | url = https://github.com/kevquirk/simple.css 4 | -------------------------------------------------------------------------------- /layouts/partials/footer.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/partials/footer_custom.html: -------------------------------------------------------------------------------- 1 | Thanks to a gopher for building and the galaxy 2 | for hosting ♡ -------------------------------------------------------------------------------- /layouts/_default/single.html: -------------------------------------------------------------------------------- 1 | {{ define "main" }} 2 | {{- partial "duration.html" . -}} 3 | {{- partial "contents.html" . -}} 4 | {{ .Content }} 5 | {{- partial "related.html" . -}} 6 | {{ end }} -------------------------------------------------------------------------------- /layouts/partials/duration.html: -------------------------------------------------------------------------------- 1 | {{ with math.Round (div .WordCount 200.0) }} 2 | 3 | {{ if eq . 1 }} 4 | {{ . }} minute 5 | {{ end }} 6 | {{ if gt . 1 }} 7 | {{ . }} minutes 8 | {{ end }} 9 | {{ end }} -------------------------------------------------------------------------------- /layouts/_default/baseof.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | {{- partial "head.html" . -}} 4 | 5 | 6 | {{- partial "header.html" . -}} 7 |
8 | {{- block "main" . }}{{- end }} 9 |
10 | {{- partial "footer.html" . -}} 11 | 12 | 13 | -------------------------------------------------------------------------------- /layouts/partials/contents.html: -------------------------------------------------------------------------------- 1 | {{ if ne .TableOfContents "" }} 2 | 8 | {{ end }} -------------------------------------------------------------------------------- /layouts/partials/related.html: -------------------------------------------------------------------------------- 1 | {{ with site.RegularPages.Related . }} 2 | -------------------------------------------------------------------------------- /layouts/partials/header.html: -------------------------------------------------------------------------------- 1 |
2 | 7 |

{{ .Title }}

8 | {{ with .Params.author }}{{ . }}{{ end }} 9 | {{- partial "date.html" . -}} 10 | 11 |
-------------------------------------------------------------------------------- /layouts/_default/list.html: -------------------------------------------------------------------------------- 1 | {{ define "main" }} 2 | {{ range .Paginator.Pages }} 3 |
4 |

{{ .Title }}

5 | {{- partial "date.html" . -}} | {{- partial "duration.html" . -}} 6 |

{{ .Summary }}

7 |
8 | {{ end }} 9 | 17 | {{ end }} -------------------------------------------------------------------------------- /layouts/partials/head.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{ .Title }} | {{ .Site.Title }} 5 | 6 | 7 | 9 | {{- partial "head_custom.html" . -}} 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Hugo Theme for [Simple.css](https://simplecss.org/) 2 | 3 | ![Lines of code](https://img.shields.io/tokei/lines/github/splch/hugo-simplecss) 4 | 5 | This theme is a bare minimum theme for Hugo. It uses no JavaScript, tracking, or other external resources. The styling is handled via a submodule of [Simple.css](https://github.com/kevquirk/simple.css/). 6 | 7 | ## Demo 8 | 9 | My blog uses this theme: 10 | 11 | ## Installation 12 | 13 | 1. Clone this repository: `git clone https://github.com/splch/hugo-simplecss.git` 14 | 2. Initialize the submodule: `cd hugo-simplecss && git submodule update --init --recursive` 15 | -------------------------------------------------------------------------------- /theme.toml: -------------------------------------------------------------------------------- 1 | name = "SimpleCSS" 2 | license = "MIT" 3 | licenselink = "https://github.com/splch/hugo-simplecss/blob/master/LICENSE" 4 | description = "Use Simplecss with the bare-minimum Hugo theme to optimize readability and expressibility." 5 | 6 | # The home page of the theme, where the source can be found. 7 | homepage = "https://github.com/splch/hugo-simplecss/" 8 | 9 | # If you have a running demo of the theme. 10 | demosite = "https://slc.is/" 11 | 12 | tags = ["blog", "minimal", "personal", "light", "dark", "portfolio", "dark mode"] 13 | features = ["blog", "privacy", "no javascript", "simple"] 14 | 15 | # If the theme has a single author 16 | [author] 17 | name = "Spencer Churchill" 18 | homepage = "https://slc.is/" 19 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2022 Spencer Churchill 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | --------------------------------------------------------------------------------