2021-09-25 20:52:01 -05:00
|
|
|
{{ define "main" }}
|
2022-04-29 19:09:26 -05:00
|
|
|
{{ with .Content }}
|
2022-04-29 23:54:45 -05:00
|
|
|
<div class="homepage-content">
|
|
|
|
{{ . }}
|
|
|
|
</div>
|
2022-04-29 19:09:26 -05:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if .Site.Params.homepageLatestPosts }}
|
2022-05-04 22:02:36 -05:00
|
|
|
<div class="homepage-latest-posts">
|
2022-04-29 23:54:45 -05:00
|
|
|
<hr>
|
|
|
|
<h1>
|
|
|
|
{{ i18n "latest_posts" }}
|
|
|
|
{{ partial "rss-link.html" . }}
|
|
|
|
</h1>
|
2022-04-29 19:09:26 -05:00
|
|
|
|
2022-04-29 23:54:45 -05:00
|
|
|
{{ with (.Paginate .Site.RegularPages).Pages }}
|
|
|
|
<div class="page-list">
|
|
|
|
<ul>
|
|
|
|
{{ range . }}
|
|
|
|
<li>{{ .Render "summary/post" }}</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{{ else }}
|
|
|
|
<div>
|
|
|
|
{{ i18n "no_posts" }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2022-04-29 19:09:26 -05:00
|
|
|
|
2022-04-29 23:54:45 -05:00
|
|
|
{{ partial "pagination.html" . }}
|
|
|
|
</div>
|
2022-04-29 19:09:26 -05:00
|
|
|
{{ end }}
|
2021-09-25 20:52:01 -05:00
|
|
|
{{ end }}
|