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
disableKinds:
- taxonomy
- taxonomyTerm
paginate: 15
pagination:
pagerSize: 15
taxonomies:
author: authors

8
layouts/blog/single.html

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

2
layouts/partials/common/opengraph.html

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

Loading…
Cancel
Save