2018-07-01 08:09:29 +00:00
|
|
|
{{ define "main" }}
|
2022-02-14 12:42:27 +00:00
|
|
|
<div class="container markdown top-pad">
|
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
|
|
|
<div class="container">
|
|
|
|
{{ if .Site.Params.home.showLatest | default true }}
|
|
|
|
<h2 class="title is-2 top-pad">{{ i18n "index_blog_latestPosts" . }}</h2>
|
|
|
|
{{ range first 1 .Pages.ByPublishDate.Reverse }}
|
|
|
|
<div class="summary">
|
|
|
|
{{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default ":date_medium") }}{{ end }}
|
|
|
|
<h3 class="title is-3 strong-post-title">
|
|
|
|
<a href="{{ .Permalink }}">
|
|
|
|
{{ .Title | markdownify }}
|
|
|
|
</a>
|
|
|
|
</h3>
|
|
|
|
<div class="markdown">
|
|
|
|
{{ .Summary }}
|
|
|
|
{{ if .Truncated }}
|
|
|
|
<a href="{{ .Permalink }}">{{ i18n "index_blog_readMore" . }}</a>
|
2020-12-24 08:31:47 +00:00
|
|
|
{{ end }}
|
2022-02-14 12:42:27 +00:00
|
|
|
</div>
|
2018-06-25 13:03:18 +00:00
|
|
|
</div>
|
2022-02-14 12:42:27 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
<h2 class="title is-2 top-pad">{{ i18n "index_blog_allPosts" . }}</h2>
|
|
|
|
{{if .Site.Params.home.allPostsArchiveFormat}}
|
|
|
|
{{ partialCached "blog/archive.html" .}}
|
|
|
|
{{else}}
|
|
|
|
{{ partialCached "blog/li.html" . }}
|
|
|
|
{{end}}
|
|
|
|
</div>
|
2018-07-01 08:09:29 +00:00
|
|
|
{{ end }}
|