1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-09-19 11:52:11 +00:00

Actually use local bookmarks file

This commit is contained in:
Rohan Kumar 2023-11-29 11:54:48 -08:00
parent 2796526310
commit 12b542c351
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -7,8 +7,7 @@
Timestamp format: <code>YYYY-MM-DD HH:MM</code>, as per <cite><a href="https://www.ietf.org/rfc/rfc3339.txt">RFC 3339</a></cite>
</p>
<ol>
{{ $bookmarks := getJSON "https://seirdy.one/data/bookmarks.json" -}}
{{ range sort $bookmarks "tags" "desc" -}}
{{ range sort (index .Site.Data "bookmarks") "tags" "desc" -}}
{{ $bookmark := . -}}
{{- $tags := split $bookmark.tags "," -}}
{{- $firstTag := index $tags 0 }}