Commit Graph

61 Commits

Author SHA1 Message Date
jekyllbot
9a740bc447 Merge pull request #5934 from ashmaroli/appease-classifier
Merge pull request 5934
2017-03-06 20:58:51 -05:00
Ashwin Maroli
635e3365cc appease classifier-reborn 2017-03-04 23:29:04 +05:30
Parker Moore
3e4dbc83e3 Attempt to alleviate strange Windows encoding error.
Error:
TestGeneratedSite#test_: generated sites should render latest post's content. :
Encoding::CompatibilityError: incompatible character encodings: IBM437 and UTF-8
    C:/projects/jekyll/test/test_generated_site.rb:22:in `include?'
    C:/projects/jekyll/test/test_generated_site.rb:22:in `block (2 levels) in <class:TestGeneratedSite>'
    C:/projects/jekyll/test/test_generated_site.rb:34:in `instance_exec'
    C:/projects/jekyll/test/test_generated_site.rb:34:in `block in create_test_from_should_hash'
2017-03-01 22:36:25 -05:00
Parker Moore
8a0c0727ea Failing test: abbreviated post dates are no longer read.
This is a regression introduced by https://github.com/jekyll/jekyll/pull/5609.
2017-03-01 21:38:55 -05:00
XhmikosR
d9cf97e9c6 Switch to https when possible.
Also, remove two 404 links.
2016-11-29 23:39:23 +02:00
Eldritch Cheese
a55760d4ad Added unit test for special character, fixed error that it exposed. 2016-11-26 22:31:03 -05:00
Eloy Espinaco
9b09d8a8e8 Add support for indented link references on excerpt
Excerpt link reference extraction is missing all the indented references
at the bottom of the page. Markdown specify that those can be indented up
to three spaces.
2016-09-02 17:21:10 -03:00
Parker Moore
cb5bc1093e utils: has_yaml_header? should accept files with extraneous spaces
Occasionally, extra spaces at the end of the YAML front matter prologue are
saved to a file and it goes missing without telling the user why. This
should simply accept those changes without any detriment to the user,
allowing anyone to add as many spaces as they like to the end of their
front matter prologues.
2016-01-04 14:09:30 -08:00
Will Norris
669c803912 always include file extension on destination files
This ensures that destination files for HTML posts, pages and
collections always include the proper file extension (as defined by
output_ext) regardless of permalink structure.  This allows for URLs
that contain no extension or trailing slash to still result in proper
destination files with .html extensions.

Because this change relies so heavily on output_ext accurately
identifying the extension of the destination file, this change also
removes the feature test that tested support for permalinks with a .htm
extension.  In order to support alternate file extensions, a future
patch or plugin will need to modify the output_ext value, at which point
everything else should work as expected.
2015-03-02 21:20:54 -08:00
Will Norris
dae77e9a63 switch remaining textile test files to markdown
Textile support was removed from jekyll core in #3319, and most of the
tests switched to markdown at that time.  This changes the remaining
tests to use markdown as well.  The vast majority of the test cases were
testing things in the file name or front matter, so it doesn't really
matter what markup format they use.  The one test that was claiming to
test that textile was transformed had actually been moved to markdown as
well, just not renamed.

Fixes #3507
2015-02-27 18:29:52 -08:00
ChaYoung You
7db9397a9d Remove trailing whitespace 2015-02-22 20:27:15 +09:00
Parker Moore
9d547f74cc Make all the tests happy. 2015-01-17 16:52:12 -08:00
Parker Moore
84cfc1ceff Merge branch 'majioa-devel'
* majioa-devel:
  Ensure Post#excerpt_separator always returns a string.
  get procedure for default excerpt separator for both cases site and page was moved to the post's specific method :excerpt_separator.
  Added per post excerpt_separator functionality, so you are able to specify :excerpt_separator (as well as just :excerpt) key direct inside the post YAML, to make an excerpt based on the value in the post. Tests were also added.
2015-01-17 15:01:20 -08:00
Parker Moore
ba2e1390ad Merge pull request #2571 from yous/patch-mixed-case-category 2015-01-17 14:55:30 -08:00
Malo Skrylevo
54d0bf47e8 Added per post excerpt_separator functionality, so you are able to
specify :excerpt_separator (as well as just :excerpt) key direct inside
the post YAML, to make an excerpt based on the value in the post. Tests
were also added.
2015-01-08 15:18:06 +03:00
Brandon Bradley
d250efccb9 add test for broken markdown regexp 2014-11-24 19:56:26 -06:00
Garen Torikian
e7c8bbf5df Test that includes relative to self are included 2014-09-07 11:24:44 -07:00
Garen Torikian
9f558d1cec Rename tag to include_relative 2014-09-06 21:48:15 -07:00
Garen Torikian
aa97f1025d Support a new relative_include tag 2014-09-03 15:43:51 -07:00
ChaYoung You
3768d90278 Use category in downcase only for URL (Resolves #1739) 2014-08-07 11:27:41 +09:00
Ivan Tse
83f726f503 Add tests for include tag with partial variables 2014-08-05 01:04:20 -04:00
Terry Schmidt
0371b69952 Set categor[y|ies] on post if they appear in site frontmatter defaults 2014-05-09 13:34:13 -05:00
Parker Moore
806f43cdbc Merge pull request #1568 from nitoyon/url-escape 2014-04-02 14:09:09 -04:00
Lincoln Mullen
52ac2b3850 Permit YAML blocks to end with three dots
The YAML spec permits blocks to end with three dots (...) in addition to
three dashes (---): http://www.yaml.org/spec/1.2/spec.html#id2760395. Some
programs that work with Jekyll (e.g., Pandoc) prefer the dots to dashes. This
commit permits the YAML metadata block to end with either dots or dashes. It
includes tests.

Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-04-02 14:06:22 -04:00
nitoyon
eebb6414bf Fix Post#url escape
Post#url was escaped using CGI.escape.
When file name contains a space character, its url points to
non-existing URL.

For example, when we have a post named '2014-01-02-foo bar.md',
we expect its url to be '/2014/01/02/foo%20bar.html',
but it was actually '/2014/01/02/foo+bar.html'.

We now define Jekyll::URL.escape_path and Jekyll::URL.unescape_path,
and use them to escape and unescape Post#url
2014-03-21 16:57:40 +00:00
XhmikosR
553338636b Trim trailing spaces and convert tabs to spaces. 2014-03-11 07:44:01 +02:00
Ben Balter
0acbe95797 test multiple traversals
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Ben Balter
9e796d0627 failing test
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Matt Rogers
a2fd8ba7c3 Merge pull request #1849 from afeld/sort-attributes 2013-12-30 20:31:45 -08:00
Aidan Feldman
2bfafb3b33 make non-data properties/methods accessible to Liquid
per https://github.com/jekyll/jekyll/pull/1849/files#r8490593
2013-12-22 03:38:32 -05:00
Jens Nazarenus
f9ffbe0d6a removed duplicate test scenario 2013-12-19 18:23:07 +01:00
Jens Nazarenus
43ef9a2e4f variables in include tag with filters 2013-12-17 23:51:52 +01:00
Thomas Torsney-Weir
c983f38cc9 add test to demonstrate issue with markdown extension parsing. adding mkd as an extension should not cause mkdn files to also be markdownified 2013-08-06 10:52:24 +02:00
Parker Moore
95491eb7e7 update categories on the new post to not fuck up old numbers 2013-07-22 13:04:07 +02:00
Parker Moore
3418a9197a Add categories and tags and test #to_liquid 2013-07-22 12:57:03 +02:00
Parker Moore
81a7b22672 Add a new post, bump @site.posts.size 2013-07-22 12:22:47 +02:00
Rafael Revi
528c94e481 new test case: numbers in categories 2013-05-10 02:20:43 -04:00
Parker Moore
9179f56ed7 Quick clean-up from #998. 2013-05-05 14:59:50 +02:00
Dave Cole
805f378586 Add test for nested post_url 2013-04-29 17:48:10 -04:00
maul.esel
bcda51f97b do not allow markdown etc. in excerpt
Adjust the tests accordingly. Also
add a message for one of the tests.
2013-04-11 21:02:08 +02:00
maul.esel
b10e06ce47 new test: ensure the correct excerpt is exposed to liquid
Also shorten test code a little bit.
2013-04-11 19:33:32 +02:00
maul.esel
0113fea7a1 Add tests for using custom excerpt 2013-04-11 14:26:20 +02:00
Parker Moore
8f890cb064 Fix tests that fail due to having a directory that looks like a post 2013-03-19 21:59:43 +01:00
Aleksey V Zapparov
22dcc4e20f Adds excerpt to posts 2013-03-04 17:13:25 +01:00
Parker Moore
5a3e05dbff Ensuring that layout is only set to the default value if layout is not specified 2013-01-12 15:31:14 -08:00
Derek Prior
5801220a98 Added the ability to configure the file extensions to be processed by each converter. Test cases included. 2011-04-12 17:03:28 -04:00
Kris Brown
e4a2319bf3 added tests to show how date and tags can end up having the wrong value when rendered 2010-02-26 21:24:32 +00:00
Kris Brown
a0aa3fa6dc Merge branch 'enh_post_date_in_front_matter_issue_62' 2010-01-10 21:58:34 +00:00
Kris Brown
a1550b3378 allow date to be specified in the front matter and override the value from the file name, fixes #62 and #38 2010-01-10 21:55:54 +00:00
Kris Brown
2292e4268c added tests for handling of tags and catergories, see #73 and #84 2010-01-10 16:12:41 +00:00