Use Pinboard RSS

JSON feed is busted.
This commit is contained in:
David Eisinger
2023-08-07 13:29:31 -04:00
parent 7cfeac6139
commit 8d67dc4531

View File

@@ -3,12 +3,12 @@
<h3>Links (from <a href="https://pinboard.in/u:DCE">Pinboard</a>)</h3> <h3>Links (from <a href="https://pinboard.in/u:DCE">Pinboard</a>)</h3>
{{ with getJSON "https://feeds.pinboard.in/json/u:DCE/" }} {{ with resources.GetRemote "https://feeds.pinboard.in/rss/u:DCE/" | transform.Unmarshal }}
<ul> <ul>
{{ range first 10 . }} {{ range .item | first 10 }}
<li> <li>
<a href="{{ .u }}">{{ .d }}</a> <span class="nowrap">({{ dateFormat "2006-01-02" .dt }})</span> <a href="{{ .link }}">{{ .title }}</a> <span class="nowrap">({{ dateFormat "2006-01-02" .date }})</span>
<p>{{ .n }}</p> <p>{{ .description }}</p>
</li> </li>
{{ end }} {{ end }}
</ul> </ul>