|
|
@ -7,7 +7,7 @@
|
|
|
|
{{ range $paginator.Pages }}
|
|
|
|
{{ range $paginator.Pages }}
|
|
|
|
{{ $title := .Title }}
|
|
|
|
{{ $title := .Title }}
|
|
|
|
{{ $summary := .Summary }}
|
|
|
|
{{ $summary := .Summary }}
|
|
|
|
<section class="item">
|
|
|
|
<!-- <section class="item">
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<h1 class="title"><a href='{{ .RelPermalink }}'>{{ $title }}</a></h1>
|
|
|
|
<h1 class="title"><a href='{{ .RelPermalink }}'>{{ $title }}</a></h1>
|
|
|
|
<div class="date">{{ .Date.Format "Jan 2" }}</div>
|
|
|
|
<div class="date">{{ .Date.Format "Jan 2" }}</div>
|
|
|
@ -15,8 +15,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
<div class="summary">{{ $summary | plainify | htmlUnescape }}</div>
|
|
|
|
<div class="summary">{{ $summary | plainify | htmlUnescape }}</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ with .Resources.ByType "image" }}
|
|
|
|
{{ with .Resources.ByType "image" }}
|
|
|
|
{{ $image := index . 1 }}
|
|
|
|
{{ $image := index . 1 }}
|
|
|
|
{{ range . }}
|
|
|
|
{{ range . }}
|
|
|
@ -33,6 +31,49 @@
|
|
|
|
<img src="{{ $image.RelPermalink }}" alt="{{ $title }}">
|
|
|
|
<img src="{{ $image.RelPermalink }}" alt="{{ $title }}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
</section> -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<section class="item">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ if .Resources.ByType "image" }}
|
|
|
|
|
|
|
|
<!-- with cover image -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ $images := .Resources.ByType "image" }}
|
|
|
|
|
|
|
|
{{ $image := index $images 1 }}
|
|
|
|
|
|
|
|
{{ range .Resources.ByType "image" }}
|
|
|
|
|
|
|
|
{{ if eq .Name "images/cover.png" }}
|
|
|
|
|
|
|
|
{{ $image = . }}
|
|
|
|
|
|
|
|
{{ else if eq .Name "images/cover.jpg" }}
|
|
|
|
|
|
|
|
{{ $image = . }}
|
|
|
|
|
|
|
|
{{ else if eq .Name "images/cover.jpeg" }}
|
|
|
|
|
|
|
|
{{ $image = . }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="left">
|
|
|
|
|
|
|
|
<h1 class="title"><a href='{{ .RelPermalink }}'>{{ $title }}</a></h1>
|
|
|
|
|
|
|
|
<div class="summary">{{ $summary | plainify | htmlUnescape }}</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="right">
|
|
|
|
|
|
|
|
<img src="{{ $image.RelPermalink }}" alt="{{ $title }}">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ else }}
|
|
|
|
|
|
|
|
<!-- no cover image -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<h1 class="title"><a href='{{ .RelPermalink }}'>{{ $title }}</a></h1>
|
|
|
|
|
|
|
|
<div class="date">{{ .Date.Format "Jan 2" }}</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="summary">{{ $summary | plainify | htmlUnescape }}</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|