Skip to content

Commit

Permalink
Use how-to guide weight variable (#3577)
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel authored Oct 16, 2024
1 parent d42feb8 commit 694ec52
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions layouts/_default/list.typesense.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@
{{- end -}}

{{- if .Weight -}}
{{- if eq .Section "how-tos" -}}
{{- $.Scratch.Set "featured" 9999 -}}
{{- else -}}
{{- $.Scratch.Set "featured" .Weight -}}
{{- end -}}
{{- $.Scratch.Set "featured" .Weight -}}
{{- else -}}
{{- $.Scratch.Set "featured" 9999 -}}
{{- end -}}
Expand Down

0 comments on commit 694ec52

Please sign in to comment.