Add smartypants
This commit is contained in:
parent
72067ba038
commit
decb9d8430
2 changed files with 3 additions and 1 deletions
|
@ -3,7 +3,7 @@ title = "#{@item[:title] + ' · ' if @item[:title]}Tent"
|
||||||
link href='/assets/css/bootstrap.css' rel='stylesheet' type='text/css' media='screen'
|
link href='/assets/css/bootstrap.css' rel='stylesheet' type='text/css' media='screen'
|
||||||
link href='/assets/css/bootstrap-responsive.css' rel='stylesheet' type='text/css' media='screen'
|
link href='/assets/css/bootstrap-responsive.css' rel='stylesheet' type='text/css' media='screen'
|
||||||
link href='/assets/css/style.css' rel='stylesheet' type='text/css' media='screen'
|
link href='/assets/css/style.css' rel='stylesheet' type='text/css' media='screen'
|
||||||
link rel='alternate' type='application/atom+xml' title='Atom feed' href="#{@site.config[:base_url]}/posts.xml"
|
link rel='alternate' type='application/atom+xml' title='Atom feed' href="/posts.xml"
|
||||||
javascript:
|
javascript:
|
||||||
var _gaq = _gaq || [];
|
var _gaq = _gaq || [];
|
||||||
_gaq.push(['_setAccount', '#{@site.config[:google_analytics_id]}']);
|
_gaq.push(['_setAccount', '#{@site.config[:google_analytics_id]}']);
|
||||||
|
|
|
@ -3,6 +3,8 @@ require 'pygments.rb'
|
||||||
RubyPython.start python_exe: 'python2.6' if ENV['RACK_ENV'] == 'production'
|
RubyPython.start python_exe: 'python2.6' if ENV['RACK_ENV'] == 'production'
|
||||||
|
|
||||||
class MarkdownHTML < Redcarpet::Render::HTML
|
class MarkdownHTML < Redcarpet::Render::HTML
|
||||||
|
include Redcarpet::Render::SmartyPants
|
||||||
|
|
||||||
def block_code(code, language)
|
def block_code(code, language)
|
||||||
Pygments.highlight(code, lexer: language)
|
Pygments.highlight(code, lexer: language)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue