diff --git a/main-site/hugo.yaml b/main-site/hugo.yaml index cf3ccfa..9fccd2a 100644 --- a/main-site/hugo.yaml +++ b/main-site/hugo.yaml @@ -25,3 +25,6 @@ Params: - name: Dev Blog description: Dev stuff uri: /dev + - name: Files + description: Links to files + uri: /files diff --git a/main-site/themes/temper/layouts/_default/list.html b/main-site/themes/temper/layouts/_default/list.html index df96075..ee456ef 100644 --- a/main-site/themes/temper/layouts/_default/list.html +++ b/main-site/themes/temper/layouts/_default/list.html @@ -7,32 +7,55 @@
{{ .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 }} + + +{{ .Description }}
- {{ else }} -{{ .Content }}
- {{ end }} - {{ if .Page.Params.Thumbnail }} - - - - {{ end }} + {{ $opt := mod $i $opts }} +{{ .Description }}
+ {{ else }} +{{ .Content }}
+ {{ end }} + {{ if .Page.Params.Thumbnail }} + + + + {{ end }} +