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 }} {{ $paginator := .Paginate .Data.Pages }}
{{ range $paginator.Pages }} {{ range $paginator.Pages }}
<section class="section">
{{ .Render "summary" }} {{ .Render "summary" }}
</section>
{{ end }} {{ end }}
{{ partial "pagination" . }} {{ partial "pagination" . }}

View File

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

View File

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