Skip to content

Need a blog module for you website? This one's based on flat files

License

Notifications You must be signed in to change notification settings

mattmezza/FlatFileBlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlatFileBlog

Need a blog module for you website? This one's based on flat files

Build Status Latest Stable Version License


composer require mattmezza/flat-file-blog

$blog_manager = new BlogManager($url, $posts_dir, $posts_perpage, $pages_dir, $authors);
$page = $blog_manager->get_page("page");
// reads file page.md from dir $pages_dir
// parses yaml initial section into $page->metas
// converts md into html and puts content in $page->body
echo $page->body;

Check out tests/BlogTest.php for more information.

Matteo Merola mattmezza@gmail.com

About

Need a blog module for you website? This one's based on flat files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages