mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-12-22 18:15:45 +00: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 }}
|
||||
{{ .Render "summary" }}
|
||||
<section class="section">
|
||||
{{ .Render "summary" }}
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "pagination" . }}
|
||||
|
|
|
@ -2,22 +2,17 @@
|
|||
<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 }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<br />
|
||||
</a>
|
|
@ -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 }}
|
Loading…
Reference in a new issue