-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.ru
31 lines (26 loc) · 964 Bytes
/
config.ru
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
require 'toto'
# Rack config
use Rack::Static, :urls => ['/css', '/js', '/images', '/favicon.ico'], :root => 'public'
use Rack::CommonLogger
if ENV['RACK_ENV'] == 'development'
use Rack::ShowExceptions
end
#
# Create and configure a toto instance
#
toto = Toto::Server.new do
# Add your settings here
# set [:setting], [value]
#
# set :root, "index" # page to load on /
# set :markdown, :smart # use markdown + smart-mode
# set :cache, 28800 # cache duration, in seconds
set :disqus, 'grayingmatter'
set :author, 'Thierry Henrio'
set :title, 'Graying Matter'
set :summary, :max => 150, :delim => /~\n/
set :ext, 'markdown'
set :date, lambda {|now| now.strftime("%B #{now.day.ordinal} %Y") }
set :github, :user => "thierryhenrio", :repos => ['cant', 'wrong', 'conference-on-rails'], :ext => 'markdown'
end
run toto