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
8c893e69
Commit
8c893e69
authored
Jan 13, 2016
by
Sylvester Keil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose entry title as page title on detail pages
Fixes #120
parent
e091ab59
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
features/details.feature
features/details.feature
+5
-2
lib/jekyll/scholar/generators/details.rb
lib/jekyll/scholar/generators/details.rb
+1
-0
No files found.
features/details.feature
View file @
8c893e69
...
...
@@ -3,7 +3,7 @@ Feature: Details
I want to publish my BibTeX bibliography on my blog
And I want Jekyll to generate detail pages for all the entries in my bibliography
@generators
@generators
@wip
Scenario
:
A
bibliography with a single entry
Given I have a scholar configuration with
:
|
key
|
value
|
...
...
@@ -16,6 +16,7 @@ Feature: Details
title = {The Ruby Programming Language},
author = {Flanagan, David and Matsumoto, Yukihiro},
year = {2008},
comment = {A Comment},
publisher = {O'Reilly Media}
}
"""
...
...
@@ -27,7 +28,8 @@ Feature: Details
<html>
<head></head>
<body>
{{ page.entry.title }}
{{ page.title }}
{{ page.entry.comment }}
</body>
</html>
"""
...
...
@@ -35,6 +37,7 @@ Feature: Details
Then
the _site directory should exist
And
the
"_site/bibliography/ruby.html"
file should exist
And
I should see
"The Ruby Programming Language"
in
"_site/bibliography/ruby.html"
And
I should see
"A Comment"
in
"_site/bibliography/ruby.html"
@generators
Scenario
:
LaTeX conversion is applied to everything except the bibtex field
...
...
lib/jekyll/scholar/generators/details.rb
View file @
8c893e69
...
...
@@ -15,6 +15,7 @@ module Jekyll
process
(
@name
)
read_yaml
(
File
.
join
(
base
,
'_layouts'
),
config
[
'details_layout'
])
data
[
'title'
]
=
entry
.
title
.
to_s
data
.
merge!
(
reference_data
(
entry
))
end
...
...
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