jekyll-scholar 6.5.0 → 6.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/features/bibtex.feature +2 -1
- data/lib/jekyll/scholar/utilities.rb +3 -13
- data/lib/jekyll/scholar/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69721f8d8ba934874039c43bd0fab2ec7c5ab4dda4be6d0758e331c333466207
|
4
|
+
data.tar.gz: 52a3b972483b9626789ff4cba5b4203d411e17cd659d0f2c3e74f8239da0d532
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afe07db8a50178374c677d9a4252c4eda8f84e71b6c212d7382443ab5217614eafea901ec41fd5c3e28b7b6ca495f020980e2b8780c7c2a1e86d53ac672369ea
|
7
|
+
data.tar.gz: f80f88409839f68ff4c3b06ba78f7a0df99a40e970711ec318a1053ae456bf60214e0209886424620030b874f4ca48d4d1600de6b96a4cc0f079876b12347df5
|
data/features/bibtex.feature
CHANGED
@@ -619,7 +619,7 @@ Feature: BibTeX
|
|
619
619
|
Given I have a scholar configuration with:
|
620
620
|
| key | value |
|
621
621
|
| source | ./_bibliography |
|
622
|
-
| bibliography_template | <pre>{{entry.
|
622
|
+
| bibliography_template | <pre>{{entry.bibtex}}</pre> |
|
623
623
|
And I have a "_bibliography" directory
|
624
624
|
And I have a file "_bibliography/references.bib":
|
625
625
|
"""
|
@@ -638,3 +638,4 @@ Feature: BibTeX
|
|
638
638
|
Then the _site directory should exist
|
639
639
|
And the "_site/scholar.html" file should exist
|
640
640
|
And I should see "{{No Escape}}" in "_site/scholar.html"
|
641
|
+
And I should not see "raw" in "_site/scholar.html"
|
@@ -518,7 +518,7 @@ module Jekyll
|
|
518
518
|
def bibliography_tag(entry, index)
|
519
519
|
return missing_reference unless entry
|
520
520
|
|
521
|
-
|
521
|
+
liquid_template.render(
|
522
522
|
reference_data(entry,index)
|
523
523
|
.merge(site.site_payload)
|
524
524
|
.merge({
|
@@ -528,17 +528,7 @@ module Jekyll
|
|
528
528
|
{
|
529
529
|
:registers => { :site => site },
|
530
530
|
:filters => [Jekyll::Filters]
|
531
|
-
}
|
532
|
-
)
|
533
|
-
# process the generated reference with Liquid, to get the same behaviour as
|
534
|
-
# when it is used on a page
|
535
|
-
Liquid::Template.parse(tmp).render(
|
536
|
-
site.site_payload,
|
537
|
-
{
|
538
|
-
:registers => { :site => site },
|
539
|
-
:filters => [Jekyll::Filters]
|
540
|
-
}
|
541
|
-
)
|
531
|
+
})
|
542
532
|
end
|
543
533
|
|
544
534
|
def reference_data(entry, index = nil)
|
@@ -570,7 +560,7 @@ module Jekyll
|
|
570
560
|
e['bibtex'] = tmp.to_s({ quotes: config['bibtex_quotes'] })
|
571
561
|
end
|
572
562
|
|
573
|
-
e['raw_bibtex'] = "{%raw%}#{e['bibtex']}{%endraw%}"
|
563
|
+
#e['raw_bibtex'] = "{%raw%}#{e['bibtex']}{%endraw%}"
|
574
564
|
|
575
565
|
entry.fields.each do |key, value|
|
576
566
|
value = value.convert(*bibtex_filters) unless bibtex_filters.empty?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-scholar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.5.
|
4
|
+
version: 6.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylvester Keil
|
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
148
|
- !ruby/object:Gem::Version
|
149
149
|
version: 1.3.6
|
150
150
|
requirements: []
|
151
|
-
rubygems_version: 3.0.
|
151
|
+
rubygems_version: 3.0.6
|
152
152
|
signing_key:
|
153
153
|
specification_version: 4
|
154
154
|
summary: Jekyll extensions for the academic blogger.
|