centralized pygments aliases into pygments_code.rb. Added alias for .ru (ruby), which sort of fixes #108
This commit is contained in:
parent
596ec87c37
commit
358d02a4a7
3 changed files with 4 additions and 6 deletions
|
|
@ -53,9 +53,6 @@ module Jekyll
|
|||
Dir.chdir(code_path) do
|
||||
code = file.read
|
||||
@filetype = file.extname.sub('.','')
|
||||
@filetype = 'objc' if @filetype == 'm'
|
||||
@filetype = 'perl' if @filetype == 'pl'
|
||||
@filetype = 'yaml' if @filetype == 'yml'
|
||||
title = @title ? "#{@title} (#{file.basename})" : file.basename
|
||||
url = "#{context.registers[:site].config['url']}/#{code_dir}/#{@file}"
|
||||
source = "<div><figure role=code><figcaption><span>#{title}</span> <a href='#{url}'>download</a></figcaption>\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue