Improve readability, add recent news to home page

This commit is contained in:
Marc Riera Irigoyen 2018-04-07 14:37:10 +02:00
parent 9559d86d48
commit 2732deaa79
11 changed files with 60 additions and 35 deletions

View file

@ -0,0 +1,15 @@
{{ $recentupdatessection := .Site.Params.recentupdates | default "blog"}}
{{ with .Site.GetPage "section" $recentupdatessection }}
<div id="recent-updates">
<h2>{{ i18n "latestUpdates" }}</h2>
{{ range (first 3 (where .Pages "Section" $recentupdatessection)) }}
<p class="timestamp">{{ .Date.Format "2006-01-02" }} <a href="{{ .Permalink }}">{{ .Title }}</a></p>
{{ end }}
</div>
{{ end }}