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
c10e1daa
Commit
c10e1daa
authored
Jun 25, 2012
by
root
Committed by
Hiren Patel
Jun 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cite_details is more useful for publications
parent
830bc07a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
lib/jekyll/scholar/extras/extra_utils.rb
lib/jekyll/scholar/extras/extra_utils.rb
+7
-6
No files found.
lib/jekyll/scholar/extras/extra_utils.rb
View file @
c10e1daa
...
...
@@ -80,16 +80,17 @@ module Jekyll
config
[
'details_dir'
]
end
def
cite
(
key
)
def
cite
_details
(
key
)
entry
=
bibliography
[
key
]
if
bibliography
.
key?
(
key
)
citation
=
CiteProc
.
process
entry
.
to_citeproc
,
:style
=>
config
[
'style'
],
:locale
=>
config
[
'locale'
],
:format
=>
'html'
,
:mode
=>
:citation
link_to
"More details."
,
details_link_for
(
entry
)
#citation = CiteProc.process entry.to_citeproc, :style => config['style'],
#:locale => config['locale'], :format => 'html', :mode => :citation
link_to
"#
#{
entry
.
key
}
"
,
citation
.
join
else
"(missing reference)"
#
link_to "##{entry.key}", citation.join
#
else
#
"(missing reference)"
end
end
...
...
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