Tweaked list and summary pages. Updated homepage.

This commit is contained in:
Chris 2018-01-05 22:21:22 -05:00
parent b0192b2ec2
commit 288105a484
3 changed files with 17 additions and 18 deletions

View File

@ -2,7 +2,9 @@
{{ $paginator := .Paginate .Data.Pages }}
{{ range $paginator.Pages }}
{{ .Render "summary" }}
<section class="section">
{{ .Render "summary" }}
</section>
{{ end }}
{{ partial "pagination" . }}

View File

@ -2,17 +2,13 @@
<div class="card">
<div class="card-image">
<figure class="image is-2by1">
<img src="{{ .Site.BaseURL }}/images/banners/{{ .Params.Banner | default (print .File.BaseFileName ".png") }}"
alt="Placeholder image">
<img src="{{ .Site.BaseURL }}/images/banners/{{ .Params.Banner | default (print .File.BaseFileName " .png ") }}" alt="">
</figure>
</div>
<div class="card-content">
<div class="media">
<div class="media-content">
<p class="title is-4">{{ .Title }}</p>
<p class="subtitle is-6">{{ .Date.Format "January 02 2006" }}</p>
</div>
</div>
<p class="title is-4">{{ .Title }}</p>
<p class="subtitle is-6">{{ .Date.Format "January 02 2006" }} by {{ .Params.author }}</p>
<div class="content">
{{ .Summary }}
@ -20,4 +16,3 @@
</div>
</div>
</a>
<br />

View File

@ -1,9 +1,11 @@
{{ define "main" }}
{{ $paginator := .Paginate (where .Data.Pages "Section" "entry") 3 }}
{{ define "main" }} {{ $paginator := .Paginate (where .Data.Pages "Section" "entry") 3 }}
{{ range $paginator.Pages }}
{{ .Render "summary" }}
{{ end }}
<div class="columns">
{{ range $paginator.Pages }}
<div class="column">
{{ .Render "summary" }}
</div>
{{ end }}
</div>
{{ partial "pagination" . }}
{{ end }}
{{ partial "pagination" . }} {{ end }}