hugo-theme-introduction/layouts/blog/list.html

29 lines
1 KiB
HTML
Raw Normal View History

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">
2018-07-20 12:45:36 +00:00
{{ if .Site.Params.home.showLatest | default true }}
2018-07-01 08:09:29 +00:00
<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 "Jan 02, 2006") }}{{ end }}
2018-07-01 08:09:29 +00:00
<h3 class="title is-3 strong-post-title">
2018-07-20 15:27:32 +00:00
<a href="{{ .Permalink }}">
2020-05-31 18:12:41 +00:00
{{ .Title | markdownify }}
2018-07-01 08:09:29 +00:00
</a>
</h3>
<div class="markdown">
{{ .Summary }}
{{ if .Truncated }}
2018-07-20 15:27:32 +00:00
<a href="{{ .Permalink }}">{{ i18n "index_blog_readMore" . }}</a>
2018-07-01 08:09:29 +00:00
{{ 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>
2018-07-03 11:21:06 +00:00
{{ partialCached "blog/li.html" . }}
2018-06-25 13:03:18 +00:00
</div>
2018-07-01 08:09:29 +00:00
{{ end }}