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
44ce4d20
Commit
44ce4d20
authored
Jun 20, 2014
by
Sylvester Keil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix #51 symbol to liquid conversion
parent
723f4f75
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
features/bibtex.feature
features/bibtex.feature
+3
-3
lib/jekyll/scholar/utilities.rb
lib/jekyll/scholar/utilities.rb
+2
-2
No files found.
features/bibtex.feature
View file @
44ce4d20
...
...
@@ -94,7 +94,7 @@ Feature: BibTeX
Given I have a scholar configuration with
:
|
key
|
value
|
|
source
|
./_bibliography
|
|
bibliography_template
|
<abbr>{{index}}
[{{key}}]</abbr>{{reference}}
|
|
bibliography_template
|
<abbr>{{index}}
{{entry.type}}
[{{key}}]</abbr>{{reference}}
|
And
I have a
"_bibliography"
directory
And I have a file "_bibliography/references.bib"
:
"""
...
...
@@ -115,7 +115,7 @@ Feature: BibTeX
Then
the _site directory should exist
And
the
"_site/scholar.html"
file should exist
And
I should see
"<i>The Ruby Programming Language</i>"
in
"_site/scholar.html"
And
I should see
"<abbr>1 \[ruby\]</abbr><span"
in
"_site/scholar.html"
And
I should see
"<abbr>1
book
\[ruby\]</abbr><span"
in
"_site/scholar.html"
@tags
@filter
Scenario
:
Filtered Bibliography Loaded From Default Directory
...
...
@@ -151,7 +151,7 @@ Feature: BibTeX
And
I should not see
"<i>The Ruby Programming Language</i>"
in
"_site/scholar.html"
And
I should see
"<i>Smalltalk Best Practice Patterns</i>"
in
"_site/scholar.html"
@tags
@filter
@variables
@wip
@tags
@filter
@variables
Scenario
:
Filter using interpolated query variable
Given I have a scholar configuration with
:
|
key
|
value
|
...
...
lib/jekyll/scholar/utilities.rb
View file @
44ce4d20
...
...
@@ -239,7 +239,7 @@ module Jekyll
'entry'
=>
liquidify
(
entry
),
'reference'
=>
reference_tag
(
entry
,
index
),
'key'
=>
entry
.
key
,
'type'
=>
entry
.
type
,
'type'
=>
entry
.
type
.
to_s
,
'link'
=>
repository_link_for
(
entry
),
'index'
=>
index
})
...
...
@@ -249,7 +249,7 @@ module Jekyll
e
=
{}
e
[
'key'
]
=
entry
.
key
e
[
'type'
]
=
entry
.
type
e
[
'type'
]
=
entry
.
type
.
to_s
if
entry
.
field?
(
:abstract
)
tmp
=
entry
.
dup
...
...
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