Skip to content

Creating Content

Anas Ismail Khan edited this page Aug 5, 2016 · 7 revisions

Posts

Any file that is present in "content/posts" is considered a single, independent post. And all content within the file, except for the metadata(if any), is going to be displayed in the post body. Danvers supports posts created using HTML, Markdown and Textile.

Obviously, the file extension is very important here.

  • HTML files must end in .html or .HTML
  • Textile files must end in .textile or .TEXTILE
  • Markdown files must end in .md or .MD or .markdown or .MARKDOWN

All posts need to be named according to this convention: YYYY-MM-DD.Post Title.MARKUP So naturally, a post about your pet beagle that you created on 29th February 2016, using markdown, would be named: 2016-02-29.Moi Awesome Beagle.md

All posts would be automatically listed in the blog feed, and any post is individually accessible as a page at example.com/?post=post-title So in my demo, a post titled "First post" is accessible at http://anasismail.com/others/Danvers/?post=First%20post

Clone this wiki locally