You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
620 B
24 lines
620 B
{{ define "main" }}
|
|
<!-- the index.html layout is used only to render the home page -->
|
|
<div>
|
|
<article class="bio">
|
|
<!--
|
|
<header>
|
|
<h1>{{ .Title }}</h1>
|
|
{{ if .Params.description }}
|
|
<h2>{{ .Params.description }}</h2>
|
|
{{ end }}
|
|
</header>
|
|
-->
|
|
{{ .Content }}
|
|
</article>
|
|
<article class="article-list">
|
|
<header>
|
|
<h1>{{ i18n "recent_articles" }}</h1>
|
|
</header>
|
|
{{ range first 5 (sort ((.Site.GetPage "/blog").Pages) "Date").Reverse }}
|
|
{{- partial "article-headline.html" (dict "current" . "parent" $.Page) -}}
|
|
{{ end }}
|
|
</article>
|
|
</div>
|
|
{{ end }}
|