Use Laravel to quickly build a website series-static site/blog builder: Katana

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.