website

Personal website
git clone https://github.com/michaelneuper/website.git
README | Files | Log | Refs

commit 37c536ef4f1a227e3f9b8fd2d393f4963874a80c
parent 0193054c1a28f9d3d2501b3b397f531c0b4a57e8
Author: Michael Neuper <73108749+michaelneuper@users.noreply.github.com>
Date:   Tue, 13 Dec 2022 20:38:10 +0200

Show only 5 recent posts and add - to dates

Diffstat:
Mlayouts/_default/list.html | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/layouts/_default/list.html b/layouts/_default/list.html @@ -9,10 +9,10 @@ <ul> {{ $pages := .Pages }} - {{ if .IsHome }}{{ $pages = first 10 .Site.RegularPages }}{{ end }} + {{ if .IsHome }}{{ $pages = first 5 .Site.RegularPages }}{{ end }} {{ range (where $pages "Section" "!=" "") }} <li> - <span class="date">{{ .Date.Format "2006 Jan 02" }}</span> + <span class="date">{{ .Date.Format "2006 Jan 02" }}</span> - <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a> </li> {{ end }}