Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #217 from whostolemyhat/ignore-querystrings
Ignore querystrings
- Loading branch information
Showing
8 changed files
with
87 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>test</title> | ||
</head> | ||
<body> | ||
<h1>{{ path }}</h1> | ||
|
||
{{ content }} | ||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>My blog - {{ path }}</title> | ||
</head> | ||
<body> | ||
{{ content }} | ||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
extends: default.liquid | ||
--- | ||
This is my Index page! | ||
|
||
{% for post in posts %} | ||
<a href="{{post.path}}">{{ post.title }}</a> | ||
{% endfor %} | ||
|
||
{% for post in posts %} | ||
<a href="{{post.path}}?v=123456">{{ post.title }}</a> | ||
{% endfor %} |
8 changes: 8 additions & 0 deletions
8
tests/fixtures/querystrings/posts/2014-08-24-my-first-blogpost.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
extends: posts.liquid | ||
|
||
title: Querystrings | ||
date: 9 May 2017 07:05:20 +0100 | ||
--- | ||
# {{ title }} | ||
|
||
This asserts that files can be loaded with and without querystrings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>test</title> | ||
</head> | ||
<body> | ||
<h1>index.html</h1> | ||
|
||
This is my Index page! | ||
|
||
|
||
<a href="posts/2014-08-24-my-first-blogpost.html">Querystrings</a> | ||
|
||
|
||
|
||
<a href="posts/2014-08-24-my-first-blogpost.html?v=123456">Querystrings</a> | ||
|
||
|
||
</body> | ||
</html> | ||
|
12 changes: 12 additions & 0 deletions
12
tests/target/querystrings/posts/2014-08-24-my-first-blogpost.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>My blog - posts/2014-08-24-my-first-blogpost.html</title> | ||
</head> | ||
<body> | ||
<h1>Querystrings</h1> | ||
<p>This asserts that files can be loaded with and without querystrings</p> | ||
|
||
</body> | ||
</html> | ||
|