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. 48
      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

48
layouts/blog/single.html

@ -1,18 +1,18 @@
{{ define "main" }}
<div class="al-body-container" style="margin: auto;">
<section class="al-page-blog-post " dir="ltr">
<div class="container py-5">
<h1 class="al-section-title mb-3">{{ .Title}}</h1>
<article>
<div class="al-page-blog-author">
<div class="col d-flex align-items-start mb-3 mt-3 p-0">
{{ with .Params.author.image }}
<img src= "{{ . }}" class="rounded-circle" alt="profile">
{{ end }}
<div class="ml-3">
<h6 class="al-page-blog-author-name">
{{ $.Param "author.name" }}
@ -21,7 +21,7 @@
{{ $.Param "author.bio" }}
</p>
</div>
</div>
</div>
</div>
<div class="al-article-date d-flex align-items-center pb-4" title="" dir="ltr">
<i class="bi bi-calendar pe-1"></i>
@ -38,33 +38,33 @@
</div>
</article>
<div class="al-blog-pagination mt-3">
{{ 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>
</a>
{{ end }}
{{ 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 }}
</div>
</div>
</section>
@ -72,4 +72,4 @@
{{end}}
{{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