diff options
author | Derek Severin <severinderek@gmail.com> | 2019-01-02 19:55:10 +0300 |
---|---|---|
committer | Derek Severin <severinderek@gmail.com> | 2019-01-02 19:55:10 +0300 |
commit | c0fba36856082064aa8d594c39a1060df0a61392 (patch) | |
tree | e3b39ef679b0da8340418443536c047e72aa6077 | |
parent | ee7b6006dea418a8d8e2bb91e5926c1d832279f6 (diff) |
Fixed bug when no subsections in a project section
-rw-r--r-- | layouts/partials/sections/projects.html | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/layouts/partials/sections/projects.html b/layouts/partials/sections/projects.html index 19017e9..6262d5a 100644 --- a/layouts/partials/sections/projects.html +++ b/layouts/partials/sections/projects.html @@ -12,12 +12,14 @@ {{ end }} <div class="container-fluid"> <div class="row no-gutter"> - {{/* Sort the list */}} - {{ partial "utils/ordered-list.html" (dict "list" .Sections "params" .Params "scratch" .Scratch) }} - {{ range (.Scratch.Get "list") }} - {{ .Render "limage" }} + {{ if .Sections }} + {{/* Sort the list */}} + {{ partial "utils/ordered-list.html" (dict "list" .Sections "params" .Params "scratch" .Scratch) }} + {{ range (.Scratch.Get "list") }} + {{ .Render "limage" }} + {{ end }} + {{ .Scratch.Delete "list" }} {{ end }} - {{ .Scratch.Delete "list" }} </div> </div> </section> |