Pagina as notícias 12 de cada vez

This commit is contained in:
Hugo Peixoto 2023-11-15 11:19:27 +00:00
parent 0d90bf9ed5
commit cb61942668
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ defaultContentLanguageInSubdir = false
removePathAccents = true # Workaround for https://github.com/gohugoio/hugo/issues/5687 removePathAccents = true # Workaround for https://github.com/gohugoio/hugo/issues/5687
summaryLength = 30 # Listing summary length in words. Also, see `abstract_length` in `params.toml`. summaryLength = 30 # Listing summary length in words. Also, see `abstract_length` in `params.toml`.
paginate = 10 # Number of i13321tems per page in paginated lists. paginate = 10 # Number of items per page in paginated lists.
nableEmoji = true nableEmoji = true
footnotereturnlinkcontents = "<sup>^</sup>" footnotereturnlinkcontents = "<sup>^</sup>"
ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"] ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]

View File

@ -3,7 +3,7 @@
<h1 class='news-list-title body-width'>Notícias</h1> <h1 class='news-list-title body-width'>Notícias</h1>
<ul class="news-list body-width"> <ul class="news-list body-width">
{{ $paginator := .Paginate .Data.Pages }} {{ $paginator := .Paginate .Data.Pages 12 }}
{{ range $paginator.Pages }} {{ range $paginator.Pages }}
<li> <li>
<a class='cover' href="{{ .Permalink }}"> <a class='cover' href="{{ .Permalink }}">