From ffd9b46bd87ac178f15ed53e5deb3b0aa9774a92 Mon Sep 17 00:00:00 2001 From: Maik de Kruif Date: Fri, 11 Oct 2024 16:18:41 +0200 Subject: [PATCH] Update Hugo version --- archetypes/default.md | 13 ----- archetypes/posts.md | 13 ----- config.toml => config/_default/hugo.toml | 44 ++++++++--------- config/production/hugo.toml | 5 ++ content/portfolio/watch-together.md | 2 +- themes/maik-blog/archetypes/posts.md | 13 ----- themes/maik-blog/layouts/_default/baseof.html | 3 +- themes/maik-blog/layouts/_default/rss.xml | 10 ++-- themes/maik-blog/layouts/partials/footer.html | 6 +-- themes/maik-blog/layouts/partials/head.html | 7 +-- .../layouts/partials/javascript.html | 6 +-- .../maik-blog/layouts/partials/meta-tags.html | 8 ++-- themes/maik-blog/layouts/partials/seo.html | 47 +++++++++---------- .../maik-blog/layouts/portfolio/single.html | 2 +- themes/maik-blog/layouts/posts/single.html | 2 +- themes/maik-blog/layouts/rss.xml | 10 ++-- themes/maik-blog/layouts/writeups/list.html | 3 +- themes/maik-blog/layouts/writeups/rss.xml | 45 ++++++++++++++++++ themes/maik-blog/layouts/writeups/single.html | 2 +- 19 files changed, 122 insertions(+), 119 deletions(-) delete mode 100644 archetypes/default.md delete mode 100644 archetypes/posts.md rename config.toml => config/_default/hugo.toml (90%) create mode 100644 config/production/hugo.toml delete mode 100644 themes/maik-blog/archetypes/posts.md create mode 100644 themes/maik-blog/layouts/writeups/rss.xml diff --git a/archetypes/default.md b/archetypes/default.md deleted file mode 100644 index 7201aca..0000000 --- a/archetypes/default.md +++ /dev/null @@ -1,13 +0,0 @@ -+++ -author = "Maik de Kruif" -title = "{{ replace .Name "-" " " | title }}" -date = {{ .Date }} -description = "" -images = [] -tags = [ - "untagged", -] -categories = [ - "uncategorized", -] -+++ diff --git a/archetypes/posts.md b/archetypes/posts.md deleted file mode 100644 index 7201aca..0000000 --- a/archetypes/posts.md +++ /dev/null @@ -1,13 +0,0 @@ -+++ -author = "Maik de Kruif" -title = "{{ replace .Name "-" " " | title }}" -date = {{ .Date }} -description = "" -images = [] -tags = [ - "untagged", -] -categories = [ - "uncategorized", -] -+++ diff --git a/config.toml b/config/_default/hugo.toml similarity index 90% rename from config.toml rename to config/_default/hugo.toml index 8607aef..afdea31 100644 --- a/config.toml +++ b/config/_default/hugo.toml @@ -1,12 +1,8 @@ -baseURL = "https://maik.dev/" -# baseURL = "http://localhost:1313/" +baseURL = "http://localhost:1313/" title = "Maik de Kruif" languageCode = "en-us" theme = "maik-blog" -paginate = 12 -rssLimit = 10 - copyright = "© Maik de Kruif (maik_dev). All rights reserved." PygmentsCodeFences = true @@ -27,31 +23,21 @@ canonifyURLs = true enableRobotsTXT = true enableGitInfo = true enableEmoji = true -enableMissingTranslationPlaceholders = false -disableRSS = false -disableSitemap = false -disable404 = false -disableHugoGeneratorInject = false - -googleAnalytics = "UA-136337666-1" [permalinks] - posts = "/posts/:title/" - writeups = "/:sections/:title/" - -[author] - name = "Maik de Kruif" - email = "maik@maik.dev" - twitter = "@maik_dev" - image = "/img/home/portrait.png" - -[social] - twitter = "@maik_dev" + [permalinks.page] + posts = "/posts/:title/" + writeups = "/:sections/:title/" + # writeups = "/writeups/:title/" + portfolio = "/portfolio/:title/" [outputs] home = ["HTML", "RSS"] page = ["HTML", "RSS"] +[pagination] + pagerSize = 12 + [params] dateform = "Jan 2, 2006" dateformShort = "Jan 2" @@ -65,6 +51,8 @@ googleAnalytics = "UA-136337666-1" genre = "Blog" + rssLimit = 15 + showReadingTimeInList = false homeSubtitle = "Software Engineering, Linux and Cyber Security" @@ -111,6 +99,15 @@ googleAnalytics = "UA-136337666-1" alt = "Portrait" size = "175px" + [params.author] + name = "Maik de Kruif" + email = "maik@maik.dev" + twitter = "@maik_dev" + image = "/img/home/portrait.png" + + [params.general] + twitter = "@maik_dev" + # Wallets [[params.wallets]] name = "XMR" @@ -175,7 +172,6 @@ googleAnalytics = "UA-136337666-1" [languages] [languages.en] - subtitle = "maik.dev" weight = 1 copyright = "© Maik de Kruif (maik_dev). All rights reserved." diff --git a/config/production/hugo.toml b/config/production/hugo.toml new file mode 100644 index 0000000..856a307 --- /dev/null +++ b/config/production/hugo.toml @@ -0,0 +1,5 @@ +baseURL = "https://maik.dev/" + +[services] + [services.googleAnalytics] + id = "UA-136337666-1" \ No newline at end of file diff --git a/content/portfolio/watch-together.md b/content/portfolio/watch-together.md index bf7ef35..58b9816 100644 --- a/content/portfolio/watch-together.md +++ b/content/portfolio/watch-together.md @@ -2,7 +2,7 @@ author = "Maik de Kruif" title = "WatchTogether" start_date = 2018-08-17 -end_date = 9999-01-01 +end_date = 2021-01-25 company_name = "Personal" company_url = "https://maik.dev" cover = "img/portfolio/watch-together/screenshot.png" diff --git a/themes/maik-blog/archetypes/posts.md b/themes/maik-blog/archetypes/posts.md deleted file mode 100644 index 695af53..0000000 --- a/themes/maik-blog/archetypes/posts.md +++ /dev/null @@ -1,13 +0,0 @@ -+++ -author = "Maik de Kruif" -title = "{{ replace .Name "-" " " | title }}" -date = {{ .Date }} -description = "" -cover = "" -tags = [ - "untagged", -] -categories = [ - "uncategorized", -] -+++ diff --git a/themes/maik-blog/layouts/_default/baseof.html b/themes/maik-blog/layouts/_default/baseof.html index 2f279c5..9c28994 100644 --- a/themes/maik-blog/layouts/_default/baseof.html +++ b/themes/maik-blog/layouts/_default/baseof.html @@ -1,4 +1,3 @@ -{{- $paginator := .Paginate .RegularPagesRecursive }} @@ -20,6 +19,8 @@ {{ partial "javascript.html" . }} + + {{ partial "seo.html" . }} \ No newline at end of file diff --git a/themes/maik-blog/layouts/_default/rss.xml b/themes/maik-blog/layouts/_default/rss.xml index fdc1319..ae64104 100644 --- a/themes/maik-blog/layouts/_default/rss.xml +++ b/themes/maik-blog/layouts/_default/rss.xml @@ -7,11 +7,11 @@ {{- with .Site.LanguageCode }} {{.}} {{- end }} - {{- with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}} + {{- with .Site.Params.author.email }} + {{.}}{{ with $.Site.Params.author.name }} ({{.}}){{end}} {{- end }} - {{- with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}} + {{- with .Site.Params.author.email }} + {{.}}{{ with $.Site.Params.author.name }} ({{.}}){{end}} {{- end }} {{- with .Site.Copyright }} {{.}} @@ -22,7 +22,7 @@ {{- with .OutputFormats.Get "RSS" }} {{ printf "" .Permalink .MediaType | safeHTML }} {{- end }} - {{ range .Pages | first 15 }} + {{ range .Pages | first .Site.Params.rssLimit }} {{ .Title }}{{ with .Params.Subtitle }} // {{ . }}{{ end }} {{ .Permalink }} diff --git a/themes/maik-blog/layouts/partials/footer.html b/themes/maik-blog/layouts/partials/footer.html index 39e1941..df9bf39 100644 --- a/themes/maik-blog/layouts/partials/footer.html +++ b/themes/maik-blog/layouts/partials/footer.html @@ -3,19 +3,17 @@