Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
caesr-pub
jekyll-scholar-extras
Commits
0a0ec5ef
Commit
0a0ec5ef
authored
Jun 10, 2012
by
root
Committed by
Hiren Patel
Jun 10, 2012
Browse files
slides link support added
parent
106b07fb
Changes
3
Show whitespace changes
Inline
Side-by-side
lib/jekyll/scholar/extras/bibliography_bytype.rb
View file @
0a0ec5ef
...
...
@@ -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
...
...
lib/jekyll/scholar/extras/bibliography_hdp.rb
View file @
0a0ec5ef
...
...
@@ -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
...
...
lib/jekyll/scholar/extras/details_hdp.rb
View file @
0a0ec5ef
...
...
@@ -35,12 +35,14 @@ module Jekyll
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment