From d92feaf870ca7aff784948e0c43e6dbfe2f531d0 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Mon, 16 Feb 2015 13:23:55 -0800 Subject: [PATCH] controllers/blog: make title separated out from the rest of the content --- controllers/blog.moon | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controllers/blog.moon b/controllers/blog.moon index 152f547..7302745 100644 --- a/controllers/blog.moon +++ b/controllers/blog.moon @@ -1,5 +1,6 @@ discount = require "discount" lapis = require "lapis" +file = require "pl.file" oleg = require "lib/oleg" util = require "lapis.util" @@ -21,6 +22,9 @@ class Blog extends lapis.Application @doc = oleg.cache "blogposts", @name, -> local data with io.open "blog/#{@name}.markdown", "r" + \read "*l" + \read "*l" + \read "*l" data = \read "*a" discount data, "toc", "nopants", "autolink"