{{ define "main" }} {{ partial "header.html" . }}
{{ .Content }} {{ $items := getJSON "https://api.brandonrozek.com/postroll"}} {{ if not $items }} {{ warnf "Failed to fetch postroll items from API." }} {{ $items = dict }} {{ end }} {{ with $items.Ok }}{{ range . }}

{{ .title }} by {{ .author }}

{{ .comment }}

{{ end }}{{ end }}
{{ end }}