Skip to main content
  • John Kemp-Cruz
  • Blog
  • Projects
  • GitHub
  • Mastodon

Blog

Subscribe
  • Atom feed
  • JSON feed
  • RSS feed
  • Creating Drafts In Eleventy

    About 9 minutes to read

    Several static site generators and content management systems have built in functionality to mark posts as drafts. Eleventy (11ty) isn't one of these but fortunately it is possible to implement.

    The core concept is to use two front matter keys — permalink and eleventyExcludeFromCollections — to hide pages from users…

    Continue reading Creating Drafts In Eleventy
  • Building A Robust Toggle Menu

    About 8 minutes to read

    I recently noticed that my site's speed index had shot up dramatically on the Eleventy leaderboards and managed to track the issue down to my mobile navigation menu. I was deliberately leaving the menu open until JavaScript kicked in to keep it accessible but this had the unfortunate side effect…

    Continue reading Building A Robust Toggle Menu
  • Using SASS With Eleventy

    About 5 minutes to read

    Eleventy (11ty) is a super customisable static site generator that at its core transforms template language into HTML. However, template languages like Liquid and Nunjucks are designed to output HTML rather than CSS so how does Eleventy handle styling?

    Let me show you how I compile SASS automatically and display…

    Continue reading Using SASS With Eleventy

Site built using Eleventy and knowledge from several wonderful people.

Source code available at GitHub.

© John Kemp-Cruz 2018–2025