From 2b45531cf4b0e122449ee3ad876fe350bfcff065 Mon Sep 17 00:00:00 2001 From: Tim Eves Date: Tue, 29 Oct 2024 10:15:01 +0000 Subject: [PATCH 1/2] Turn on the experimental support for nested collections This would allow the Topics section on the site to be editable from the Decap CMS --- public/admin/config.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/admin/config.yml b/public/admin/config.yml index e0fbee4..ff15f27 100644 --- a/public/admin/config.yml +++ b/public/admin/config.yml @@ -44,6 +44,9 @@ collections: name: topic folder: src/content/docs/topics create: true + nested: + depth: 2 + summary: '{{title}}' fields: - { label: Title, name: title, widget: string } - { label: Description, name: description, widget: string } From d8d501c3c1c087aea572460de99fad243f3b3bf3 Mon Sep 17 00:00:00 2001 From: Tim Eves Date: Tue, 29 Oct 2024 11:39:25 +0000 Subject: [PATCH 2/2] Only try to deploy on main branch --- .github/workflows/deploy.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 2c22f30..0e4ce8e 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -40,6 +40,7 @@ jobs: deploy: needs: build + if: github.ref_name == 'main' runs-on: ubuntu-latest environment: name: github-pages