Maintainance: Fixed hugo deprecation

This commit is contained in:
Rahat Zaman 2024-10-02 11:41:15 -06:00
parent eeac3af99b
commit 0adc161f5b
4 changed files with 5 additions and 5 deletions

View File

@ -12,7 +12,8 @@ buildFuture = true
copyright = "©{year}, All Rights Reserved"
timeout = 10000
enableEmoji = true
paginate = 13
[pagination]
pagerSize = 13
rssLimit = 100
enableGitInfo = false
@ -37,7 +38,6 @@ googleAnalytics = ""
[outputs]
home = ["HTML", "RSS", "SearchIndex"]
section = ["HTML", "RSS", "SearchIndex"]
taxonomyTerm = ["HTML", "RSS", "SearchIndex"]
taxonomy = ["HTML", "RSS", "SearchIndex"]
[outputFormats]

View File

@ -1,7 +1,7 @@
{{ $isPad := or (in (slice "archive" "posts" "page") .Type) }}
{{ $isPad = or $isPad (and (eq .Kind "page") (not (in (slice "about" "contact" "publication") .Type))) }}
{{ $isPad = or $isPad (and (eq .Kind "section") (eq .Type "publication")) }}
{{ $isPad = or $isPad (and (eq .Type "tags") (ne .Kind "taxonomyTerm")) }}
{{ $isPad = or $isPad (and (eq .Type "tags") (ne .Kind "taxonomy")) }}
{{ if eq ($.Param "languagedir") "rtl" }}
<div class="wrapper__left hide" data-pad="{{ $isPad }}" dir="rtl">

View File

@ -1,7 +1,7 @@
{{ $isPad := or (in (slice "archive" "posts" "page") .Type) }}
{{ $isPad = or $isPad (and (eq .Kind "page") (not (in (slice "about" "contact" "publication") .Type))) }}
{{ $isPad = or $isPad (and (eq .Kind "section") (eq .Type "publication")) }}
{{ $isPad = or $isPad (and (eq .Type "tags") (ne .Kind "taxonomyTerm")) }}
{{ $isPad = or $isPad (and (eq .Type "tags") (ne .Kind "taxonomy")) }}
{{ if ne ($.Param "languagedir") "rtl" }}
<div class="wrapper__right hide" data-pad="{{ $isPad }}" dir="ltr">

View File

@ -7,7 +7,7 @@
{{ range .Site.Params.custom_css }}
{{ $custom_template := resources.Get . }}
{{ if $custom_template }}
{{ $custom_style := $custom_template | resources.ToCSS | resources.Minify }}
{{ $custom_style := $custom_template | css.Sass | resources.Minify }}
<link rel="stylesheet" href="{{ $custom_style.RelPermalink }}">
{{ end }}
{{ end }}