template: Make projects sort by date
This commit is contained in:
parent
9afd55a603
commit
2fd22e30ce
4 changed files with 6 additions and 4 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Projects
|
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 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
|
I strive to keep all of them up to date and maintained, so if you notice an issue with one of them, please
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: "KiMesh"
|
title: "KiMesh"
|
||||||
|
date: 2023-10-04T23:42:00+02:00
|
||||||
external_links:
|
external_links:
|
||||||
- name: Sources
|
- name: Sources
|
||||||
url: "https://git.jaseg.de/kimesh.git"
|
url: "https://git.jaseg.de/kimesh.git"
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,10 @@
|
||||||
</div>
|
</div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- range site.Params.homepage_categories }}
|
{{- range $config := site.Params.homepage_categories }}
|
||||||
<h2>{{ .title }}</h2>
|
<h2>{{ .title }}</h2>
|
||||||
{{- range first .count (where site.RegularPages "Section" "==" .key) }}
|
{{- range $entry := first $config.count (where site.RegularPages "Section" "==" $config.key) }}
|
||||||
{{ partial "card.html" . }}
|
{{ partial "card.html" $entry }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
<div class="pagination-links">
|
<div class="pagination-links">
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<div class="card">
|
<div class="card">
|
||||||
{{- if .Title }}<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>{{- end }}
|
{{- 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">
|
<div class="summary">
|
||||||
{{ .Summary | safeHTML }}
|
{{ .Summary | safeHTML }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue