{{ define "main" }} {{ partial "minimal-navbar.html" }} {{ $path := "" }} {{ with .File }} {{ $path = .Path }} {{ if eq .Dir "feed/" }}
/feed
{{ else if eq .Dir "dev/" }}
/dev
{{ end }} {{ end }} {{ $colors := slice "cyan" "yellow" "pink"}} {{ $opts := len $colors }} {{ range $i, $page := .Pages.ByDate.Reverse }} {{ $opt := mod $i $opts }}
{{ .Title }}
{{ if .Page.Params.Article }}

{{ .Description }}

{{ else }}

{{ .Content }}

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