Skip to content

Commit

Permalink
only include blog partial if any articles exist
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea rota committed Dec 4, 2018
1 parent 76de512 commit e9b1b06
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 @@ -7,7 +7,9 @@

{{ partial "about.html" . }}
{{ partial "gallery.html" . }}
{{ if not (eq (len (where .Data.Pages "Section" "blog")) 0) }}
{{ partial "blog.html" . }}
{{ end }}
{{ partial "contact.html" . }}

</main>
Expand Down

0 comments on commit e9b1b06

Please sign in to comment.