Skip to content

Commit

Permalink
Only return regular pages for the blog
Browse files Browse the repository at this point in the history
Signed-off-by: Travis Beckham <[email protected]>
  • Loading branch information
travisbeckham committed Sep 12, 2024
1 parent 7c9b285 commit a08428d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linkerd.io/layouts/index.searchindex.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{- $docs := where site.Pages "Section" "eq" site.Params.latest_linkerd2_stable_version -}}
{{- $currentTime := now }}
{{- $lastYear := $currentTime.AddDate -1 0 0 -}}
{{- $blog := where site.Pages "Section" "eq" "blog" -}}
{{- $blog := where site.RegularPages "Section" "eq" "blog" -}}
{{- $blog := where $blog "Date" ">" $lastYear -}}
{{- $pages := $docs | union $blog -}}
{{- $pages = where $pages "Params.noIndex" "ne" true -}}
Expand Down

0 comments on commit a08428d

Please sign in to comment.