Skip to content

Commit

Permalink
🐛 layouts(index): Show "team" type posts on index page (#174)
Browse files Browse the repository at this point in the history
This commit shows the "team" template type on the index page of the
site. The use case for this change is so that the total cohorts view
still appears when navigating to `/inventory/cohorts/` and it also
appears as its own category on the site homepage alongside other topics.

This contributes to unblocking unicef/inventory#136.

Signed-off-by: Justin W. Flory (he/him) [UNICEF Innovation] <[email protected]>

Signed-off-by: Justin W. Flory (he/him) [UNICEF Innovation] <[email protected]>
  • Loading branch information
jwflory authored Sep 17, 2022
1 parent 6e780a1 commit c5dc4f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h2 class="section-title">{{ i18n "topics_title" | safeHTML }}</h2>
</div>
{{ "<!-- topic-item -->" | safeHTML }}
{{ range .Site.Pages }}
{{if or (eq .Type "docs") (eq .Type "dpg-standard")}}
{{ if or (eq .Type "docs") (eq .Type "dpg-standard") (eq .Type "team") }}
<div class="col-lg-4 col-sm-6 mb-4">
<a href="{{ .Permalink }}" class="px-4 py-5 bg-white shadow text-center d-block match-height cardLink">
{{ with .Params.icon}}<i class="{{.}} icon text-primary d-block mb-4"></i>{{end}}
Expand Down

0 comments on commit c5dc4f0

Please sign in to comment.