Blog
Articles about web development, design, performance, and related topics. Subscribe via RSS to keep up with new articles, or browse by topic.
- Adding Staticman comments to a Jekyll site
Add moderated comments to a Jekyll site by storing Staticman submissions in the site's Git repository.
- Google Analytics alternatives
Compare Google Analytics alternatives for product analytics, self-hosting, real-time traffic, and behaviour reports.
- Changing the text cursor with CSS caret-color
Change the colour of the text insertion cursor with the CSS caret-color property.
- Making a device vibrate from a web page
Trigger a short vibration or vibration pattern from JavaScript with the Vibration API.
- Adding HTTP response headers to a Netlify site
Configure security and caching response headers for a static site hosted on Netlify.
- CSS variables make repeated values easier to manage
Reuse values, provide fallbacks, and update themes with CSS custom properties.
- Using the HTML autofocus attribute
Use the HTML autofocus attribute to focus a form control when a page loads.
- Set link underline styles with text-decoration
Set a text decoration's line, style, and colour with one CSS declaration.
- Centering flexbox items
Center flexbox items horizontally, vertically, or in both directions with two CSS properties.
- Use autocomplete=new-password for new password fields
Tell browsers that a password field is for choosing a new password rather than entering an existing one.
- Using CSS without getting in the way of accessibility
Practical CSS choices for readable text, visible focus, reduced motion, and layouts that survive zoom.
- Adding Outlook-only CSS to an HTML email
Load Outlook-specific email styles with Microsoft conditional comments.
- Embedding video with the HTML video element
Embed video with HTML, provide multiple sources, and add a subtitle track.
- Set up Rouge syntax highlighting in Jekyll
Enable Rouge syntax highlighting in Jekyll and connect its generated HTML to a compatible CSS theme.
- Checking editable text with HTML spellcheck
Use the HTML spellcheck attribute to request spelling and grammar checks in editable elements.
- Using small caps with CSS font-variant
Use the CSS font-variant property to enable typographic variants such as small caps.
- Load page-specific CSS and JavaScript in Jekyll
Load CSS and JavaScript only on the Jekyll pages that need them with front matter and Liquid.
- Add reading time to Jekyll without a plugin
Estimate and display a Jekyll post's reading time with Liquid, without installing a plugin.
- Add an RSS feed to a Jekyll blog
Add an Atom feed to a Jekyll blog with the official jekyll-feed plugin.
- WordPress maintenance plugins: a 2018 reference
A practical 2018 list of WordPress plugins for backups, SEO, caching, testing, accessibility, and security.