jekyll-scholar 6.7.0 → 6.8.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9003e905d46343a563b51568a93777e2fda49ede94e0cf34f0efc326eff8d6f8
|
4
|
+
data.tar.gz: cc3020a8bd67e1ae7e1a7d069b47c3ffa359dd22f003ab05e7ea15d3fcc66b34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d297673512e24ba530830d62ae7c3ff89a3a6360593f6bb0cda41ad93e4a64276576ed4d05d47283b66d6825ef9a399f970b01bc616eb5f3bf1aa83794a9978
|
7
|
+
data.tar.gz: 57901b71b3ac3c289b19d8c60167593a08928f6a2d8c9608456806e0bab8d5e22e181e2ba547fe9f9db8cbb5e76c0132e9c71205115454355829a7efe6787a9d
|
@@ -1,6 +1,5 @@
|
|
1
1
|
module Jekyll
|
2
2
|
class Scholar
|
3
|
-
|
4
3
|
class BibliographyTag < Liquid::Tag
|
5
4
|
include Scholar::Utilities
|
6
5
|
|
@@ -34,7 +33,7 @@ module Jekyll
|
|
34
33
|
def render_groups(groups)
|
35
34
|
def group_renderer(groupsOrItems,keys,order,tags)
|
36
35
|
if keys.count == 0
|
37
|
-
|
36
|
+
csl_renderer(true)
|
38
37
|
render_items(groupsOrItems)
|
39
38
|
else
|
40
39
|
groupsOrItems
|
@@ -1,6 +1,5 @@
|
|
1
1
|
module Jekyll
|
2
2
|
class Scholar
|
3
|
-
|
4
3
|
class BibTeXTag < Liquid::Block
|
5
4
|
include Scholar::Utilities
|
6
5
|
|
@@ -15,16 +14,13 @@ module Jekyll
|
|
15
14
|
|
16
15
|
def render(context)
|
17
16
|
set_context_to context
|
18
|
-
|
17
|
+
|
19
18
|
BibTeX.parse(super, bibtex_options).map { |entry|
|
20
19
|
reference_tag entry
|
21
|
-
|
22
20
|
}.join("\n")
|
23
21
|
end
|
24
22
|
end
|
25
|
-
|
26
23
|
end
|
27
24
|
end
|
28
25
|
|
29
26
|
Liquid::Template.register_tag('bibtex', Jekyll::Scholar::BibTeXTag)
|
30
|
-
|
@@ -662,15 +662,15 @@ module Jekyll
|
|
662
662
|
config['details_dir']
|
663
663
|
end
|
664
664
|
|
665
|
-
def
|
666
|
-
return @
|
665
|
+
def csl_renderer(force = false)
|
666
|
+
return @csl_renderer if @csl_renderer && !force
|
667
667
|
|
668
|
-
@
|
668
|
+
@csl_renderer = CiteProc::Ruby::Renderer.new :format => 'html',
|
669
669
|
:style => style, :locale => config['locale']
|
670
670
|
end
|
671
671
|
|
672
672
|
def render_citation(items)
|
673
|
-
|
673
|
+
csl_renderer.render items.zip(locators.zip(labels)).map { |entry, (locator, label)|
|
674
674
|
cited_keys << entry.key
|
675
675
|
cited_keys.uniq!
|
676
676
|
|
@@ -684,17 +684,17 @@ module Jekyll
|
|
684
684
|
|
685
685
|
def render_bibliography(entry, index = nil)
|
686
686
|
begin
|
687
|
-
original_locale
|
688
|
-
|
687
|
+
original_locale = csl_renderer.locale
|
688
|
+
csl_renderer.locale = locales(entry.language)
|
689
689
|
rescue
|
690
690
|
# Locale failed to load; just use original one!
|
691
691
|
end if allow_locale_overrides? &&
|
692
|
-
|
692
|
+
entry['language'] != csl_renderer.locale.language
|
693
693
|
|
694
|
-
|
694
|
+
csl_renderer.render citation_item_for(entry, index),
|
695
695
|
styles(style).bibliography
|
696
696
|
ensure
|
697
|
-
|
697
|
+
csl_renderer.locale = original_locale unless original_locale.nil?
|
698
698
|
end
|
699
699
|
|
700
700
|
def citation_item_for(entry, citation_number = nil)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-scholar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.
|
4
|
+
version: 6.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylvester Keil
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -135,7 +135,7 @@ homepage: http://github.com/inukshuk/jekyll-scholar
|
|
135
135
|
licenses:
|
136
136
|
- MIT
|
137
137
|
metadata: {}
|
138
|
-
post_install_message:
|
138
|
+
post_install_message:
|
139
139
|
rdoc_options: []
|
140
140
|
require_paths:
|
141
141
|
- lib
|
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
151
|
version: 1.3.6
|
152
152
|
requirements: []
|
153
153
|
rubygems_version: 3.1.2
|
154
|
-
signing_key:
|
154
|
+
signing_key:
|
155
155
|
specification_version: 4
|
156
156
|
summary: Jekyll extensions for the academic blogger.
|
157
157
|
test_files:
|