Unit 04 · lesson
Debug a Content-Model Failure
Content systems fail in different ways depending on the model.
Today you diagnose by asking what should have created this output?
Scenario A: data record missing
The project grid renders, but one project is absent.
Inspect:
_datastructure;- the loop scope;
- filters/conditions;
- generated HTML.
Scenario B: post absent from journal
Inspect:
_postsfilename convention;- front matter/date;
- whether the file is being recognized as a post;
site.postsoutput.
Scenario C: collection exists but project URL is missing
Inspect:
- collection declaration;
outputsetting;- server restart after config change;
project.url;- permalink configuration.
Scenario D: link points to wrong deployment path
Inspect:
- generated
href; relative_urluse;baseurlassumptions;- actual deployed root.
Lab
Create one bounded failure in the content model you use.
Do not break the whole site.
Record:
Expected model:
Missing/wrong output:
Source object that should have produced it:
First evidence:
Root cause:
Repair:
Verification:
Checkpoint
Your diagnosis should name the content model and the failed boundary, not merely say "Jekyll didn't generate it."