Stefan Baumgartner 6/25/2020

11ty: Generate Twitter cards automatically

Read Original

This article explains a technical process for automatically generating Twitter card images (as SVGs) for every blog post using the Eleventy static site generator. The author details how to leverage Eleventy's pagination feature with a size of 1 to remap a post collection, creating a unique SVG file for each article that displays its title and date for social media sharing.

11ty: Generate Twitter cards automatically

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

2
Designing Design Systems
TkDodo Dominik Dorfmeister 2 votes
4
Introducing RSC Explorer
Dan Abramov 1 votes
6
Fragments Dec 11
Martin Fowler 1 votes
7
Adding Type Hints to my Blog
Daniel Feldroy 1 votes
8
Refactoring English: Month 12
Michael Lynch 1 votes
10