Skip to content

Commit

Permalink
fix: home article feed
Browse files Browse the repository at this point in the history
  • Loading branch information
eallion committed Nov 26, 2024
1 parent 6f15816 commit 8fee823
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion layouts/partials/home/custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ <h2 class="mt-8 text-2xl font-extrabold mb-10">{{ i18n "shortcode.recent_article
<section class="home-article w-full grid gap-4 sm:grid-cols-2 md:grid-cols-3">
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
{{ $paginatedPages := .Paginate $pages }}
{{ $filteredPages := after 1 $paginatedPages.Pages }}
{{ $filteredPages := after 0 $paginatedPages.Pages }}
{{ range first 9 $filteredPages }}
{{ partial "article-link/card.html" . }}
{{ end }}
Expand Down
4 changes: 2 additions & 2 deletions wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = "eallion-com-cf-pages-origin"
pages_build_output_dir = "./public"

[vars]
HUGO_VERSION = "v0.139.0"
HUGO_VERSION = "v0.139.2"

[env.production.vars]
HUGO_VERSION = "v0.139.0"
HUGO_VERSION = "v0.139.2"

0 comments on commit 8fee823

Please sign in to comment.