From dd5da12b96b5481e61ee3939b23ca2a2e900aafc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20K=C3=A1n=C4=9B?= Date: Sun, 22 Feb 2026 21:08:59 +0100 Subject: [PATCH] Update nixpkgs -> update hugo to 0.152.2 That also requires a couple of changes in the template. For some of them I just remove the corresponding feature like analytics and comments. --- config.json | 9 ++++----- content/blogroll/_index.md | 4 ++-- content/donating-challenge/_index.md | 4 ++-- content/projects/_index.md | 4 ++-- flake.lock | 6 +++--- themes/hermit/README.md | 6 ------ themes/hermit/archetypes/default.md | 1 - themes/hermit/exampleSite/config.toml | 2 -- themes/hermit/layouts/_default/baseof.html | 1 - themes/hermit/layouts/_default/single.html | 5 ----- themes/hermit/layouts/index.html | 4 ++-- themes/hermit/layouts/partials/analytics.html | 1 - themes/hermit/layouts/partials/comments.html | 3 --- themes/hermit/layouts/partials/footer.html | 4 ++-- themes/hermit/layouts/posts/rss.xml | 8 ++++---- themes/hermit/layouts/posts/single.html | 3 --- themes/hermit/theme.toml | 2 -- 17 files changed, 21 insertions(+), 46 deletions(-) delete mode 100644 themes/hermit/layouts/partials/analytics.html delete mode 100644 themes/hermit/layouts/partials/comments.html diff --git a/config.json b/config.json index faf6555..9b0f7ed 100644 --- a/config.json +++ b/config.json @@ -4,10 +4,6 @@ "title": "Vojtěch Káně", "theme": "hermit", - "author": { - "name": "Vojtěch Káně" - }, - "markup": { "goldmark": { "renderer": { @@ -38,7 +34,10 @@ "name": "email", "url": "mailto:vojtech@vkane.cz" } - ] + ], + "author": { + "name": "Vojtěch Káně" + } }, "enableRobotsTXT": true diff --git a/content/blogroll/_index.md b/content/blogroll/_index.md index caa6251..9b57cd8 100644 --- a/content/blogroll/_index.md +++ b/content/blogroll/_index.md @@ -3,10 +3,10 @@ menu: main title: Blogroll weight: 5 outputs: [ "HTML" ] -_build: +build: render: true cascade: - _build: + build: render: false list: true --- diff --git a/content/donating-challenge/_index.md b/content/donating-challenge/_index.md index c607247..02f79f1 100644 --- a/content/donating-challenge/_index.md +++ b/content/donating-challenge/_index.md @@ -3,10 +3,10 @@ menu: main title: Donating challenge weight: 4 outputs: [ "HTML" ] -_build: +build: render: true cascade: - _build: + build: render: false list: true --- diff --git a/content/projects/_index.md b/content/projects/_index.md index 4316bad..21be321 100644 --- a/content/projects/_index.md +++ b/content/projects/_index.md @@ -3,10 +3,10 @@ menu: main title: My work weight: 3 outputs: [ "HTML" ] -_build: +build: render: true cascade: - _build: + build: render: false list: true --- diff --git a/flake.lock b/flake.lock index 77b1936..40c53e0 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1662096612, - "narHash": "sha256-R+Q8l5JuyJryRPdiIaYpO5O3A55rT+/pItBrKcy7LM4=", + "lastModified": 1769598131, + "narHash": "sha256-e7VO/kGLgRMbWtpBqdWl0uFg8Y2XWFMdz0uUJvlML8o=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "21de2b973f9fee595a7a1ac4693efff791245c34", + "rev": "fa83fd837f3098e3e678e6cf017b2b36102c7211", "type": "github" }, "original": { diff --git a/themes/hermit/README.md b/themes/hermit/README.md index 95ee384..58eaeee 100755 --- a/themes/hermit/README.md +++ b/themes/hermit/README.md @@ -87,12 +87,6 @@ In Hugo, layouts can live in either the project’s (root) or the themes’ layo ##### Customize social icons You can modify or add any svg icons in site's `layouts/partials/svg.html`. -##### Customize comment system -We only have built-in support for Disqus at the moment, if that doesn't fit your needs, you can just add html to site's `layouts/partials/comments.html`. - -##### Add custom analytics -If you prefer to use different analytics system other than google analytics, then add them inside `layouts/partials/analytics.html`. - #### Customize CSS If you'd like to customize theme color or fonts, you can simply override `assets/scss/_predefined.scss`, by simply copy it to site's root (keep the same relative path) then edit those variables. But keep in mind, you'll need **Hugo extended version** which has the ability to rebuild SCSS. You don't have to use extended version in production but in this case it's necessary to make sure the `resources` folder is committed and "up to date" (by running `hugo` or `hugo server` locally using the extended version). But anyway, always use the extended version if you can. diff --git a/themes/hermit/archetypes/default.md b/themes/hermit/archetypes/default.md index 63c1c63..717a6fb 100644 --- a/themes/hermit/archetypes/default.md +++ b/themes/hermit/archetypes/default.md @@ -2,7 +2,6 @@ title: "{{ replace .Name "-" " " | title }}" date: {{ .Date }} draft: true -comments: false images: --- diff --git a/themes/hermit/exampleSite/config.toml b/themes/hermit/exampleSite/config.toml index 4e60475..08acd78 100644 --- a/themes/hermit/exampleSite/config.toml +++ b/themes/hermit/exampleSite/config.toml @@ -10,8 +10,6 @@ pygmentsUseClasses = true rssLimit = 10 # Maximum number of items in the RSS feed. copyright = "This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License." # This message is only used by the RSS template. enableEmoji = true # Shorthand emojis in content files - https://gohugo.io/functions/emojify/ -# googleAnalytics = "UA-123-45" -# disqusShortname = "yourdiscussshortname" [author] name = "John Doe" diff --git a/themes/hermit/layouts/_default/baseof.html b/themes/hermit/layouts/_default/baseof.html index 7f09c90..dfa6056 100644 --- a/themes/hermit/layouts/_default/baseof.html +++ b/themes/hermit/layouts/_default/baseof.html @@ -41,7 +41,6 @@ {{ end }} - {{- partial "analytics.html" . }} {{- if templates.Exists "partials/extra-foot.html" -}} {{ partial "extra-foot.html" . }} {{- end }} diff --git a/themes/hermit/layouts/_default/single.html b/themes/hermit/layouts/_default/single.html index 9ba7177..0f8b55e 100644 --- a/themes/hermit/layouts/_default/single.html +++ b/themes/hermit/layouts/_default/single.html @@ -21,11 +21,6 @@
{{ .Content | replaceRE "()" `${1}${3}` | safeHTML }}
- {{- if .Params.comments }} -
- {{ partial "comments.html" . }} -
- {{- end }} {{ end }} diff --git a/themes/hermit/layouts/index.html b/themes/hermit/layouts/index.html index 3f31d25..037bec4 100644 --- a/themes/hermit/layouts/index.html +++ b/themes/hermit/layouts/index.html @@ -29,8 +29,8 @@ diff --git a/themes/hermit/layouts/partials/analytics.html b/themes/hermit/layouts/partials/analytics.html deleted file mode 100644 index b1f9af8..0000000 --- a/themes/hermit/layouts/partials/analytics.html +++ /dev/null @@ -1 +0,0 @@ -{{ template "_internal/google_analytics_async.html" . }} diff --git a/themes/hermit/layouts/partials/comments.html b/themes/hermit/layouts/partials/comments.html deleted file mode 100644 index b17632a..0000000 --- a/themes/hermit/layouts/partials/comments.html +++ /dev/null @@ -1,3 +0,0 @@ -{{- if .Site.DisqusShortname }} -{{ template "_internal/disqus.html" . }} -{{- end }} diff --git a/themes/hermit/layouts/partials/footer.html b/themes/hermit/layouts/partials/footer.html index 2aa24c2..3a67b8c 100644 --- a/themes/hermit/layouts/partials/footer.html +++ b/themes/hermit/layouts/partials/footer.html @@ -1,7 +1,7 @@ diff --git a/themes/hermit/layouts/posts/rss.xml b/themes/hermit/layouts/posts/rss.xml index 8db9f49..d4a6aff 100644 --- a/themes/hermit/layouts/posts/rss.xml +++ b/themes/hermit/layouts/posts/rss.xml @@ -4,9 +4,9 @@ {{ .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}}{{ with .Site.Params.Author.email }} + {{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Params.Author.email }} + {{.}}{{ with $.Site.Params.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" -}} @@ -17,7 +17,7 @@ {{ .Title }} {{ .Permalink }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ with .Site.Params.Author.email }}{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} {{ .Summary | html }} {{ printf `` .Content | safeHTML }} diff --git a/themes/hermit/layouts/posts/single.html b/themes/hermit/layouts/posts/single.html index d221abb..acb8533 100644 --- a/themes/hermit/layouts/posts/single.html +++ b/themes/hermit/layouts/posts/single.html @@ -66,9 +66,6 @@ {{- end }} -
- {{- partial "comments.html" . -}} -
{{ end }} diff --git a/themes/hermit/theme.toml b/themes/hermit/theme.toml index 843956c..b96c8f9 100644 --- a/themes/hermit/theme.toml +++ b/themes/hermit/theme.toml @@ -8,8 +8,6 @@ features = [ "single column", "featured image", "social icons", - "google analytics", - "disqus" ] min_version = 0.43