diff options
author | Curtis Timson <curt@live.co.uk> | 2018-02-17 01:30:22 +0300 |
---|---|---|
committer | Curtis Timson <curt@live.co.uk> | 2018-02-17 01:30:22 +0300 |
commit | 99d4fe2ec7164e60f3b737e0758d862feefdeb67 (patch) | |
tree | 38ecc7f9fa3f50b27f86504ba0dd772d04e922a6 /layouts | |
parent | 46cc519857c12be45cd2b8617683366dda8214f2 (diff) |
:sparkles: Hide portfolio section on home if no items
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/index.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html index 8c247a4..02931b3 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -28,13 +28,14 @@ <!-- Main --> <div id="main-wrapper"> <div class="container"> + {{ $portfolioItems := where .Site.Pages "Type" "portfolio" }} + {{ if $portfolioItems }} <div class="row"> <div class="12u"> - {{ partial "portfolio.html" . }} - </div> </div> + {{ end }} {{ $blogPaginator := .Paginate (where .Data.Pages "Type" .Site.Params.Blog.foldername) 2 }} {{ if $blogPaginator.TotalNumberOfElements }} <div class="row"> |