bmcminn / throwdown

A simple flat-file CMS/static site generator that consumes nothing but good ole' wholesome Markdown! Completely extensible and customizable as you see fit.
MIT License
4 stars 2 forks source link

`/article` URL parsing #5

Open bmcminn opened 11 years ago

bmcminn commented 11 years ago

figure out how to make /articles work.

some sort of /tagged mechanism for taxonomy creation and search indexing

bmcminn commented 11 years ago

How should article parsing work long-term? /article parsing needs to generate a cache.articles.json file in the /app directory. This way we have a single resource that gets updated frequently.

Date property addition #7 When the article cache mechanism fires (need to decide how to trigger this thing...) we glob() each .md file located within /content/articles and iterate against them into the cache.articles.json file. Each article object in our JSON schema has a published property that is denoted by the published key set in the files' FrontMatter block.

By default if the FrontMatter block does not contain a published: key, the article is considered published: true.