mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-11-22 14:05:40 +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 }}
|
{{ $paginator := .Paginate .Data.Pages }}
|
||||||
|
|
||||||
{{ range $paginator.Pages }}
|
{{ range $paginator.Pages }}
|
||||||
{{ .Render "summary" }}
|
<section class="section">
|
||||||
|
{{ .Render "summary" }}
|
||||||
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ partial "pagination" . }}
|
{{ partial "pagination" . }}
|
||||||
|
@ -2,22 +2,17 @@
|
|||||||
<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">
|
<p class="title is-4">{{ .Title }}</p>
|
||||||
<div class="media-content">
|
<p class="subtitle is-6">{{ .Date.Format "January 02 2006" }} by {{ .Params.author }}</p>
|
||||||
<p class="title is-4">{{ .Title }}</p>
|
|
||||||
<p class="subtitle is-6">{{ .Date.Format "January 02 2006" }}</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{{ .Summary }}
|
{{ .Summary }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<br />
|
|
@ -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 }}
|
|
Loading…
Reference in New Issue
Block a user