My flat-file blog, written in PHP and Markdown.
.md file with the following bit JSON at the top, and save it in the
Simple and fast. One of the main perks of having a flat-file blog.
Near the top of the
index.php file, there’s some global settings that can be adjusted:
posts.path: The relative path to the directory that holds the Markdown posts
pagination: The number of posts that are show per-page
md are required and not customizable.
All the templates are built with Twig and are in the
main.html: The core html template. All of the other templates extend this one. Contains all js/css links, headers & footers, etc.
index.html: The home page template. Right now shows your blog index.
post.html: The post view page, shows a single post.
404.html: Custom 404 template.
about.html: An about me page
tagged.html: The tag search template.
pagination.html: The pagination template (partial) that shows on the bottom of the blog index.
Changing out styles is as easy as changing the
<link> tag in the
More documentation on Twig is available here.