2018-07-01 08:09:29 +00:00
|
|
|
{{ define "main" }}
|
|
|
|
<div class="container markdown top-pad">
|
|
|
|
{{ .Content }}
|
2018-06-25 13:03:18 +00:00
|
|
|
</div>
|
2018-07-01 08:09:29 +00:00
|
|
|
<div class="container">
|
|
|
|
{{ if .Site.Params.showLatest }}
|
|
|
|
<h2 class="title is-2 top-pad">{{ i18n "index_blog_latestPosts" . }}</h2>
|
|
|
|
{{ range first 1 .Pages.ByPublishDate.Reverse }}
|
|
|
|
<div class="summary">{{ .Date.Format (.Site.Params.dateForm | default "Jan 02, 2006") }}
|
|
|
|
<h3 class="title is-3 strong-post-title">
|
|
|
|
<a href="{{ .RelPermalink }}">
|
|
|
|
{{ .Title }}
|
|
|
|
</a>
|
|
|
|
</h3>
|
|
|
|
<div class="markdown">
|
|
|
|
{{ .Summary }}
|
|
|
|
{{ if .Truncated }}
|
|
|
|
<a href="{{ .RelPermalink }}">{{ i18n "index_blog_readMore" . }}</a>
|
|
|
|
{{ end }}
|
2018-06-27 00:10:46 +00:00
|
|
|
</div>
|
2018-06-25 13:03:18 +00:00
|
|
|
</div>
|
2018-07-01 08:09:29 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
<h2 class="title is-2 top-pad">{{ i18n "index_blog_allPosts" . }}</h2>
|
|
|
|
<ul>
|
|
|
|
{{ range .Pages.ByPublishDate.Reverse }}
|
|
|
|
<li class="post-item">
|
|
|
|
<span><a href="{{ .Permalink }}">{{ .Title }}</a></span> - <span>{{ .Date.Format (.Site.Params.dateform | default "Jan 02, 2006") }}</span>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
2018-06-25 13:03:18 +00:00
|
|
|
</div>
|
2018-07-01 08:09:29 +00:00
|
|
|
{{ end }}
|