From f0d8805fcc96672fbc8da505c276e0416dd3b90f Mon Sep 17 00:00:00 2001 From: Mark Vainomaa Date: Wed, 8 Jan 2025 03:46:48 +0200 Subject: [PATCH] 2025 updates (no new content, just bloat) --- .github/workflows/publish.yml | 22 +++++++---- .gitmodules | 3 ++ config.toml | 4 -- .../container-bind-mount-pitfalls-dns.md | 1 + flake.lock | 30 +++++++++++--- hugo.toml | 17 ++++++++ layouts/partials/head.html | 37 ++++++++++++++++++ static/favicon.png | Bin 0 -> 2972 bytes themes/plausible-hugo | 1 + themes/tale | 2 +- 10 files changed, 98 insertions(+), 19 deletions(-) delete mode 100644 config.toml create mode 100644 hugo.toml create mode 100644 layouts/partials/head.html create mode 100644 static/favicon.png create mode 160000 themes/plausible-hugo diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8b8ee05..ee54d74 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: "github pages" +name: "GitHub pages" on: push: @@ -10,23 +10,29 @@ jobs: deploy: runs-on: "ubuntu-latest" steps: - - name: "Checkout sources" - uses: "actions/checkout@v3" + - id: "checkout" + name: "Checkout sources" + uses: "actions/checkout@v4" with: submodules: true + filter: "tree:0" fetch-depth: 0 - - name: "Setup Hugo" + - id: "setup-hugo" + name: "Setup Hugo" uses: "peaceiris/actions-hugo@v2" with: - hugo-version: "0.105.0" + hugo-version: "0.140.1" + extended: true - - name: "Build" + - id: "build" + name: "Build" run: |- hugo --minify - - name: "Deploy" - uses: "peaceiris/actions-gh-pages@v3" + - id: "deploy" + name: "Deploy" + uses: "peaceiris/actions-gh-pages@v4" if: "github.ref == 'refs/heads/master'" with: github_token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.gitmodules b/.gitmodules index e92c6d9..2559100 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "themes/tale"] path = themes/tale url = https://github.com/ZentriaMC/tale-hugo.git +[submodule "themes/plausible-hugo"] + path = themes/plausible-hugo + url = https://github.com/divinerites/plausible-hugo.git diff --git a/config.toml b/config.toml deleted file mode 100644 index b74eaf6..0000000 --- a/config.toml +++ /dev/null @@ -1,4 +0,0 @@ -baseURL = "https://blog.zentria.company/" -languageCode = "en-us" -title = "Zentria Blog" -theme = "tale" diff --git a/content/posts/container-bind-mount-pitfalls-dns.md b/content/posts/container-bind-mount-pitfalls-dns.md index b89e957..e2ec687 100644 --- a/content/posts/container-bind-mount-pitfalls-dns.md +++ b/content/posts/container-bind-mount-pitfalls-dns.md @@ -3,6 +3,7 @@ title: "Container bind mount pitfalls: DNS" author: Mark V. date: 2021-06-06T19:56:22+03:00 draft: false +summary: "_It's not DNS. There's no way it's DNS. It was DNS._" --- {{< figure src="/img/dns-haiku.png" alt="DNS Haiku" title="It's not DNS. There's no way it's DNS. It was DNS." >}} diff --git a/flake.lock b/flake.lock index 561b0c1..477036c 100644 --- a/flake.lock +++ b/flake.lock @@ -1,12 +1,15 @@ { "nodes": { "flake-utils": { + "inputs": { + "systems": "systems" + }, "locked": { - "lastModified": 1667395993, - "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=", + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", "owner": "numtide", "repo": "flake-utils", - "rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", "type": "github" }, "original": { @@ -17,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1668415355, - "narHash": "sha256-F52qWYvLFJV1jibZiuNzeca8+UgZ7NZrr44J2ednmpE=", + "lastModified": 1736241350, + "narHash": "sha256-CHd7yhaDigUuJyDeX0SADbTM9FXfiWaeNyY34FL1wQU=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "69f8e94c46904a3194afcc8b232402287c7f91c9", + "rev": "8c9fd3e564728e90829ee7dbac6edc972971cd0f", "type": "github" }, "original": { @@ -36,6 +39,21 @@ "flake-utils": "flake-utils", "nixpkgs": "nixpkgs" } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } } }, "root": "root", diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..80e6812 --- /dev/null +++ b/hugo.toml @@ -0,0 +1,17 @@ +baseURL = "https://blog.zentria.company/" +languageCode = "en-us" +title = "Zentria Blog" +theme = ["tale", "plausible-hugo"] +summaryLength = 32 + +[params] +author = { name = "Zentria OÜ", homepage = "https://zentria.company" } + +[params.plausible] +enable = true +domain = "zentria.company" +selfhosted_domain = "plausible.zentria.ee" +hash_based_routing = false +gitstar = false +outbound_link = true +file_downloads = true diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..90446da --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,37 @@ + + + {{ template "_internal/google_analytics.html" . }} + + {{ partial "plausible_head.html" . }} + + {{ template "_internal/opengraph.html" . }} + + + + {{ template "_internal/opengraph.html" . }} + {{- if .IsHome }} + + {{- else if .Description }} + + {{- end }} + + {{- if .IsHome }}{{ .Site.Title }}{{- else }}{{ .Title }} · {{ .Site.Title }}{{- end }} + + + {{- $inServerMode := hugo.IsServer }} + {{- $cssTarget := "css/style.css" }} + {{- $cssOptions := cond ($inServerMode) (dict "targetPath" $cssTarget "enableSourceMap" true) (dict "targetPath" $cssTarget "outputStyle" "compressed") }} + {{- $style := resources.Get "scss/tale.scss" | toCSS $cssOptions }} + + + {{ range .Site.Params.css -}} + + {{ end -}} + + + + + + + + diff --git a/static/favicon.png b/static/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..171d2de744e6178bd388b0f5fb6fb163a943e601 GIT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60U~1Ubvq$ zSq2O<$(i;n^Vg+O2E7DdE?n}LHO8&VD^fwGBN@*<1*SpGn?)la$i%^l^WFJsyI)IR zKPxybRV4VE=ED?c=*YCG524=O9NQq`KS1t37(CE^II>|~X)4A##I1|BHQWc*FOAX# zSuSrAw>L(oY2IJMp_xfR*OQ_<;0sZswD@($1?R2NL%JN*t-ej8>OS~vY+8-ATidG+ zskz6qMz2Yo2Mq+uV22>~LeJg5OseyJLv(seY_k}|cO6klWlQmWy*8PPi~||5MMX{!z_hu#(MK%jYWk4x zD*Bur{sN39GuZ#s`rG$M&YM9Ae7Q`Nbyn})MY9^+9%8;KhDyI7U1m?xOfDFhk&fNR z^j!>LUU*-SBxxU4$MT42?N;>ZBMA8eEgz4#k6KBxU8`t8L4}>{cbTXm=3Y=6B*$s` z)j?T4KXB+th})2&y?`QS@$LJ2_0t7zFs9@_fjkn7J1uQ)knj7+s?lk+98Z?@Ij7gZ zB_>?M-AP(Z6$9F~453$qE9Sy!#f)DomL;^YJg{P$dl1#s7RYjfE+(L4YPouOH8vi2 zRzYLP0~PTrxo|?OtQBI_!ZeglaIxK(xG$ziUZ((m*QZ=K$HiwAt#_y%r!QXnlCKW9 za3tgyONez}$@izsIHABI!_j=PZbYTv$=;bs-Spo;GR_?>;zUjYp3KVxKlrn0949^D ztDiWjeKwoN61D|zx{lrA%)GDn^q)2sZPtdivwZ7M!;`+YHeyyJziO(c-dIE=v!~^6 zBPc`9tV?Mc1iSWHqI*2uCZ!N>X8})npk*zPS0rm}iwLxdhDV+Lg#*j92*TdguG;oe G!v6qCG{7(b literal 0 HcmV?d00001 diff --git a/themes/plausible-hugo b/themes/plausible-hugo new file mode 160000 index 0000000..25d00b5 --- /dev/null +++ b/themes/plausible-hugo @@ -0,0 +1 @@ +Subproject commit 25d00b53c8ba5bac67329d4ed552b11322093811 diff --git a/themes/tale b/themes/tale index fc38eb3..263f1e3 160000 --- a/themes/tale +++ b/themes/tale @@ -1 +1 @@ -Subproject commit fc38eb3c73881f12d220d9b5ad55840160f51983 +Subproject commit 263f1e379d9dc2ccf5c0e95463521837de756cd6