Add Pinboard links

This commit is contained in:
David Eisinger
2023-01-09 23:52:50 -05:00
parent 7949911256
commit 68b37be4a3
2 changed files with 18 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
{{ define "main" }} {{ define "main" }}
{{ .Content }} {{ .Content }}
{{- partial "pinboard.html" . -}}
{{ end }} {{ end }}

View File

@@ -0,0 +1,16 @@
<section>
<hr>
{{ with getJSON "https://feeds.pinboard.in/json/u:DCE/" }}
<h3>Links (from <a href="https://pinboard.in/u:DCE">Pinboard</a>)</h3>
<ul>
{{ range first 5 . }}
<li>
<a href="{{ .u }}">{{ .d }}</a> ({{ dateFormat "2006-01-02" .dt}})
<p>{{ .n }}</p>
</li>
{{ end }}
</ul>
{{ end }}
</section>