Skip to content

Commit

Permalink
Not fail when folders doesn't exist. (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanfox1985 authored Sep 30, 2022
1 parent bc73bc0 commit 1af54bd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/partials/carousel.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{ if default true .Site.Params.CarouselHomepage.enable }}
{{ if isset .Site.Data "carousel" }}
{{ if gt (len .Site.Data.carousel) 0 }}
<section>
<div class="home-carousel">
Expand Down Expand Up @@ -34,3 +35,4 @@ <h1>{{ .title | safeHTML }}</h1>
</section>
{{ end }}
{{ end }}
{{ end }}
2 changes: 2 additions & 0 deletions layouts/partials/clients.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{ if isset .Site.Params "clients" }}
{{ if .Site.Params.clients.enable }}
{{ if isset .Site.Data "clients" }}
{{ if gt (len .Site.Data.clients) 0 }}
<section class="bar background-gray no-mb">
<div class="container">
Expand Down Expand Up @@ -38,3 +39,4 @@ <h2>{{ .Site.Params.clients.title | markdownify }}</h2>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
2 changes: 2 additions & 0 deletions layouts/partials/features.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{ if isset .Site.Params "features" }}
{{ if .Site.Params.features.enable }}
{{ if isset .Site.Data "features" }}
{{ if gt (len .Site.Data.features) 0 }}
<section class="bar background-white">
<div class="container">
Expand Down Expand Up @@ -44,3 +45,4 @@ <h3>{{ $element.name | markdownify }}</h3>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
2 changes: 2 additions & 0 deletions layouts/partials/testimonials.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{ if isset .Site.Params "testimonials" }}
{{ if .Site.Params.testimonials.enable }}
{{ if isset .Site.Data "testimonials" }}
{{ if gt (len .Site.Data.testimonials) 0 }}
<section class="bar background-pentagon no-mb">
<div class="container">
Expand Down Expand Up @@ -51,3 +52,4 @@ <h5>{{ .name }}</h5>
{{ end }}
{{ end }}
{{ end }}
{{ end }}

0 comments on commit 1af54bd

Please sign in to comment.