mirror of https://github.com/jlelse/GoBlog
Improve Blogroll template
This commit is contained in:
parent
5ea44630d7
commit
7d86c8c1cf
|
@ -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) }}
|
||||
|
|
Loading…
Reference in New Issue