Skip to main content


Introducing πŸ“₯ 11ty/import: a CLI tool to import content as static files

πŸ‘‹πŸ» Easily export all of your WordPress posts
πŸ‘€ Show recent 🐘 Mastodon posts on your web site without expensive embeds
βœ… Make a CMS out of anything on the web using PESOS
πŸ”Ž Repeatable and resume-able using local caching for API requests, and a lot more!

Try it out: github.com/11ty/eleventy-impor…

in reply to Eleventy 🎈 v3.0.0

maybe it’s just Friday, but what is PESOS? Googling only results in websites about the Mexican currency
This entry was edited (1 week ago)
in reply to Andy Blum

@andyblum just opened that tab myself indieweb.org/PESOS

β€œPESOS is an acronym for Publish Elsewhere, Syndicate (to your) Own Site”

This entry was edited (1 week ago)
in reply to Eleventy 🎈 v3.0.0

a while back I was working on pulling through WP posts via graphql, would this be a better way of doing that? Or is this more of a one-off than trigger-build-on-update?
in reply to Eleventy 🎈 v3.0.0

nice! I second the question about other post types, can it handle more than just the main post feed?
in reply to Eleventy 🎈 v3.0.0

I don’t suppose this could be somehow used to persist the fetch plugin cache? πŸ₯Ί

In my particular case I’m imagining a directory of json files fetched incrementally from an api that could then be gathered into a collection.

I hope to chart some game stat history for the kid. πŸ•ΉοΈ πŸ“ˆ

This entry was edited (6 days ago)
in reply to Ollie Boermans

@ollicle ahβ€”do you mean commit the fetch plugin cache to git? I don’t think that’s quite the right use case for thisβ€”it’s unlikely we’ll ever tackle that one generally given the riskiness of accidentally exposing private information in API calls.

However, persisting entries from a data source (after a bit of cleaning) is what this plugin does, yeah!

in reply to Eleventy 🎈 v3.0.0

the latter for sure. Brilliant!

Writing data alongside fetch myself has proven to be literally loopy.

in reply to Eleventy 🎈 v3.0.0

is it able to import from a folder of html and images - whilst resolving links and images when it outputs?
in reply to Jon

@scrwd what kind of folder of html/images are you thinking? most of the pieces are there and we’re motivated to add more import types!
@Jon
in reply to Eleventy 🎈 v3.0.0

it's not the specific output format of any tool, but I've built a lot of Jekyll sites with a lot of liquid and plugins etc. so it would be cool to just be able to point your tool at the output and have it bring it into Eleventyland with HTML back to Markdown and and with images in subfolders all tidied into a single assets folder without breaking any links. I was looking at something myself using unified but I really got stuck with image relocation and link resolution haha
⇧