pull bookmarks from Marky
This commit is contained in:
@@ -71,5 +71,5 @@
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
{{- partial "pinboard.html" . -}}
|
||||
{{- partial "marky.html" . -}}
|
||||
{{ end }}
|
||||
|
||||
21
themes/v2/layouts/partials/marky.html
Normal file
21
themes/v2/layouts/partials/marky.html
Normal file
@@ -0,0 +1,21 @@
|
||||
<section>
|
||||
<hr>
|
||||
|
||||
<h3>Links (from <a href="https://bookmarks.davideisinger.com/u:dce">Marky</a>)</h3>
|
||||
|
||||
{{ with resources.GetRemote "https://bookmarks.davideisinger.com/u:dce.json" | transform.Unmarshal }}
|
||||
<ul>
|
||||
{{ range . | first 10 }}
|
||||
<li>
|
||||
<p>
|
||||
<a href="{{ .url}}">{{ .title }}</a>
|
||||
{{ if .referrer }} (<a href="{{ .referrer }}">via</a>){{ end }}
|
||||
<span class="nowrap">({{ dateFormat "2006-01-02" .updated_at }})</span>
|
||||
</p>
|
||||
|
||||
<blockquote><p>{{ .description }}</p></blockquote>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
</section>
|
||||
Reference in New Issue
Block a user