Improve Blogroll template

This commit is contained in:
Jan-Lukas Else 2020-11-08 23:02:20 +01:00
parent 5ea44630d7
commit 7d86c8c1cf
1 changed files with 3 additions and 1 deletions

View File

@ -1,9 +1,11 @@
{{ define "title" }}
<title>Blogroll - {{ .Blog.Title }}</title>
<title>{{ .Data.Title }} - {{ .Blog.Title }}</title>
{{ end }}
{{ define "main" }}
<main>
<h1>{{ .Data.Title }}</h1>
{{ md .Data.Description }}
{{ $opmlJson := index ( jsonFile "data/opml.json" ) "outline" }}
{{ range $opmlJson }}
{{ md (printf "%s %s" "##" ._text) }}