This repository contains an example implementation of the markdown blog created using library https://github.com/jakubthedeveloper/SimpleMarkdownBlog
- PHP >= 8.1
- Composer
You can see the demo of this project on the website http://markdown-blog-preview.irok84.kei.pl/
composer install
Save your templates in the template/
directory.
Tags you can use in templates:
__BLOG_TITLE__
__PAGES_LIST__
__PAGE_CONTENT__
__TITLE__
__DESCRIPTION__
__IMAGE__
__PAGE_TYPE__
# see http://ogp.me/#types__PAGE_URL__
Save your pages contents in the markdown format in the markdown/
directory.
Edit config/pages.yaml
to set your pages configuration.
Edit config/blog.yaml
to set your blog configuration.
Use the following command to generate pages:
./bin/console generate:pages
Generated HTML files will be saved in public/
directory, vhost on your server should point to this directory for the public files.