diff options
-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> |