1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 12:52:10 +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> 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> </p>
<ol> <ol>
{{ $bookmarks := getJSON "https://seirdy.one/data/bookmarks.json" -}} {{ range sort (index .Site.Data "bookmarks") "tags" "desc" -}}
{{ range sort $bookmarks "tags" "desc" -}}
{{ $bookmark := . -}} {{ $bookmark := . -}}
{{- $tags := split $bookmark.tags "," -}} {{- $tags := split $bookmark.tags "," -}}
{{- $firstTag := index $tags 0 }} {{- $firstTag := index $tags 0 }}