Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
caesr-pub
jekyll-scholar
Commits
953d112d
Commit
953d112d
authored
Jan 07, 2016
by
Sylvester Keil
Browse files
Expose site and filters to bibliography template
See #118
parent
bf0293a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
lib/jekyll/scholar/utilities.rb
lib/jekyll/scholar/utilities.rb
+11
-4
No files found.
lib/jekyll/scholar/utilities.rb
View file @
953d112d
...
...
@@ -287,10 +287,17 @@ module Jekyll
return
missing_reference
unless
entry
liquid_template
.
render
(
reference_data
(
entry
,
index
).
merge
({
'index'
=>
index
,
'details'
=>
details_link_for
(
entry
)
}))
reference_data
(
entry
,
index
)
.
merge
(
site
.
site_payload
)
.
merge
({
'index'
=>
index
,
'details'
=>
details_link_for
(
entry
)
}),
{
:registers
=>
{
:site
=>
site
},
:filters
=>
[
Jekyll
::
Filters
]
}
)
end
def
reference_data
(
entry
,
index
=
nil
)
...
...
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