mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-11-25 19:55:44 +01:00
Tweaked list and summary pages. Updated homepage.
This commit is contained in:
parent
b0192b2ec2
commit
288105a484
@ -2,7 +2,9 @@
|
||||
{{ $paginator := .Paginate .Data.Pages }}
|
||||
|
||||
{{ range $paginator.Pages }}
|
||||
<section class="section">
|
||||
{{ .Render "summary" }}
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "pagination" . }}
|
||||
|
@ -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="subtitle is-6">{{ .Date.Format "January 02 2006" }} by {{ .Params.author }}</p>
|
||||
|
||||
<div class="content">
|
||||
{{ .Summary }}
|
||||
@ -20,4 +16,3 @@
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<br />
|
||||
|
@ -1,9 +1,11 @@
|
||||
{{ define "main" }}
|
||||
{{ $paginator := .Paginate (where .Data.Pages "Section" "entry") 3 }}
|
||||
{{ define "main" }} {{ $paginator := .Paginate (where .Data.Pages "Section" "entry") 3 }}
|
||||
|
||||
<div class="columns">
|
||||
{{ range $paginator.Pages }}
|
||||
<div class="column">
|
||||
{{ .Render "summary" }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ partial "pagination" . }}
|
||||
{{ end }}
|
||||
{{ partial "pagination" . }} {{ end }}
|
Loading…
Reference in New Issue
Block a user