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
b39ef9a7
Commit
b39ef9a7
authored
Apr 06, 2013
by
Sylvester Keil
Browse files
add bibliography template example #19
parent
ef610d92
Changes
1
Show 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,6 +39,7 @@ default configuration is as follows:
source: ./_bibliography
bibliography: references.bib
bibliography_template: %{reference}
details_dir: bibliography
details_layout: bibtex.html
...
...
@@ -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