Parker Moore
7ad0597bff
Make our own Minitest::Test subclass for further subclassing
2015-02-21 00:33:47 -08:00
Parker Moore
4b59eb4175
Fix the test inheritance for the tests.
2015-02-20 13:35:02 -08:00
Parker Moore
0c624eb11b
The :title URL placeholder for collections should be the filename slug.
...
This mimicks posts most closely. It can be overridden by the
YAML front matter.
Undoes some of #2864 .
2015-01-30 01:53:11 -08:00
Parker Moore
b2099ac763
Merge branch 'davidized-collection_yaml_dots'
...
* davidized-collection_yaml_dots:
Move YAML Front Matter regexp into a constant.
Add support for collections documents to have YAML front matter ending in dots.
Conflicts:
test/test_collections.rb
2015-01-17 15:24:33 -08:00
Parker Moore
502fd94f2c
Merge pull request #3172 from alfredxing/docs-output-overrides
2015-01-05 23:19:12 -08:00
Alfred Xing
7655b533c9
Allow documents to set `published` in front matter
2015-01-05 16:11:02 -08:00
nitoyon
5e10958faa
Unescape Document output path
...
Document#destination wasn't unescaped properly.
For example, when we have a document named '_langs/c#.md',
we expect its url to be '/langs/c#.html',
but it was actually '/langs/c%23.html'.
We now unecape URL at Document#destination like Post#destination and
Page#destination.
2014-12-29 22:38:50 +09:00
Parker Moore
e39dfa3f0b
Merge pull request #2908 from alfredxing/document-path
2014-12-29 00:26:35 -05:00
Alfred Xing
dc30114605
Use site.in_source_dir
2014-11-23 16:16:19 -08:00
Alfred Xing
ac03af3229
Implement @mattr-'s suggestions
2014-11-21 22:12:21 -08:00
Alfred Xing
fe6bfc6f1b
Fix failing tests
2014-11-21 22:12:21 -08:00
David Williamson
d7e3d4df8f
Add support for collections documents to have YAML front matter ending in dots.
2014-11-20 14:38:17 -06:00
Parker Moore
4078bde3ba
More passing tests.
2014-11-03 22:15:41 -08:00
Parker Moore
461e16f8bc
More tests are passing. Hooray.
2014-11-03 22:15:40 -08:00
Parker Moore
73ca205a5c
Add test for Document#basename_without_ext
2014-10-12 14:33:13 -07:00
Alfred Xing
6c0e791236
Use relative path for `path` Liquid variable in Documents
2014-09-10 21:04:40 -07:00
Chris Frederick
be2b16507e
Test documents without a title
2014-09-01 13:32:31 +09:00
Chris Frederick
a5e51cfdbe
Properly handle titles with trailing punctuation
2014-09-01 13:25:38 +09:00
Chris Frederick
4dec3c8c6b
Test titles in document permalinks
2014-09-01 13:04:54 +09:00
Chris Frederick
cc4a0d1704
Change :title to :name
2014-08-26 11:26:19 +09:00
Chris Frederick
e8b00fb6f2
Add the 'title' variable to collection permalinks
2014-08-23 14:50:55 +09:00
Parker Moore
530e049d2d
Read in static files info `collection.files` as `StaticFile`s.
2014-08-12 15:59:45 -04:00
Parker Moore
81807cb5af
Merge pull request #2615 from alfredxing/collections-static-files
2014-08-02 14:44:45 -04:00
Alfred Xing
bd59fa14f3
Add tests for static files in collections
2014-08-02 09:00:03 -07:00
kleinfreund
0ed02e9c1e
Replacing front-matter/frontmatter with front matter
2014-08-01 10:07:09 +02:00
Alfred Xing
ce1f01c494
Modify tests a bit
2014-07-07 10:49:36 -07:00
Alfred Xing
a13a4ca532
Solidify document permalink tests
2014-07-07 10:39:22 -07:00
Alfred Xing
f830120044
Add test for document permalink
2014-07-07 10:28:03 -07:00
Parker Moore
d59b2c3ef6
Merge pull request #2419 from jens-na/collection-defaults
2014-06-12 20:38:21 -04:00
Bud Parr
dc622470c9
add test for collection name
2014-06-02 15:12:21 -04:00
Jens Nazarenus
ae67940544
Adds the missing tests for #2405
2014-06-01 22:21:31 +02:00
Jens Nazarenus
e868a8437f
Includes tests for frontmatter defaults in documents
2014-06-01 22:21:31 +02:00
Parker Moore
37a7236e20
Homagah it all renders I think.
2014-04-14 22:46:21 -04:00
Parker Moore
90807ac6e7
DEM TESTS
2014-04-14 22:44:29 -04:00