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
293f013d
Commit
293f013d
authored
Jun 16, 2015
by
egon w. stemle
Committed by
egon w. stemle
Jun 22, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Activate jekyll filters
parent
9ac906e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
features/filter.feature
features/filter.feature
+34
-0
lib/jekyll/scholar/utilities.rb
lib/jekyll/scholar/utilities.rb
+1
-0
No files found.
features/filter.feature
View file @
293f013d
...
...
@@ -38,6 +38,40 @@ Feature: BibTeX
And
I should see
"Programming Ruby"
in
"_site/scholar.html"
And
I should not see
"The Ruby Programming Language"
in
"_site/scholar.html"
@tags
@filters
Scenario
:
Jekyll Filters
Given I have a scholar configuration with
:
|
key
|
value
|
|
source
|
./_bibliography
|
|
bibliography_template
|
template
|
And
I have a
"_bibliography"
directory
And I have a file "_bibliography/references.bib"
:
"""
@book{ruby:2008-Foo,
title = {The Ruby Programming Language},
author = {Flanagan, David and Matsumoto, Yukihiro},
year = {2008},
publisher = {O'Reilly Media}
}
"""
And
I have a
"_layouts"
directory
And I have a file "_layouts/template.html"
:
"""
---
---
{{ entry.key | slugify }}
"""
And I have a page "scholar.html"
:
"""
---
---
{% bibliography %}
"""
When
I run jekyll
Then
the _site directory should exist
And
the
"_site/scholar.html"
file should exist
And
I should see
"ruby-2008-foo"
in
"_site/scholar.html"
@tags
@max
Scenario
:
Limit number of entries
Given I have a scholar configuration with
:
...
...
lib/jekyll/scholar/utilities.rb
View file @
293f013d
...
...
@@ -255,6 +255,7 @@ module Jekyll
def
liquid_template
return
@liquid_template
if
@liquid_template
Liquid
::
Template
.
register_filter
(
Jekyll
::
Filters
)
tmp
=
bibliography_template
...
...
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