34 lines
1.0 KiB
HTML
34 lines
1.0 KiB
HTML
{{ define "main" }}
|
|
<!-- List the 5 last posts if the home_post_list parameters is set to true -->
|
|
{{ if .Site.Params.home_post_list }}
|
|
<section class="home-posts-list">
|
|
<h2>{{ i18n "lastPosts" }}</h2>
|
|
<!--
|
|
Ranges regular pages by the publish date, in reverse order, to display the
|
|
post titles of the section from most recent to older, and the category.
|
|
-->
|
|
{{ range first 5 .Site.RegularPages.ByPublishDate.Reverse }}
|
|
<article>
|
|
<a href="{{ .Permalink }}">
|
|
{{- .Title -}}
|
|
</a>
|
|
</article>
|
|
{{ end }}
|
|
</section>
|
|
{{ end }}
|
|
<section class="home-content">
|
|
<!-- Content for home.html, as a sort of list page,
|
|
is pulled from content/_index.md -->
|
|
{{.Content}}
|
|
{{ if .Site.Params.online }}
|
|
{{ partial "online" . }}
|
|
{{ end }}
|
|
{{ if .Site.Params.contactsPriv }}
|
|
{{ partial "perso" .}}
|
|
{{ end }}
|
|
{{ if .Site.Params.contactsPro }}
|
|
{{ partial "pro" . }}
|
|
{{ end }}
|
|
</section>
|
|
{{ end }}
|