diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 72674fb..2dd9163 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v2.4.0 - name: Setup Hugo uses: peaceiris/actions-hugo@v2.5.0 diff --git a/layouts/index.html b/layouts/index.html index 8096ce5..d66bf9e 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,6 +1,7 @@ {{ define "main" }} {{ $headless := .Site.GetPage "/homepage" }} {{ $sections := $headless.Resources.ByType "page" }} +{{ $sections := cond .Site.BuildDrafts $sections (where $sections "Draft" "==" false) }}