Skip to content

Commit

Permalink
Don’t show sections on the main page, only products
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewshadura committed Nov 6, 2022
1 parent 12dcb8b commit 3a72268
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ <h2>{{ .title | markdownify }}</h2>
{{ end }}
</div>
{{ range first 6 (where site.RegularPages "Type" "products") }}
{{ if not .IsSection }}
{{ $image := "" }}
{{ if .Params.Image }}
{{ $image = .Params.Image | absURL }}
Expand Down Expand Up @@ -200,6 +201,7 @@ <h2>{{ .title | markdownify }}</h2>
</div>
</div>
{{ end }}
{{ end }}
</div>
</div>
</section>
Expand Down

0 comments on commit 3a72268

Please sign in to comment.