{{ 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 }}

{{ $colors := slice "cyan" "yellow" "pink"}} {{ if hasPrefix $path "files" }} {{ range $folder, $files := .Params.folders }} {{ $opt := mod (len $folder) (len $colors) }}
{{ $folder }}
{{ range $file := $files }} {{ end }}
{{ end }} {{ end }} {{ range $i, $page := .Pages.ByDate.Reverse }} {{ $opt := mod $i (len $colors) }}
{{ .Title }}
{{ if .Page.Params.Article }}

{{ .Description }}

{{ else }}

{{ .Content }}

{{ end }} {{ if .Page.Params.Thumbnail }} {{ end }}
{{ end }} {{ end }}