Minor tweaks and fixes

This commit is contained in:
Ariejan de Vroom 2020-03-09 11:56:03 +01:00
parent ceeb55cb90
commit d06415bc16
4 changed files with 42 additions and 5 deletions

View File

@ -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/).

View File

@ -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;
}

View File

@ -24,6 +24,7 @@
{{ $styles := resources.Get "scss/devroom.scss" | resources.ExecuteAsTemplate "style.devroom.css" . | toCSS $cssOpts | minify | fingerprint }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" crossorigin="anonymous" media="screen" />
{{ end }}
<link rel="alternate" type="application/rss+xml" href="https://www.devroom.io/index.xml" title="Ariejan de Vroom" />
</head>
<body>
<div class="container">

View File

@ -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 "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{ with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }}
{{ range $pages }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>{{ .Summary | html }}</description>
</item>
{{ end }}
</channel>
</rss>