krzysztofair / blog
Flat file blog
1.0.0
2015-07-28 18:59 UTC
Requires
- krzysztofair/blog-core: 1.0.*
This package is not auto-updated.
Last update: 2025-04-16 11:57:26 UTC
README
If you can't find something that suits your needs - do it yourself
I was looking for simple and semi-lightweight blogging system with Markdown and Yaml files only. However existing ones was overloaded with plugins and functionality. So this is what I came out with.
Requirements
Get the latest PHP and composer to install dependencies.
Installation
You have two options:
composer create-project krzysztofair/blog --prefer-dist
or simply clone this repo, cd into it and install via composer:
composer install
Make sure the cache folder has 755 or 777 chmods
sudo chmod -R 777 cache
Your virtual host should point to public directory.
Customization
You can edit application views to customize the template. Put your assets into public/assets directory.
Writing posts
There are three steps for writing a new post.
- Add new post information in blog/blog.yaml configuration file under posts key. See sample data you can use in this file.
- Add new file under blog directory named slug.md, where slug is the same as in blog.yaml.
git add
andgit push
- and you're ready!