gma / nesta

File Based CMS and Static Site Generator
http://nestacms.com
MIT License
902 stars 121 forks source link

Metadata format should be compatible w/ github et al #142

Closed datenimperator closed 10 years ago

datenimperator commented 10 years ago

[Copied from here…]

Many blogging websites, like Jekyll with GitHub Pages, depend on some YAML-formatted metadata at the beginning of your post. You know, the stuff that goes between dashes like this:


---
layout: post
title: Blogging Like a Boss

---

Nesta should probably support that metadata format and deprecate the other style.

jmervine commented 10 years ago

:+1:

datenimperator commented 10 years ago

Looking at how it's implemented in Jekyll it should be pretty easy to add it as a second metadata format for Nesta. It'd encourage to use proper YAML syntax for metadata, other than keys like My custom Header: Some value which should in fact be my_custom_header: Some value

Fancy a pull request?

gma commented 10 years ago

Have you tried the YAML metadata plugin?

http://nestacms.com/docs/plugins/yaml-metadata

Personally, I'm not a fan (it's unnecessarily geeky) but I can see why it appeals. Which is why I wrote the plugin…