{{ define "main" }} {{ partial "minimal-navbar.html" }} {{ $path := "" }} {{ with .File }} {{ $path = .Path }} {{ if eq .Dir "feed/" }}
/feed
{{ else if eq .Dir "dev/" }}
/dev
{{ else if eq .Dir "files/" }}
/files
{{ end }} {{ end }}

{{ .Content }}

{{ if hasPrefix $path "files" }} {{ $colors := slice "cyan" "yellow" "pink"}} {{ $opts := len $colors }} {{ range $i, $top := readDir "content/files/" }} {{ if eq $top.IsDir false }} {{ continue }} {{ end }}
{{ $top.Name }}
{{ range $file := print "content/files/" $top.Name | readDir }} {{ end }}
{{ 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 }} {{ if .Page.Params.Thumbnail }} {{ end }}
{{ end }} {{ end }}