Skip to content

Commit

Permalink
⚡ Limit initial article view-count
Browse files Browse the repository at this point in the history
  • Loading branch information
KenAJoh committed Dec 6, 2023
1 parent 0ff4e50 commit 1e47c1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aksel.nav.no/website/pages/gp/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const query = groq`
description
}
},
"articles": *[_type == "aksel_artikkel" && $slug in undertema[]->tema->slug.current] | order(publishedAt desc) {
"articles": *[_type == "aksel_artikkel" && $slug in undertema[]->tema->slug.current][0...9] | order(publishedAt desc) {
heading,
ingress ,
"undertema": undertema[]->title,
Expand Down
2 changes: 1 addition & 1 deletion aksel.nav.no/website/pages/gp/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const query = groq`
{
${heroNavQuery},
${innholdstypeQuery},
"articles": *[_type == "aksel_artikkel" && defined(undertema)] | order(publishedAt desc){
"articles": *[_type == "aksel_artikkel" && defined(undertema)][0...9] | order(publishedAt desc){
heading,
ingress ,
"undertema": undertema[]->title,
Expand Down

0 comments on commit 1e47c1b

Please sign in to comment.