3

A Bare-Bones Eleventy Template for Glitch

 1 year ago
source link: https://www.raymondcamden.com/2022/11/25/a-bare-bones-eleventy-template-for-glitch
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.


Raymond Camden

DevRel at Adobe, Star Wars nerd, Web/Serverless hacker, lover of good beer and good books. Oh, and cats.



November 25, 2022

A Bare-Bones Eleventy Template for Glitch

A Bare-Bones Eleventy Template for Glitch

A few weeks ago I blogged about a simple Alpine.js template for Glitch projects. I'm still new to Glitch and wanted to give it a whirl with an Eleventy demo I wanted to share. Glitch has an Eleventy template, but it's a bit verbose. It sets up a basic blog with sample posts and such, and that's great to learn, but if you already know Eleventy, you may prefer to start off a bit simpler.

With that in mind, I created this repository: https://github.com/cfjedimaster/glitch-eleventy It defines an .eleventy.js file that specifies an input and output directory. It sets up a very basic HTML layout and an empty index page that uses it. I also used Liquid for my demo whereas the Glitch-provided one uses Nunjucks.

I was tempted to add a very basic style sheet (by basic I mean empty) and ensure Eleventy copied it to the output, but wasn't sure how often I'd use that in demos. As always, I'm open to suggestions (and PRs!) on this, but my goal is to keep this as slim as possible. If folks create new projects based on my repo and have to spend time removing stuff, then that's a failure imo. Anyway, let me know if this is helpful!

Photo by Michael Dziedzic on Unsplash

Share: Twitter Facebook LinkedIn

Support this Content!

If you like this content, please consider supporting me. You can become a Patron, visit my Amazon wishlist, or buy me a coffee! Any support helps!

Want to get a copy of every new post? Use the form below to sign up for my newsletter.

Webmentions

1 Reply

Polyglot Developer
Reply by Polyglot Developer posted on 11/25/2022 at 11:00 PM
A Bare-Bones Eleventy Template for Glitch raymondcamden.com/2022/11/25/a-b…
source

9 Likes and 4 Retweets


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK