Skip to content

Commit af26fc5

Browse files
committed
Re-enable staging configuration with working build foundation
1 parent 9bc6b9d commit af26fc5

2 files changed

Lines changed: 20 additions & 16 deletions

File tree

.github/workflows/preview.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ jobs:
3333
ls -1 _posts/*.md 2>/dev/null | head -5 || echo " (none)"
3434
3535
- name: Build with Jekyll
36-
run: bundle exec jekyll build
36+
run: |
37+
# Remove CNAME to avoid conflicts with preview
38+
rm -f CNAME
39+
# Build with preview config that includes staging
40+
bundle exec jekyll build --config _config.yml,_config_preview.yml
3741
env:
3842
JEKYLL_ENV: production
3943

_config_preview.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
# Preview-specific configuration
22
# This extends the main _config.yml for preview builds
33

4-
# Collections for staging posts - COMMENTED OUT FOR TESTING
5-
# collections:
6-
# staging:
7-
# output: true
8-
# permalink: /:collection/:name/
4+
# Collections for staging posts
5+
collections:
6+
staging:
7+
output: true
8+
permalink: /:collection/:name/
99

10-
# Make staging posts appear in site.posts - COMMENTED OUT FOR TESTING
11-
# defaults:
12-
# - scope:
13-
# path: "staging"
14-
# type: "staging"
15-
# values:
16-
# layout: "post"
10+
# Make staging posts appear in site.posts
11+
defaults:
12+
- scope:
13+
path: "staging"
14+
type: "staging"
15+
values:
16+
layout: "post"
1717

18-
# Include staging directory in the build - COMMENTED OUT FOR TESTING
19-
# include:
20-
# - staging
18+
# Include staging directory in the build
19+
include:
20+
- staging

0 commit comments

Comments
 (0)