template: Make projects sort by date

This commit is contained in:
jaseg 2023-10-06 14:35:32 +02:00
parent 9afd55a603
commit 2fd22e30ce
4 changed files with 6 additions and 4 deletions

View file

@ -1,5 +1,6 @@
---
title: Projects
hide_date: true
---
I maintain a number of open-source projects. Most of these I started out of some personal need or interest.
I strive to keep all of them up to date and maintained, so if you notice an issue with one of them, please

View file

@ -1,5 +1,6 @@
---
title: "KiMesh"
date: 2023-10-04T23:42:00+02:00
external_links:
- name: Sources
url: "https://git.jaseg.de/kimesh.git"

View file

@ -9,10 +9,10 @@
</div>
{{- end }}
{{- range site.Params.homepage_categories }}
{{- range $config := site.Params.homepage_categories }}
<h2>{{ .title }}</h2>
{{- range first .count (where site.RegularPages "Section" "==" .key) }}
{{ partial "card.html" . }}
{{- range $entry := first $config.count (where site.RegularPages "Section" "==" $config.key) }}
{{ partial "card.html" $entry }}
{{- end }}
<div class="pagination-links">

View file

@ -1,6 +1,6 @@
<div class="card">
{{- if .Title }}<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>{{- end }}
{{- if .Date }}<strong>{{ .Date.Format "2006-01-02" }}</strong>{{- end }}
{{- if and .Date (not (isset (index .Ancestors 0).Params "hide_date")) }}<strong>{{ .Date.Format "2006-01-02" }}</strong>{{- end }}
<div class="summary">
{{ .Summary | safeHTML }}