add markdown support
This is to pretty print the markdown posts.
This commit is contained in:
parent
4e04cce391
commit
fb3d0b51c0
1
Gemfile
1
Gemfile
|
@ -5,5 +5,6 @@ gem 'do_postgres'
|
|||
gem 'zero', :git => 'https://github.com/libzero/zero.git'
|
||||
gem 'slim'
|
||||
gem 'sass'
|
||||
gem 'kramdown'
|
||||
gem 'puma'
|
||||
gem 'rubysl', :platforms => :rbx
|
||||
|
|
|
@ -14,6 +14,7 @@ GEM
|
|||
do_postgres (0.10.13)
|
||||
data_objects (= 0.10.13)
|
||||
ffi2-generators (0.1.1)
|
||||
kramdown (1.2.0)
|
||||
minitest (4.7.5)
|
||||
puma (2.6.0)
|
||||
rack (>= 1.1, < 2.0)
|
||||
|
@ -241,6 +242,7 @@ PLATFORMS
|
|||
|
||||
DEPENDENCIES
|
||||
do_postgres
|
||||
kramdown
|
||||
puma
|
||||
rubysl
|
||||
sass
|
||||
|
|
|
@ -4,3 +4,4 @@ require 'sequel'
|
|||
require 'zero'
|
||||
require 'sass'
|
||||
require 'slim'
|
||||
require 'kramdown'
|
||||
|
|
|
@ -16,4 +16,6 @@ html
|
|||
.author=post[:username]
|
||||
.date= post[:written].strftime('%Y-%m-%d')
|
||||
.time= post[:written].strftime('%H-%M')
|
||||
section= post[:content]
|
||||
section
|
||||
markdown:
|
||||
"#{post[:content]}"
|
||||
|
|
Loading…
Reference in New Issue