Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional document link prefix #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ bibsonomy:
apikey: yourapikey
# directory must exists; empty value disables document download
document_directory: pdf
# default is empty string
document_link_prefix: /
# check https://github.com/citation-style-language/styles for styles
style: acm-sig-proceedings
# see http://api.altmetric.com/embeds.html for types and JavaScript
Expand Down
5 changes: 5 additions & 0 deletions lib/bibsonomy-jekyll.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# COUNT is an integer, the number of posts to return
#
# Changes:
# 2018-10-13
# - added document_link_prefix
# 2018-10-08 (rja)
# - added liquid expansion
# 2017-05-31 (rja)
Expand Down Expand Up @@ -52,6 +54,9 @@ def render(context)
# target directory for PDF documents
csl.pdf_dir = bib_config['document_directory']

# prefix for PDF document links
csl.pdf_link_prefix = bib_config['document_link_prefix']

# Altmetric badge type
csl.altmetric_badge_type = bib_config['altmetric_badge_type']

Expand Down
2 changes: 1 addition & 1 deletion lib/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module BibSonomyJekyll
VERSION = "0.1.9"
VERSION = "0.1.10"
end