Posts

Showing posts with the label Cappie

From Zero to Hero A Walkthrough of the Jekyll Directory for GitHub Pages Beginners

Image
If you're a beginner, a Jekyll project folder might seem a little intimidating at first. You'll see a mix of files and folders, some with underscores and some without, and it's not immediately obvious what each one does. This guide is a step-by-step walkthrough designed to take you from a complete beginner to someone who confidently understands the Jekyll directory structure. We will break down each key file and folder, explaining its role in a simple and straightforward way. By the time you're done, you'll know exactly where to put your content, how to change your site's settings, and where to find your website's templates. This foundational knowledge is all you need to start building your own website on GitHub Pages and move from zero to hero. Table of Contents Your First Steps with Jekyll The Root Directory What You See First The _config.yml File Your Site's Settings Posts, Pages, and index.md The Special Fold...

How to keep dark mode fast

Image
Table of contents Why performance matters for dark mode Common performance pitfalls Critical CSS strategy Fast theme detection and FOIT prevention Minimizing assets and safe swapping Efficient JavaScript patterns Image and media optimizations Testing and measuring performance Quick production checklist FAQ Why performance matters for dark mode Dark mode should feel instant and unobtrusive. If toggling theme adds measurable delay, causes layout shifts , or increases page load time, users perceive the site as sluggish and unreliable. For Mediumish — a content-first theme — readers expect fast rendering and smooth interactions. A slow dark mode can lead to higher bounce rates, poorer user engagement, and lower perceived quality. Performance matters not only for UX but also for SEO: slower pages often score lower on Core Web Vitals and search rankings. The goal is to add dark mode while keeping initial paint , interaction re...