diff --git a/README.md b/README.md index 0284a57..0a0405e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ # Luke's Hugo Theme A simple Hugo theme I plan on using for my personal website, [Based.Cooking](https://based.cooking) and [LandChad.net](https://landchad.net). + + +## stuff + +- Makes one RSS feed for the entire site at `/index.xml` +- Stylesheet is in `/style.css`. +- If a post is tagged, links to the tags are placed at the bottom of the post. +- By default, the home index has its own custom file because I don't like it being a list. Remove `/layouts/index.html` if you want your home to function like a list as is default in Hugo. diff --git a/config.toml b/config.toml index 312dd33..8d4a4f5 100644 --- a/config.toml +++ b/config.toml @@ -3,6 +3,6 @@ baseURL = 'https://example.org' languageCode = 'en-us' [params] + # "relatedtext" is the text that appears above the tag list at the bottom of pages. #relatedtext = "Related:" favicon = "/favicon.ico" - showrss = true diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 804de8e..7f72104 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -2,19 +2,19 @@ {{- $tagsLen := len .Params.tags -}} {{- if gt $tagsLen 0 -}}
- {{ with .Site.Params.relatedtext }}{{ . }}
{{ end }} + {{- with .Site.Params.relatedtext }}{{ . }}
{{ end -}} {{- range $k, $v := .Params.tags -}} {{- $url := printf "tags/%s" (. | urlize | lower) -}} {{ . | title }} {{- if lt $k (sub $tagsLen 1) }} · {{ end -}} {{- end -}} -
+ {{- end -}} - {{- end -}} + {{- end }} diff --git a/static/rss.svg b/static/rss.svg index 35afbe2..dfda038 100644 --- a/static/rss.svg +++ b/static/rss.svg @@ -1,33 +1 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + diff --git a/static/style.css b/static/style.css index 829a27a..1634667 100644 --- a/static/style.css +++ b/static/style.css @@ -1,7 +1,7 @@ body { font-style: sans-serif ; - background: #100 ; - color: #ddd ; + background: #110000 ; + color: #ccc ; } main { @@ -9,7 +9,8 @@ main { margin: auto ; } -.lw, p img, li img, h1 img, h2 img, h3 img, h4 img, dt img, td img { +/* If images are placed in text areas, assume they are font-sized icons. */ +p img, li img, h1 img, h2 img, h3 img, h4 img, dt img, td img { max-height: 1em ; max-width: 1em ; vertical-align: middle ; @@ -22,3 +23,11 @@ img { header h1 { text-align: center ; } + +footer { + text-align: center ; +} + +.taglist { + text-align: center ; +}