Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
J
jekyll-scholar-extras
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
caesr-pub
jekyll-scholar-extras
Commits
abd9978a
Commit
abd9978a
authored
Nov 25, 2012
by
rmrf
Committed by
Hiren Patel
Nov 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove puts
parent
42fe70ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
9 deletions
+21
-9
lib/jekyll/scholar/extras/bibliography_hdp.rb
lib/jekyll/scholar/extras/bibliography_hdp.rb
+16
-4
lib/jekyll/scholar/extras/extra_utils.rb
lib/jekyll/scholar/extras/extra_utils.rb
+5
-5
No files found.
lib/jekyll/scholar/extras/bibliography_hdp.rb
View file @
abd9978a
...
...
@@ -16,7 +16,10 @@ module Jekyll
set_context_to
context
year_section
=
''
references
=
public_entries
.
map
do
|
entry
|
opts
=
[
'@*[public!=no]'
]
#references = public_entries.map do |entry|
references
=
get_entries
(
opts
).
map
do
|
entry
|
reference
=
''
ref
=
''
...
...
@@ -45,13 +48,22 @@ module Jekyll
end
if
entry
.
field?
(
:pdflink1
)
reference
<<
"<a href=
\"
"
+
entry
[
:pdflink1
].
to_s
+
"
\"
>PDF</a>"
#if config['pdf_logo']
# puts "pdf_logo"
# reference << "<img class=\"alignleft\" title=\"pdf\" src=" + config['pdf_logo'] + "alt=\"\" width=\"50\" height=\"30\" />"
# else
reference
<<
"<a href=
\"
"
+
entry
[
:pdflink1
].
to_s
+
"
\"
>PDF</a>"
# end
end
if
entry
.
field?
(
:slides
)
reference
<<
"<a href=
\"
"
+
entry
[
:slides
].
to_s
+
"
\"
>, Slides</a>"
# if config['ppt_logo']
# puts "ppt_logo"
# reference << "<img class=\"alignleft\" title=\"ppt\" src=" + config['ppt_logo'] + "alt=\"\" width=\"50\" height=\"30\" />"
# else
reference
<<
"<a href=
\"
"
+
entry
[
:slides
].
to_s
+
"
\"
>, Slides</a>"
# end
end
content_tag
:br
,
reference
...
...
lib/jekyll/scholar/extras/extra_utils.rb
View file @
abd9978a
...
...
@@ -22,7 +22,7 @@ module Jekyll
and_list
.
each
{
|
t
|
b
=
bibliography
[
t
]
&
b
}
puts
b
.
length
#
puts b.length
unless
config
[
'sort_by'
]
==
'none'
b
.
sort_by!
{
|
e
|
e
[
config
[
'sort_by'
]].
to_s
}
...
...
@@ -36,10 +36,10 @@ module Jekyll
bart
=
bibliography
[
'@article'
]
bpub
=
bibliography
[
'@*[public!=no]'
]
b
=
bart
&
bpub
puts
b
.
class
puts
bart
.
length
puts
bpub
.
length
puts
b
.
length
#
puts b.class
#
puts bart.length
#
puts bpub.length
#
puts b.length
unless
config
[
'sort_by'
]
==
'none'
b
.
sort_by!
{
|
e
|
e
[
config
[
'sort_by'
]].
to_s
}
...
...
Write
Preview
Markdown
is supported
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