getindiekit / indiekit

The little Node.js server with all the parts needed to publish content to your personal website and share it on social networks.
https://getindiekit.com
MIT License
340 stars 36 forks source link

Preset: Urara #428

Closed kwaa closed 1 year ago

kwaa commented 2 years ago

Is your feature request related to a problem? Please describe.

Hello! Urara is an IndieWeb compatible static blog starter that I wrote. since the Front-Matter format is now close to the microformats, I tried to open an issue here.

Describe the solution you’d like

Add a @indiekit/preset-urara package to provide urara support, the current front-matter definition can be found here.

The obvious difference is that Urara uses layout to determine post kinds, for example:

---
title: Example
summary: lorem ipsum...
layout: article
---

As well as providing visibility support through the flags:

private is not currently supported

---
title: Example Two
layout: note
flags:
- few-other
- unlisted
---

And for the path:

post: {
  path: "urara/{slug}/index.md",
  url: "/{slug}",
},
media: {
  path: "urara/{slug}/{filename}",
  url: "/{slug}/{filename}"
}

Additional context

I'm happy to try to maintain and test, but not quite sure how to implement it.

kwaa commented 2 years ago

Update: I tried writing a preset indiekit-preset-fff. [GitHub] [NPM] Is it possible to publish the helpers folder for better testing?

paulrobertlloyd commented 1 year ago

@kwaa Ooh, that’s an interesting idea, I’ll have a think. They’re not intended to be published, but I can see how they may be useful for plugin developers. Are any helpers that would be particularly useful?

kwaa commented 1 year ago

@kwaa Ooh, that’s an interesting idea, I’ll have a think. They’re not intended to be published, but I can see how they may be useful for plugin developers. Are any helpers that would be particularly useful?

All I really need is probably @indiekit-test/fixtures.

kwaa commented 1 year ago

indiekit-preset-fff has been partially tested and is basically available. I will close this issue when #498 is merged.