From d06415bc16c1f7578b4d5fc547b82e6fc08dc7ae Mon Sep 17 00:00:00 2001 From: Ariejan de Vroom Date: Mon, 9 Mar 2020 11:56:03 +0100 Subject: [PATCH] Minor tweaks and fixes --- content/about.md | 3 +- themes/devroom-2020/assets/scss/devroom.scss | 11 +++++-- .../devroom-2020/layouts/_default/baseof.html | 1 + themes/devroom-2020/layouts/_default/rss.xml | 32 +++++++++++++++++++ 4 files changed, 42 insertions(+), 5 deletions(-) create mode 100644 themes/devroom-2020/layouts/_default/rss.xml diff --git a/content/about.md b/content/about.md index f4dae6d..efc7872 100644 --- a/content/about.md +++ b/content/about.md @@ -36,5 +36,4 @@ In 2017 I switched from `https://ariejan.net` to `https://www.devroom.io` as my domain name for this blog. This site is static HTML, generated with [Hugo](http://gohugo.io) via self-hosted versions -of [Gitea](https://gitea.io) and [Drone](https://drone.io/). I'm currently using the -[Hugo Coder](https://github.com/luizdepra/hugo-coder) theme by [Luiz de PrĂ¡](https://luizdepra.dev/). +of [Gitea](https://gitea.io) and [Drone](https://drone.io/). diff --git a/themes/devroom-2020/assets/scss/devroom.scss b/themes/devroom-2020/assets/scss/devroom.scss index 0ef9081..0956ef1 100644 --- a/themes/devroom-2020/assets/scss/devroom.scss +++ b/themes/devroom-2020/assets/scss/devroom.scss @@ -5,10 +5,10 @@ $font_size: 1rem; $backdrop: #080808; $background: #242424; $text: #f7f7f7; -$links: #8acdea; +$links: #6C939F; $footer: darken($text, 40%); -$meta: #93423E; -$header: #bde4a7; +$meta: #AA4A39; +$header: #9AC361; html, body { background-color: $backdrop; @@ -125,6 +125,11 @@ footer { } } +small { + font-size: 100%; + color: $footer; +} + .meta { color: $meta; } \ No newline at end of file diff --git a/themes/devroom-2020/layouts/_default/baseof.html b/themes/devroom-2020/layouts/_default/baseof.html index 88097fe..623d60a 100644 --- a/themes/devroom-2020/layouts/_default/baseof.html +++ b/themes/devroom-2020/layouts/_default/baseof.html @@ -24,6 +24,7 @@ {{ $styles := resources.Get "scss/devroom.scss" | resources.ExecuteAsTemplate "style.devroom.css" . | toCSS $cssOpts | minify | fingerprint }} {{ end }} +
diff --git a/themes/devroom-2020/layouts/_default/rss.xml b/themes/devroom-2020/layouts/_default/rss.xml new file mode 100644 index 0000000..7d99230 --- /dev/null +++ b/themes/devroom-2020/layouts/_default/rss.xml @@ -0,0 +1,32 @@ +{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} +{{- $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{{ with .Site.LanguageCode }} + {{.}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{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 $pages }} + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ .Permalink }} + {{ .Summary | html }} + + {{ end }} + + \ No newline at end of file