Commit f1a42aba authored by Sylvester Keil's avatar Sylvester Keil
Browse files

Merge pull request #131 from edgemaster/pr-131

Details page page.title variable should use LaTeX filtered entry
parents 44f93965 b35ce69e
...@@ -60,6 +60,7 @@ Feature: Details ...@@ -60,6 +60,7 @@ Feature: Details
<html> <html>
<head></head> <head></head>
<body> <body>
Page title: {{ page.title }}
Title: {{ page.entry.title }} Title: {{ page.entry.title }}
{{ page.entry.bibtex }} {{ page.entry.bibtex }}
</body> </body>
...@@ -68,6 +69,7 @@ Feature: Details ...@@ -68,6 +69,7 @@ Feature: Details
When I run jekyll When I run jekyll
Then the _site directory should exist Then the _site directory should exist
And the "_site/bibliography/ruby.html" file 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 ä!" 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"
...@@ -93,6 +95,7 @@ Feature: Details ...@@ -93,6 +95,7 @@ Feature: Details
<html> <html>
<head></head> <head></head>
<body> <body>
Page title: {{ page.title }}
Title: {{ page.entry.title }} Title: {{ page.entry.title }}
{{ page.entry.bibtex }} {{ page.entry.bibtex }}
</body> </body>
...@@ -101,6 +104,7 @@ Feature: Details ...@@ -101,6 +104,7 @@ Feature: Details
When I run jekyll When I run jekyll
Then the _site directory should exist Then the _site directory should exist
And the "_site/bibliography/ruby.html" file 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"
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"
......
...@@ -15,8 +15,8 @@ module Jekyll ...@@ -15,8 +15,8 @@ module Jekyll
process(@name) process(@name)
read_yaml(File.join(base, '_layouts'), config['details_layout']) 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.merge!(reference_data(entry))
data['title'] = data['entry']['title'] if data['entry'].has_key?('title')
end end
end end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment