2018-07-23 04:00:30 +00:00
|
|
|
{{ with .Site.GetPage "/blog" }}
|
2018-06-27 09:30:11 +00:00
|
|
|
<div class="section" id="{{ .Title | urlize }}">
|
2018-06-25 13:03:18 +00:00
|
|
|
<!-- Begin Blog container -->
|
|
|
|
<div class="container">
|
2018-07-20 12:45:36 +00:00
|
|
|
{{ if .Site.Params.home.showLatest | default true }}
|
2018-06-27 00:10:46 +00:00
|
|
|
<h2 class="title is-2 has-text-centered">{{ i18n "index_blog_latestPosts" . }}</h2>
|
2018-06-27 00:33:38 +00:00
|
|
|
{{ range first 1 .Pages.ByPublishDate.Reverse }}
|
2018-09-16 03:22:05 +00:00
|
|
|
<div class="summary">{{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }}{{ end }}
|
2020-05-31 18:12:41 +00:00
|
|
|
<h3 class="title is-3 latest-post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h3>
|
2018-06-25 13:03:18 +00:00
|
|
|
<div class="markdown">
|
|
|
|
{{ .Summary }}
|
|
|
|
{{ if .Truncated }}
|
2018-07-20 15:27:32 +00:00
|
|
|
<a href="{{ .Permalink }}">{{ i18n "index_blog_readMore" . }}</a>
|
2018-06-25 13:03:18 +00:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2018-08-24 19:54:45 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-24 08:31:47 +00:00
|
|
|
{{ if .Site.Params.home.showAllPosts }}
|
|
|
|
<div class="section" id="all-posts">
|
|
|
|
<div class="container">
|
|
|
|
<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>
|
|
|
|
</div>
|
|
|
|
{{ else }}
|
2018-06-27 00:10:46 +00:00
|
|
|
<div class="container has-text-centered top-pad">
|
2018-07-20 15:27:32 +00:00
|
|
|
<a href="{{ .Permalink }}">{{ i18n "index_blog_allPosts" . }}</a>
|
2018-06-27 00:10:46 +00:00
|
|
|
</div>
|
2020-12-24 08:31:47 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<!-- End Blog container -->
|
|
|
|
{{ partial "top-icon.html" . }}
|
|
|
|
|
2018-06-25 13:03:18 +00:00
|
|
|
<!-- End Blog section -->
|
|
|
|
<div class="container"><hr></div>
|
2017-03-13 09:14:02 +00:00
|
|
|
{{ end }}
|