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 @@
/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 }} + {{ $opt := mod $i $opts }} +
+ +
{{ .Title }}
+
+
+ {{ if .Page.Params.Article }} +

{{ .Description }}

+ {{ else }} +

{{ .Content }}

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