1
mirror of https://github.com/jlelse/GoBlog synced 2024-06-01 18:54:27 +00:00
GoBlog/templates/custom/blogroll.gohtml
2020-10-13 13:40:16 +02:00

21 lines
576 B
Plaintext

{{ define "title" }}
<title>Blogroll - {{ .Blog.Title }}</title>
{{ end }}
{{ define "main" }}
<main>
{{ $opmlJson := index ( jsonFile "data/opml.json" ) "outline" }}
{{ range $opmlJson }}
{{ md (printf "%s %s" "##" ._text) }}
<ul>
{{ range (index . "outline") }}
<li><a href="{{ ._htmlUrl }}" target="_blank">{{ ._title }}</a> (<a href="{{ ._xmlUrl }}" target="_blank">Feed</a>)</li>
{{ end }}
</ul>
{{ end }}
</main>
{{ end }}
{{ define "blogroll" }}
{{ template "base" . }}
{{ end }}