From 02c7decdb222f3edf6c054266813441b5b5cd531 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 13 Oct 2013 14:16:13 -0400 Subject: index: generate the page as markdown --- index.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.rb b/index.rb index 60aa54b..f3ef5b0 100755 --- a/index.rb +++ b/index.rb @@ -1,5 +1,6 @@ #!/usr/bin/env ruby # -*- coding: utf-8 -*- +require 'rdiscount' require 'erb' @title = "Web log entries" @@ -8,13 +9,13 @@ license = "CC BY-SA-3.0" license_url = 'https://creativecommons.org/licenses/by-sa/3.0/' @license="#{license}" -@content = "

#{@title}

\n\n" +@content = RDiscount.new(markdown).to_html template = 'template.erb' erb = ERB.new(File.read(template)); -- cgit v1.2.3