, (*1)
, (*2)
Website 🚀 contributte.org | Contact 👨🏻💻 f3l1x.io | Twitter 🐦 @contributte
, (*3)
Disclaimer
Simple static blogger based on Nette., (*4)
This project is deprecated. Use better solution blogette/platform., (*5)
Usage
Register BloggerExtension
to your other extensions., (*6)
extensions:
blog: Minetro\Blog\Simple\DI\BloggerExtension
You have to set folder where Nette\Utils\Finder will be looking for posts., (*7)
blog:
posts: %appDir%/data
Posts
Post consists of two parts. Meta
file and content
file., (*8)
Let's we have a file in data/201505/post.neon. All meta files must have neon
extension., (*9)
Take a look to example meta file., (*10)
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., (*11)
Post is a target to your content
file. Content file could be .md
, .latte
or whatever. But you have to specific
parser. In this case it is parsedown., (*12)
Model
PostsService
To obtain all posts, one posts, order posts, filters posts here is PostsService
., (*13)
->findAll(Configuration $c)
- returns array of posts., (*14)
->fetch(Configuration $c)
- returns just one posts or nothing., (*15)
Configuration
There are 3 objects. Criteria, Sorter and Paginator., (*16)
Criteria
- it is for posts filtering (excluding), (*17)
Sorter
- it is for posts sorting, (*18)
Paginator
- it extends classic Nette\Utils\Paginator, (*19)
View
View is not part of this library. You have to display posts by yourself., (*20)
Development
This package was maintain by these authors., (*21)
, (*22)
Consider to support contributte development team.
Also thank you for being used this package., (*23)