Updated homepage to display two blog posts + two tweets.

This commit is contained in:
Chris 2018-07-10 22:54:06 -04:00
parent 6d765ffd2a
commit 53ccbab040

View file

@ -43,14 +43,18 @@
{{ define "main" }}
<section class="section">
{{ $pag := .Paginate (where .Data.Pages "Type" "entry") 4 }}
<div class="columns is-multiline">
{{ range $pag.Pages }}
{{ range first 2 (where (where .Data.Pages ".Params.twitter" "==" nil) "Type" "entry") }}
<div class="column is-half">
{{ partial "entry/summary" . }}
</div>
{{ end }}
{{ range first 2 (where (where .Data.Pages ".Params.twitter" "!=" nil) "Type" "entry") }}
<div class="column is-half">
{{ partial "entry/summary" . }}
</div>
{{ end }}
{{ end }}
</div>
<div class="has-text-centered">