Any Eleventy (or JSON?) nerds help a newb out one last time? I want to create a JSON file off my Eleventy based blog including the full content of every post on my site to use as an import. Here’s what I have so far.
Any Eleventy (or JSON?) nerds help a newb out one last time? I want to create a JSON file off my Eleventy based blog including the full content of every post on my site to use as an import. Here’s what I have so far.
@iChris This is how I'm doing the JSON feed for my site, should point you in the right direction (just noticed I'm using the excerpt instead of the full content but that's easy to switch).
@rknightuk Oh that looks perfect. Do you use that just to display it on your microblog or would that be appropriate for if I wanted to import it permanently into my microblog account? (i.e. my current 11ty blog will be replaced with Microblog)
@iChris I mostly use it for API access to my blog posts for various boring reasons but it should work for displaying in Micro.blog. For importing I'd recommend just importing the markdown files if you have them, I don't think MB supports JSON file import from what I can see.
@rknightuk Ah ok that's what I was thinking I should do - but I can't figure out how to get the permalink into the frontmatter of the markdown files? i.e. this is my post template. (Do you use Eleventy as well?)
@iChris Apologies, I missed this reply somehow. The way I had to do it for another project was write a script to write the Markdown files and add the permalink to them.
@rknightuk Any chance that's shareable? Or I guess it probably doesn't work because it's different platforms (or whatever the right word is).