Use Laravel to quickly build a website series-static website blog builder: Katana
1. Introduction
Katana is a static site/blog builder developed based on Laravel. it supports Markdown and uses the Laravel Blade template engine.
2. GitHub
Https://github.com/themsaid/katana
3. System requirements
- PHP 5.5.9 +
- Apache or Nginx server
- Composer
4. Installation
We use Composer to install Katana:
composer create-project themsaid/katana my-new-site
After the installation is complete, run the following command to build the site:
php katana build
Katana comes with some instance content for you to get started quickly. after the above name is run, the site will be generated under the/public directory.
5. Documentation
Complete Katana documentation reference here: http://themsaid.github.io/katana/
6. blog builder
Katana provides the static blog generator function. you need to create a new one under the/content/_ blog Directory. blade. php file, then Katana will compile all the articles and display them in the view you choose.
The blog article list is paginated based on the configuration in config. php. There is also a $ blogPosts variable in all Blade views that contains the article array.
7. Blade template engine
If you are not familiar with the Blade template engine, refer to its official documentation: http://laravelacademy.org/post/79.html
8. use GitHubPages
You can publish a website through GitHub Pages in Katana. The principle is to deploy the public directory as the main branch of your GitHub Pages repository or the gh-pages branch of your project repository.
For more details, see the official Katana documentation.