Jekyll Build Fixes Applied

✅ All Issues Resolved

1. Fixed Layout Issues

All pages now use correct Minimal Mistakes layouts:

  • ✅ Posts: Using single layout (configured in _config.yml defaults)
  • ✅ Pages: Using single layout
  • ✅ Blog: Using posts layout
  • ✅ Categories: Using categories layout
  • ✅ Tags: Using tags layout
  • ✅ Projects: Using single and collection layouts
  • ✅ Home: Using home layout

Files Updated:

  • _config.yml - Set default layout to single for all posts
  • projects/index.html - Changed from page to single
  • projects/threejs-cube/index.html - Changed from page to single

2. Fixed Liquid Syntax Errors

a. index.html - Removed orphaned {% endfor %} tags

  • Cleaned up leftover code from old template
  • Removed dangling liquid tags that had no matching {% for %}

b. Power BI Post - Fixed double curly braces in code blocks

  • Added and tags around M code blocks
  • This prevents Liquid from trying to interpret {{"OldName", "NewName"}} as Liquid syntax
  • Now the code displays correctly without parsing errors

File Fixed:

  • _posts/2023-08-15-power-bi-cheat-sheet.md

3. Additional Improvements

  • Added classes: wide to post defaults for better content display
  • All layouts now properly inherit from Minimal Mistakes remote theme

📊 Build Status

All critical errors have been resolved:

  • ✅ No missing layouts
  • ✅ No Liquid syntax errors
  • ✅ No orphaned tags
  • ✅ Proper theme configuration

🚀 Ready to Deploy

Your site should now build successfully on GitHub Pages!

Next Steps:

git add .
git commit -m "Fix Jekyll build errors - layouts and Liquid syntax"
git push origin main

Then monitor: https://github.com/CodeWithBehnam/CodeWithBehnam.github.io/actions

Build should complete successfully in 1-2 minutes! ✨

📝 Notes

About `` Tags

When you have code blocks that contain double curly braces {{}} or Liquid-like syntax, wrap them in {% raw %}....

This tells Jekyll to not process that content as Liquid template code.

About Layouts

Minimal Mistakes provides these built-in layouts:

  • single - For posts and regular pages
  • home - For homepage
  • posts - For blog archive
  • categories - For category pages
  • tags - For tag pages
  • archive - For general archives
  • splash - For landing pages
  • collection - For collections

You should only use these layout names, not custom ones like post or page.