Skip to content

Commit

Permalink
2025 updates (no new content, just bloat)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikroskeem committed Jan 8, 2025
1 parent dfff496 commit 2fb294c
Show file tree
Hide file tree
Showing 10 changed files with 97 additions and 19 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "github pages"
name: "GitHub pages"

on:
push:
Expand All @@ -10,23 +10,28 @@ 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"

- 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 }}"
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -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
4 changes: 0 additions & 4 deletions config.toml

This file was deleted.

1 change: 1 addition & 0 deletions content/posts/container-bind-mount-pitfalls-dns.md
Original file line number Diff line number Diff line change
Expand Up @@ -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." >}}
Expand Down
30 changes: 24 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
@@ -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
37 changes: 37 additions & 0 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<head>
<!-- Google Analytics -->
{{ template "_internal/google_analytics.html" . }}
<!-- Plausible -->
{{ partial "plausible_head.html" . }}
<!--- OpenGraph metadata -->
{{ template "_internal/opengraph.html" . }}

<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{{ template "_internal/opengraph.html" . }}
{{- if .IsHome }}
<meta name="description" content="{{ .Site.Params.Description }}">
{{- else if .Description }}
<meta name="description" content="{{ .Description }}">
{{- end }}

<title>{{- if .IsHome }}{{ .Site.Title }}{{- else }}{{ .Title }} &middot; {{ .Site.Title }}{{- end }}</title>

<!-- CSS -->
{{- $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 }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
<link rel="stylesheet" href="{{ "css/fonts.css" | relURL }}">
{{ range .Site.Params.css -}}
<link rel="stylesheet" href="{{ . | relURL }}">
{{ end -}}

<!-- Favicon -->
<link rel="icon" type="image/png" href="{{ "favicon.png" | relURL }}"/>
<link rel="apple-touch-icon" sizes="180x180" href="{{ "favicon.png" | relURL }}">

<!-- RSS -->
<link href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
</head>
Binary file added static/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions themes/plausible-hugo
Submodule plausible-hugo added at 25d00b

0 comments on commit 2fb294c

Please sign in to comment.