Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport add-test-for-layout-as-string from #6445 to 3.6-stable #6453

Merged
merged 1 commit into from Oct 20, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 20 additions & 0 deletions features/layout_data.feature
Expand Up @@ -3,6 +3,26 @@ Feature: Layout data
I want to be able to embed data into my layouts
In order to make the layouts slightly dynamic

Scenario: Use custom layout data
Given I have a _layouts directory
And I have a "_layouts/999.html" file with content:
"""
---
---
{{ content }} layout content
"""
And I have an "index.html" page with layout "custom" that contains "page content"
And I have an "index.html" file with content:
"""
---
layout: 999
---
page content
"""
When I run jekyll build
Then the "_site/index.html" file should exist
And I should see "page content layout content" in "_site/index.html"

Scenario: Use custom layout data
Given I have a _layouts directory
And I have a "_layouts/custom.html" file with content:
Expand Down