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
b39ef9a7
Commit
b39ef9a7
authored
Apr 06, 2013
by
Sylvester Keil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add bibliography template example #19
parent
ef610d92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
README.md
README.md
+22
-1
No files found.
README.md
View file @
b39ef9a7
...
...
@@ -39,7 +39,8 @@ default configuration is as follows:
source: ./_bibliography
bibliography: references.bib
bibliography_template: %{reference}
details_dir: bibliography
details_layout: bibtex.html
details_link: Details
...
...
@@ -141,6 +142,26 @@ For more details about filters, see the corresponding section below or
consult the
[
BibTeX-Ruby
](
https://github.com/inukshuk/bibtex-ruby
)
documentation.
### Bibliography Template
Your bibliography is always rendered as an ordered list. Additionally,
each reference is wrapped in an HTML tag (
`span`
by default but you can
change this using the
`reference_tagname`
setting) with the cite key
as id. The reference string itself is governed by the rules in your
CSL style but you can also customize the main template a little bit.
By default, the template is
`%{reference}`
– this renders only the
reference tag. The template uses Ruby string interpolation and, in
addition to the reference, exposes the cite-key (as
`key`
), the
entry's
`type`
and the
`index`
in the bibliography. Thus, you could
customize the template in your configuration as follows:
scholar:
bibliography_template: <abbr>[%{key}]</abbr>%{reference}
This would be processed into something like:
<li><abbr>[ruby]</abbr><span id="ruby">Flanagan, D., & Matsumoto, Y. (2008). <i>The Ruby Programming Language</i>. O’Reilly Media.</span>
### Citations
...
...
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