Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/2-REC/hugo-myportfolio-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Severin <severinderek@gmail.com>2019-01-02 19:55:10 +0300
committerDerek Severin <severinderek@gmail.com>2019-01-02 19:55:10 +0300
commitc0fba36856082064aa8d594c39a1060df0a61392 (patch)
treee3b39ef679b0da8340418443536c047e72aa6077
parentee7b6006dea418a8d8e2bb91e5926c1d832279f6 (diff)
Fixed bug when no subsections in a project section
-rw-r--r--layouts/partials/sections/projects.html12
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>