Commit ab0c9104 authored by Hiren Patel's avatar Hiren Patel

slides link support added

parent 7f615244
......@@ -36,7 +36,7 @@ module Jekyll
reference << "."
end
if entry.field?(:pdflink1) or entry.field?(:pptlink1)
if entry.field?(:pdflink1) or entry.field?(:slides)
reference << "<b> Downloads: </b>"
end
......@@ -45,8 +45,8 @@ module Jekyll
end
if entry.field?(:pptlink1)
reference << "<a href=\"" + entry[:pptlink1].to_s + "\">PPT</a>"
if entry.field?(:slides)
reference << "<a href=\"" + entry[:slides].to_s + "\">Slides</a>"
end
......
......@@ -40,7 +40,7 @@ module Jekyll
reference << "."
end
if entry.field?(:pdflink1) or entry.field?(:pptlink1)
if entry.field?(:slides) or entry.field?(:slides)
reference << "<b> Downloads: </b>"
end
......@@ -49,8 +49,8 @@ module Jekyll
end
if entry.field?(:pptlink1)
reference << "<a href=\"" + entry[:pptlink1].to_s + "\">PPT</a>"
if entry.field?(:slides)
reference << "<a href=\"" + entry[:slides].to_s + "\">Slides</a>"
end
......
......@@ -34,13 +34,15 @@ module Jekyll
# This is to get the CSL style output.
data['entry']['citeproc'] = CiteProc.process entry.to_citeproc, :style => config['style'],
:locale => config['locale'], :format => 'html'
#puts data['entry']['citeproc'].class
if entry.field?(:pdflink1)
data['entry']['pdflink1']= entry[:pdflink1].to_s
end
if entry.field?(:pptlink1)
data['entry']['pptlink1']= entry[:pptlink1].to_s
if entry.field?(:slides)
data['entry']['slides']= entry[:slides].to_s
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