Commit b35ce69e authored by Thomas Wood's avatar Thomas Wood

Details page page.title variable should use filtered entry

parent 44f93965
......@@ -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"
......
......@@ -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
......
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