pages' permalink' extnames must be respected

This reverts a bit of the work @willnorris had made to support
extensionless permalinks. Using the ‘permalink’ front matter will no
longer work as it must allow non-html extensions to be written.
This commit is contained in:
Parker Moore 2016-01-18 13:45:17 -08:00
parent 5cf5ce979f
commit 2de5bacb41
3 changed files with 1 additions and 3 deletions

View File

@ -1,7 +1,7 @@
--- ---
layout: default layout: default
title : Page inside + title : Page inside +
permalink: /+/plus+in+url permalink: /+/plus+in+url.html
--- ---
Line 1 Line 1
{{ page.title }} {{ page.title }}

View File

@ -1,6 +1,5 @@
--- ---
title: Deal with dots title: Deal with dots
permalink: /deal.with.dots
--- ---
Let's test if jekyll deals properly with dots. Let's test if jekyll deals properly with dots.

View File

@ -69,7 +69,6 @@ class TestPage < JekyllUnitTest
@dest_file = dest_dir("deal.with.dots.html") @dest_file = dest_dir("deal.with.dots.html")
assert_equal "deal.with.dots", @page.basename assert_equal "deal.with.dots", @page.basename
assert_equal "/deal.with.dots", @page.url
assert_equal @dest_file, @page.destination(dest_dir) assert_equal @dest_file, @page.destination(dest_dir)
end end