Website 🚀 contributte.org | Contact 👨🏻💻 f3l1x.io | Twitter 🐦 @contributte
|⚠️||This project is no longer being maintained. Please use contributte/webapp-skeleton (opens new window).|
Simple static blogger based on Nette.
This project is deprecated. Use better solution blogette/platform (opens new window).
BloggerExtension to your other extensions.
extensions: blog: Minetro\Blog\Simple\DI\BloggerExtension
You have to set folder where Nette\Utils\Finder (opens new window) will be looking for posts.
blog: posts: %appDir%/data
Post consists of two parts.
Meta file and
Let's we have a file in data/201505/post.neon. All meta files must have
Take a look to example meta file.
id: 1 date: 06.05.2015 title: Some cool title post: %file%/post.md seo: title: 'Best framework in the world' keywords: 'nette, php, framework' description: 'Nothing to say. It's a fact.' tags: - php config: comments: yes social: yes parser: parsedown
Required properties are id, date, title and post.
Post is a target to your
content file. Content file could be
.latte or whatever. But you have to specific
parser. In this case it is parsedown.
To obtain all posts, one posts, order posts, filters posts here is
->findAll(Configuration $c) - returns array of posts.
->fetch(Configuration $c) - returns just one posts or nothing.
There are 3 objects. Criteria, Sorter and Paginator.
Criteria - it is for posts filtering (excluding)
Sorter - it is for posts sorting
Paginator - it extends classic Nette\Utils\Paginator (opens new window)
View is not part of this library. You have to display posts by yourself.
This package was maintain by these authors.
Consider to support (opens new window) contributte development team. Also thank you for being used this package.