change frontmatter disableReadingTime to readingTime

This commit is contained in:
Ahmad Helaly 2022-10-21 19:38:07 +03:00 committed by GitHub
parent 4e6930061d
commit 64f5585c4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@
</div>
{{ end }}
{{ if and (not (.Params.DisableReadTime | default false)) (.Site.Params.article.readingTime)}}
{{ if (.Params.readingTime | default (.Site.Params.article.readingTime)) }}
<div>
{{ partial "helper/icon" "clock" }}
<time class="article-time--reading">
@ -55,4 +55,4 @@
</div>
</footer>
{{ end }}
</div>
</div>