diff --git a/.github/ISSUE_TEMPLATE/bug.yaml b/.github/ISSUE_TEMPLATE/bug.yaml index d7d76567..0bd72e88 100644 --- a/.github/ISSUE_TEMPLATE/bug.yaml +++ b/.github/ISSUE_TEMPLATE/bug.yaml @@ -39,8 +39,8 @@ body: label: Hugo Version description: What version of Hugo are you running? options: - - Hugo >= 0.146.0 (Recommended - Minimum version required for PaperMod) - - Hugo < 0.146.0 (Incompatible - Not recommended to build PaperMod on lower versions) + - Hugo >= 0.158.0 (Recommended - Minimum version required for PaperMod) + - Hugo < 0.158.0 (Incompatible - Not recommended to build PaperMod on lower versions) validations: required: true - type: input diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml index 3f239dd2..c297ce03 100644 --- a/.github/workflows/build-check.yml +++ b/.github/workflows/build-check.yml @@ -23,7 +23,7 @@ on: hugoVersion: description: "Hugo Version" required: false - default: "0.146.0" + default: "0.158.0" defaults: run: @@ -34,7 +34,7 @@ jobs: runs-on: ubuntu-latest env: # min_version from theme.toml - HUGO_VERSION: ${{ github.event.inputs.hugoVersion || '0.146.0' }} + HUGO_VERSION: ${{ github.event.inputs.hugoVersion || '0.158.0' }} steps: - name: Install Hugo CLI run: | diff --git a/README.md b/README.md index 41b898af..0b538e63 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ **A fast, clean, and responsive theme for [Hugo](https://gohugo.io/).** [![hugo-papermod](https://img.shields.io/badge/Hugo--Themes-@PaperMod-blue)](https://themes.gohugo.io/themes/hugo-papermod/) -[![Minimum Hugo Version](https://img.shields.io/static/v1?label=Hugo&message=v0.146.0%2B&color=blue&logo=hugo)](https://github.com/gohugoio/hugo/releases/tag/v0.146.0) +[![Minimum Hugo Version](https://img.shields.io/static/v1?label=Hugo&message=v0.158.0%2B&color=blue&logo=hugo)](https://github.com/gohugoio/hugo/releases/tag/v0.158.0) [![Discord](https://img.shields.io/discord/971046860317921340?label=Discord&logo=discord)](https://discord.gg/ahpmTvhVmp) > Based on [hugo-paper](https://github.com/nanxiaobei/hugo-paper/tree/4330c8b12aa48bfdecbcad6ad66145f679a430b3), with additional features and customization options. diff --git a/layouts/_partials/header.html b/layouts/_partials/header.html index 1abc9f5a..311f1d50 100644 --- a/layouts/_partials/header.html +++ b/layouts/_partials/header.html @@ -67,10 +67,10 @@ {{- range . -}} {{- if ne $lang .Lang }}
  • - - {{- if (and site.Params.displayFullLangName (.Language.LanguageName)) }} - {{- .Language.LanguageName | emojify -}} + + {{- if (and site.Params.displayFullLangName (.Language.Label)) }} + {{- .Language.Label | emojify -}} {{- else }} {{- .Lang | title -}} {{- end -}} diff --git a/layouts/_partials/templates/opengraph.html b/layouts/_partials/templates/opengraph.html index 8c765d13..2fff74d6 100644 --- a/layouts/_partials/templates/opengraph.html +++ b/layouts/_partials/templates/opengraph.html @@ -12,7 +12,7 @@ {{- end }} -{{- with or .Params.locale site.Language.LanguageCode }} +{{- with or .Params.locale site.Language.Locale }} {{- end }} diff --git a/layouts/_partials/templates/schema_json.html b/layouts/_partials/templates/schema_json.html index 8a4efb41..e5250bfb 100644 --- a/layouts/_partials/templates/schema_json.html +++ b/layouts/_partials/templates/schema_json.html @@ -76,7 +76,7 @@ ], "articleBody": {{ .Content | safeJS | htmlUnescape | plainify }}, "wordCount" : "{{ .WordCount }}", - "inLanguage": {{ .Language.Lang | default "en-us" }}, + "inLanguage": {{ .Language.Name | default "en-us" }}, {{ if .Params.cover.image -}} "image": {{- if (ne .Params.cover.relative true) -}} diff --git a/layouts/_partials/translation_list.html b/layouts/_partials/translation_list.html index bccdbe95..308ba659 100644 --- a/layouts/_partials/translation_list.html +++ b/layouts/_partials/translation_list.html @@ -9,8 +9,8 @@ {{- range .Translations }}
  • - {{- if (and site.Params.displayFullLangName (.Language.LanguageName)) }} - {{- .Language.LanguageName | emojify -}} + {{- if (and site.Params.displayFullLangName (.Language.Label)) }} + {{- .Language.Label | emojify -}} {{- else }} {{- .Lang | title -}} {{- end -}} diff --git a/layouts/baseof.html b/layouts/baseof.html index c5775991..bfa7fedb 100644 --- a/layouts/baseof.html +++ b/layouts/baseof.html @@ -1,15 +1,15 @@ -{{- if lt hugo.Version "0.146.0" }} -{{- errorf "=> hugo v0.146.0 or greater is required for hugo-PaperMod to build " }} +{{- if lt hugo.Version "0.158.0" }} +{{- errorf "=> hugo v0.158.0 or greater is required for hugo-PaperMod to build " }} {{- end -}} {{- $theme := site.Params.defaultTheme | default "auto" }} {{- if eq $theme "dark" }} - + {{- else if eq $theme "light" }} - + {{- else }} - + {{- end }} diff --git a/layouts/rss.xml b/layouts/rss.xml index e48b24f3..0aa19c4e 100644 --- a/layouts/rss.xml +++ b/layouts/rss.xml @@ -45,7 +45,7 @@ {{- end }} Hugo - {{ site.Language.LanguageCode }}{{ with $authorEmail }} + {{ site.Language.Locale }}{{ with $authorEmail }} {{.}}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with $authorEmail }} {{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with site.Copyright }} {{ . | markdownify | plainify | strings.TrimPrefix "© " }}{{ end }}{{ if not .Date.IsZero }} diff --git a/theme.toml b/theme.toml index 758f8280..834ff1e7 100644 --- a/theme.toml +++ b/theme.toml @@ -54,7 +54,7 @@ features = [ "multiple-authors", "post-nav-links" ] -min_version = "0.146.0" +min_version = "0.158.0" [author] name = "Aditya Telange"