Fix likes

This commit is contained in:
JP Hastings-Spital 2024-05-14 11:36:36 +01:00
parent 822930613f
commit 2a31ca5e54
3 changed files with 9 additions and 7 deletions

View file

@ -5,7 +5,6 @@ likeOf: https://sli.dev/
references:
https://sliDev/:
url: https://sli.dev/
children:
- type: item
- type: item
name: Slidev
summary: Presentation Slides for Developers
---

View file

@ -3,4 +3,4 @@ title: Likes
emoji: 💙
---
All the sites I've 'liked' since I started recording these via micropub in May 2024.
All the pages from other sites I've _liked_ since I started recording them here in May 2024.

View file

@ -20,9 +20,12 @@
<div class="posts-group">
<div class="post-year">{{ .Key }}</div>
{{ range $i, $page := .Pages }}
<a href="{{$page.Params.likeOf}}" target="_blank">{{ partial "page-title.txt" $page }}</a>{{ if lt $i (sub (len .Pages) 1) }}, {{ end }}
{{ end }}
<p>
{{- $pages := .Pages -}}
{{ range $i, $page := $pages }}
<a href="{{$page.Params.likeOf}}" target="_blank">{{ partial "page-title.txt" $page }}</a>{{ if lt $i (sub (len $pages) 1) }}, {{ end }}
{{ end }}
</p>
</div>
{{ end }}
{{ partial "pagination-list.html" . }}