Browse Source

Migrate deprecated stuff

WARN  DEPRECATED: Kind "taxonomyterm" used in disableKinds is deprecated, use "taxonomy" instead.
ERROR deprecated: site config key paginate was deprecated in Hugo v0.128.0 and subsequently removed. Use pagination.pagerSize instead .
ERROR deprecated: .Site.Social was deprecated in Hugo v0.124.0 and subsequently removed. Implement taxonomy 'social' or use .Site.Params.Social instead.
ERROR deprecated: .Page.PrevPage was deprecated in Hugo v0.123.0 and subsequently removed. Use .Page.Prev instead.
ERROR deprecated: .Page.NextPage was deprecated in Hugo v0.123.0 and subsequently removed. Use .Page.Next instead.
pull/786/head
Koichiro Iwao 2 months ago
parent
commit
d9ba7f5e8f
  1. 4
      config.yaml
  2. 8
      layouts/blog/single.html
  3. 2
      layouts/partials/common/opengraph.html

4
config.yaml

@ -3,9 +3,9 @@ languageCode: en-us
title: AlmaLinux title: AlmaLinux
disableKinds: disableKinds:
- taxonomy - taxonomy
- taxonomyTerm
paginate: 15 pagination:
pagerSize: 15
taxonomies: taxonomies:
author: authors author: authors

8
layouts/blog/single.html

@ -46,8 +46,8 @@
{{ if .PrevPage }} {{ if .Prev }}
<a class="al-blog-previous-button " href="{{ .PrevPage.RelPermalink }}"> <a class="al-blog-previous-button " href="{{ .Prev.RelPermalink }}">
<span>« {{ i18n "Previous" }}</span> <span>« {{ i18n "Previous" }}</span>
</a> </a>
@ -56,8 +56,8 @@
{{ if .NextPage }} {{ if .Next }}
<a class="al-blog-next-button " href="{{ .NextPage.RelPermalink }}"> <a class="al-blog-next-button " href="{{ .Next.RelPermalink }}">
<span> {{ i18n "Next" }} »</span> <span> {{ i18n "Next" }} »</span>
</a> </a>
{{ end }} {{ end }}

2
layouts/partials/common/opengraph.html

@ -54,7 +54,7 @@
{{- $facebookAdmin = .facebook_admin }} {{- $facebookAdmin = .facebook_admin }}
{{- end }} {{- end }}
{{- else }} {{- else }}
{{- with site.Social.facebook_admin }} {{- with site.Params.Social.facebook_admin }}
{{- $facebookAdmin = . }} {{- $facebookAdmin = . }}
{{- warnf "The social key in site configuration is deprecated. Use params.social.facebook_admin instead." }} {{- warnf "The social key in site configuration is deprecated. Use params.social.facebook_admin instead." }}
{{- end }} {{- end }}

Loading…
Cancel
Save