Commit f095ee73 authored by rmrf's avatar rmrf
Browse files

slides link support added

parent b05f52cc
...@@ -36,7 +36,7 @@ module Jekyll ...@@ -36,7 +36,7 @@ module Jekyll
reference << "." reference << "."
end end
if entry.field?(:pdflink1) or entry.field?(:pptlink1) if entry.field?(:pdflink1) or entry.field?(:slides)
reference << "<b> Downloads: </b>" reference << "<b> Downloads: </b>"
end end
...@@ -45,8 +45,8 @@ module Jekyll ...@@ -45,8 +45,8 @@ module Jekyll
end end
if entry.field?(:pptlink1) if entry.field?(:slides)
reference << "<a href=\"" + entry[:pptlink1].to_s + "\">PPT</a>" reference << "<a href=\"" + entry[:slides].to_s + "\">Slides</a>"
end end
......
...@@ -40,7 +40,7 @@ module Jekyll ...@@ -40,7 +40,7 @@ module Jekyll
reference << "." reference << "."
end end
if entry.field?(:pdflink1) or entry.field?(:pptlink1) if entry.field?(:slides) or entry.field?(:slides)
reference << "<b> Downloads: </b>" reference << "<b> Downloads: </b>"
end end
...@@ -49,8 +49,8 @@ module Jekyll ...@@ -49,8 +49,8 @@ module Jekyll
end end
if entry.field?(:pptlink1) if entry.field?(:slides)
reference << "<a href=\"" + entry[:pptlink1].to_s + "\">PPT</a>" reference << "<a href=\"" + entry[:slides].to_s + "\">Slides</a>"
end end
......
...@@ -35,12 +35,14 @@ module Jekyll ...@@ -35,12 +35,14 @@ module Jekyll
data['entry']['citeproc'] = CiteProc.process entry.to_citeproc, :style => config['style'], data['entry']['citeproc'] = CiteProc.process entry.to_citeproc, :style => config['style'],
:locale => config['locale'], :format => 'html' :locale => config['locale'], :format => 'html'
#puts data['entry']['citeproc'].class
if entry.field?(:pdflink1) if entry.field?(:pdflink1)
data['entry']['pdflink1']= entry[:pdflink1].to_s data['entry']['pdflink1']= entry[:pdflink1].to_s
end end
if entry.field?(:pptlink1) if entry.field?(:slides)
data['entry']['pptlink1']= entry[:pptlink1].to_s data['entry']['slides']= entry[:slides].to_s
end end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment