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
f1a42aba
Commit
f1a42aba
authored
Feb 04, 2016
by
Sylvester Keil
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #131 from edgemaster/pr-131
Details page page.title variable should use LaTeX filtered entry
parents
44f93965
b35ce69e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
features/details.feature
features/details.feature
+4
-0
lib/jekyll/scholar/generators/details.rb
lib/jekyll/scholar/generators/details.rb
+1
-1
No files found.
features/details.feature
View file @
f1a42aba
...
...
@@ -60,6 +60,7 @@ Feature: Details
<html>
<head></head>
<body>
Page title: {{ page.title }}
Title: {{ page.entry.title }}
{{ page.entry.bibtex }}
</body>
...
...
@@ -68,6 +69,7 @@ Feature: Details
When
I run jekyll
Then
the _site directory should exist
And
the
"_site/bibliography/ruby.html"
file should exist
And I should see "Page title
:
An
Umlaut ä!" in
"_site/bibliography/ruby.html"
And I should see "Title
:
An
Umlaut ä!" in
"_site/bibliography/ruby.html"
And
I should see
"title = {An Umlaut \\\"
a!}" in
"_site/bibliography/ruby.html"
...
...
@@ -93,6 +95,7 @@ Feature: Details
<html>
<head></head>
<body>
Page title: {{ page.title }}
Title: {{ page.entry.title }}
{{ page.entry.bibtex }}
</body>
...
...
@@ -101,6 +104,7 @@ Feature: Details
When
I run jekyll
Then
the _site directory should exist
And
the
"_site/bibliography/ruby.html"
file should exist
And I should see "Page title
:
An
Umlaut \\\"a!" in
"_site/bibliography/ruby.html"
And I should see "Title
:
An
Umlaut \\\"a!" in
"_site/bibliography/ruby.html"
And
I should see
"title = {An Umlaut \\\"
a!}" in
"_site/bibliography/ruby.html"
...
...
lib/jekyll/scholar/generators/details.rb
View file @
f1a42aba
...
...
@@ -15,8 +15,8 @@ module Jekyll
process
(
@name
)
read_yaml
(
File
.
join
(
base
,
'_layouts'
),
config
[
'details_layout'
])
data
[
'title'
]
=
entry
.
title
.
to_s
if
entry
.
field?
(
:title
)
data
.
merge!
(
reference_data
(
entry
))
data
[
'title'
]
=
data
[
'entry'
][
'title'
]
if
data
[
'entry'
].
has_key?
(
'title'
)
end
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