From eba3d78a32053797d16b3e3ef2837053a16b5b27 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 28 Aug 2024 15:07:34 +0200 Subject: [PATCH] fix: replace deprecated `.Site.Social` (#570) BREAKING CHANGE: The min required Hugo version was bumped to v0.124 to drop deprecated vars `.Site.Social`. --- README.md | 2 +- exampleSite/content/posts/usage/getting-started.md | 2 +- layouts/partials/microformats/opengraph.html | 2 +- layouts/partials/microformats/twitter_cards.html | 2 +- theme.toml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2eef538d..e8afa773 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Geekblog [![Build Status](https://ci.thegeeklab.de/api/badges/thegeeklab/hugo-geekblog/status.svg)](https://ci.thegeeklab.de/repos/thegeeklab/hugo-geekblog) -[![Hugo Version](https://img.shields.io/badge/hugo-0.93-blue.svg)](https://gohugo.io) +[![Hugo Version](https://img.shields.io/badge/hugo-0.124-blue.svg)](https://gohugo.io) [![GitHub release](https://img.shields.io/github/v/release/thegeeklab/hugo-geekblog)](https://github.com/thegeeklab/hugo-geekblog/releases/latest) [![GitHub contributors](https://img.shields.io/github/contributors/thegeeklab/hugo-geekblog)](https://github.com/thegeeklab/hugo-geekblog/graphs/contributors) [![License: MIT](https://img.shields.io/github/license/thegeeklab/hugo-geekblog)](https://github.com/thegeeklab/hugo-geekblog/blob/main/LICENSE) diff --git a/exampleSite/content/posts/usage/getting-started.md b/exampleSite/content/posts/usage/getting-started.md index 28f0f79a..eb6c1852 100644 --- a/exampleSite/content/posts/usage/getting-started.md +++ b/exampleSite/content/posts/usage/getting-started.md @@ -15,7 +15,7 @@ Geekblog is a simple Hugo theme for personal blogs. It is intentionally designed [![Build Status](https://ci.thegeeklab.de/api/badges/thegeeklab/hugo-geekblog/status.svg)](https://ci.thegeeklab.de/repos/thegeeklab/hugo-geekblog) -[![Hugo Version](https://img.shields.io/badge/hugo-0.93-blue.svg)](https://gohugo.io) +[![Hugo Version](https://img.shields.io/badge/hugo-0.124-blue.svg)](https://gohugo.io) [![GitHub release](https://img.shields.io/github/v/release/thegeeklab/hugo-geekblog)](https://github.com/thegeeklab/hugo-geekblog/releases/latest) [![GitHub contributors](https://img.shields.io/github/contributors/thegeeklab/hugo-geekblog)](https://github.com/thegeeklab/hugo-geekblog/graphs/contributors) [![License: MIT](https://img.shields.io/github/license/thegeeklab/hugo-geekblog)](https://github.com/thegeeklab/hugo-geekblog/blob/main/LICENSE) diff --git a/layouts/partials/microformats/opengraph.html b/layouts/partials/microformats/opengraph.html index 574420cc..5bb8dc2c 100644 --- a/layouts/partials/microformats/opengraph.html +++ b/layouts/partials/microformats/opengraph.html @@ -61,6 +61,6 @@ {{- end }} {{- /* Facebook Page Admin ID for Domain Insights */}} -{{- with .Site.Social.facebook_admin }} +{{- with .Site.Params.facebook_admin }} {{- end }} diff --git a/layouts/partials/microformats/twitter_cards.html b/layouts/partials/microformats/twitter_cards.html index a2cc08c4..da072625 100644 --- a/layouts/partials/microformats/twitter_cards.html +++ b/layouts/partials/microformats/twitter_cards.html @@ -10,6 +10,6 @@ {{- with partial "utils/description" . }} {{- end }} -{{- with .Site.Social.twitter -}} +{{- with .Site.Params.twitter -}} {{- end }} diff --git a/theme.toml b/theme.toml index b31b91c1..10467be3 100644 --- a/theme.toml +++ b/theme.toml @@ -5,7 +5,7 @@ description = "Hugo theme made for blogs" homepage = "https://hugo-geekblog.geekdocs.de/" demosite = "https://hugo-geekblog.geekdocs.de/" tags = ["blog", "responsive", "simple"] -min_version = "0.93.0" +min_version = "0.124" [author] name = "Robert Kaussow"