Automated Liquid Fix in Blog Pipeline | Generated by AI
Both repos clean and pushed. Summary:
What was done:
-
Fixed ~160 blog files in
jekyll-ai-blogacross_posts/andnotes/— wrapped unprotected{{ }}/{% %}patterns with{% raw %}...{% endraw %}tags so the Jekyll build passes (0 Liquid Exceptions, 28K site files generated) -
Added auto-fix to the
wwnote pipeline —fix_liquid_raw_tags()increate_note_utils.pyis called automatically inwrite_note()before every note is saved. It:- Detects fenced code blocks with
{{ }}or{% %} - Wraps them with
{% raw %}...{% endraw %} - Skips already-wrapped blocks (no double-wrapping)
- Logs:
[fix] Wrapped N code block(s) with raw/endraw tags for Liquid safety
- Detects fenced code blocks with
This means future notes created via ww note will never produce Liquid build errors again — the fix is automatic at creation time, before the note ever hits the Jekyll build.