the entire './public' folder that Hugo produces is embedded into a
variable of 'embed.FS' type and served directly using the default http
mux that Go std offers.
ci, pre-commit, Dockerfile and compose file have all been updated
accordingly.
nginx is no longer needed to front the site files, which enabled
switching to a SCRATCH image containing just a single statically linked
"homepage" app that has all files (html, css, js) embedded.
the containers are otherwise empty (as the name SCRATCH suggests), which
further decreases potential attack surface area.
Co-authored-by: surtur <a_mirre@utb.cz>
Reviewed-on: #33
the :2.6.3 tag is apparently only available for arm arch, it's probably
best not to base the decision to bump versions on a new release
notification. instead, availability of the new version for our default
arch (amd64) should always be checked:
podman run -it --rm docker.io/library/traefik:2.6.3
Trying to pull docker.io/library/traefik:2.6.3...
Error: choosing an image from manifest list docker://traefik:2.6.3: no image found in manifest list for architecture amd64, variant "", OS linux
~ took 2s
(╯°□°)╯︵ ┻━┻ 125 🔥 podman run -it --rm docker.io/library/traefik:2.7
Trying to pull docker.io/library/traefik:2.7...
Getting image source signatures
Copying blob 491249faa733 done
commit bc6140098f698dbdf9f40b17e68a93d866eb93b5
Author: surtur <a_mirre@utb.cz>
Date: Tue Mar 29 18:32:39 2022 +0200
add commentary to colour codes
since we're keeping the original names of colour variables from the
theme, it's a good idea to at least have the usage of them (somewhat)
documented.
commit 927909be604187b8e178ce009d88ac6b26c0b3c5
Author: surtur <a_mirre@utb.cz>
Date: Tue Mar 29 18:24:43 2022 +0200
increase pre border-radius to 5px
commit 62f0d1654028beb625453ad19b0138574e999861
Author: surtur <a_mirre@utb.cz>
Date: Tue Mar 29 18:18:02 2022 +0200
change theme colours
using the below would also add any other alternative formats.
since we don't use any other alt formats, it will only output the link
to RSS feed for each page.
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
ref: https://gohugo.io/templates/rss/#reference-your-rss-feed-in-head
to correctly point to a commit path, a '/src/commit/' chunk had to be
added to the previously used URL, which simply pointed to the root of
the repository. that resulted in a garbled URL and a non-existent path as far as Gitea was concerned.
this PR fixes that.
Co-authored-by: surtur <a_mirre@utb.cz>
Reviewed-on: #31
Co-authored-by: wanderer <wanderer@noreply.git.dotya.ml>
Co-committed-by: wanderer <wanderer@noreply.git.dotya.ml>
update hadolint to v2.6.0-alpine and add an IGNORE to Dockerfile to make
sure the linter is up to date and all errors are resolved, resulting ina passing build.
the ignore is added as the issue is not too big of a deal (at least not
ATM).
* 55d9852 - fix: make hadolint pass <surtur>
* 8f2e192 - about, posts: add dnscrypt <surtur>
Co-authored-by: surtur <a_mirre@utb.cz>
Reviewed-on: #29
Co-authored-by: wanderer <wanderer@noreply.git.dotya.ml>
Co-committed-by: wanderer <wanderer@noreply.git.dotya.ml>