From 4948a3723e42fb775f4d895e4d173c5521be81b9 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Sun, 10 Mar 2024 19:57:03 +0100 Subject: [PATCH] fix: `.Site.LastChange` deprecation (#968) Fix the deprecation warning emitted from Hugo, and fix the typo in ` exampleSite/content/page/about/index.md` --- exampleSite/content/page/about/index.md | 4 ++-- layouts/partials/head/opengraph/provider/base.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/exampleSite/content/page/about/index.md b/exampleSite/content/page/about/index.md index 494cb46..68911f9 100644 --- a/exampleSite/content/page/about/index.md +++ b/exampleSite/content/page/about/index.md @@ -15,7 +15,7 @@ menu: icon: user --- -Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows. +Written in Go, Hugo is an open source static site generator available under the [Apache License 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows. Hugo makes use of a variety of open source projects including: @@ -29,6 +29,6 @@ Hugo is ideal for blogs, corporate websites, creative portfolios, online magazin Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases. -Websites built with Hugo are extremelly fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider. +Websites built with Hugo are extremely fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider. Learn more and contribute on [GitHub](https://github.com/gohugoio). diff --git a/layouts/partials/head/opengraph/provider/base.html b/layouts/partials/head/opengraph/provider/base.html index 3e51d37..60da962 100644 --- a/layouts/partials/head/opengraph/provider/base.html +++ b/layouts/partials/head/opengraph/provider/base.html @@ -32,8 +32,8 @@ {{- end -}} {{- else -}} - {{- if not .Site.LastChange.IsZero -}} - + {{- if not .Site.Lastmod.IsZero -}} + {{- end -}} {{- end -}}