Katana – Blade powered static site & blog generator

Laravel Applications

March 9th, 2016

laravel-blog-katana

Katana is a PHP static site & blog generator with markdown support. Using it you can deploy with Github pages or your own hosting environment.

What I like is that it utilizes Blade to build the templates and files instead of straight markdown and YAML frontmatter. Here is an example of a blog post:

1@extends('_includes.blog_post_base')
2
3@section('post::title', 'My Title')
4@section('post::date', 'March 9, 2016')
5@section('post::brief', 'My subtitle goes here')
6@section('pageTitle')- @yield('post::title')@stop
7
8@section('post_body')
9
10 @markdown
11 This is my body content
12
13 > With a blockquote
14 @endmarkdown
15
16@stop

I think the only downside is if you rely on your editors markdown syntax features. But I’m sure you could get around that by having the body in it’s own file and using a Blade @include.

Filed in:

Eric L. Barnes

Eric is the creator of Laravel News and has been covering Laravel since 2012.