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
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
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
caesr-pub
jekyll-scholar
Commits
953d112d
Commit
953d112d
authored
Jan 07, 2016
by
Sylvester Keil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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