Browse Source
Fixed deprecated warnings (#648)
* Fixed deprecated hugo pagination warnings.
pull/655/head
Noam Alum
7 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
8 additions and
9 deletions
-
config.yaml
-
layouts/blog/single.html
-
layouts/partials/common/opengraph.html
|
|
@ -3,9 +3,9 @@ languageCode: en-us |
|
|
|
title: AlmaLinux |
|
|
|
disableKinds: |
|
|
|
- taxonomy |
|
|
|
- taxonomyTerm |
|
|
|
|
|
|
|
paginate: 15 |
|
|
|
pagination: |
|
|
|
pagerSize: 15 |
|
|
|
|
|
|
|
taxonomies: |
|
|
|
author: authors |
|
|
|
|
|
@ -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 }} |
|
|
|
|
|
@ -47,14 +47,13 @@ |
|
|
|
{{ end }}{{ end }} |
|
|
|
{{- end }} |
|
|
|
|
|
|
|
{{- /* Deprecate site.Social.facebook_admin in favor of site.Params.social.facebook_admin */}} |
|
|
|
{{- $facebookAdmin := "" }} |
|
|
|
{{- with site.Params.social }} |
|
|
|
{{- if reflect.IsMap . }} |
|
|
|
{{- $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 }} |
|
|
|