Website for CS 196. Uses Node.js and Express.js
- Navigate to ./views/partials/content/posts directory.
- Create a new .json file. The naming convention is YYYYMMDD-title.ejs. This is to ensure that the files show up in the correct order.
- JSON files must have these properties:
{
"title": "Post Title",
"author": "John Public",
"timestamp": "2014/10/21",
"preview": "Show the first paragraph in the preview page!",
"content": "<p>Show the first paragraph in the preview page!</p>\n<p>And here is the rest of the post content. Enjoy the blog!</p>"
}
- Posts are written using standard HTML syntax.