armoni/blog-module
Composer 安装命令:
composer require armoni/blog-module
包简介
A blog module for AsgardCMS.
关键字:
README 文档
README
Installation
Execute the following command in your terminal
composer require asgardcms/blog-module
Followed by a composer update
Note: After installation you'll have to give you the required permissions to get to the blog module pages in the backend.
Usage
- You have to create a
blog.indexandblog.showpage in your front end theme. - You can link to the blog index page using :
route(locale() . '.blog') - In the blog index you'll have access to a
$postsvariable on which you can loop - To create a link to a specific post:
route(locale() . '.blog.slug', [$post->slug]) - On the blog index and blog show pages you'll have access to a
$latestPostsvariable containing the latest posts, this amount can be configured in the admin. - On a post detail page, you can have access to the next and previous post by calling:
$post->present()->previous$post->present()->next
Resources
Info
All AsgardCMS modules respect Semantic Versioning.
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-05-19