Jonathan Allard
42e31c8c5e
Make .html implicit for page IDs ( #1996 )
...
* Make .html implicit for page IDs
* Add Pry gem
* Add setting :page_id_generator to override page ID derivation
2016-11-16 21:00:16 -08:00
sandstrom
046d15cfa5
Fix addressable require ( #2009 )
2016-11-16 20:59:25 -08:00
Thomas Reynolds
62dba443a0
Fix japanese characters encoding in URLs
2016-07-10 17:03:22 -07:00
Thomas Reynolds
51ccfe1143
only encode if current path is broken
2016-05-25 11:25:24 -07:00
Thomas Reynolds
4ffaa9dde5
Try to encode URI before parsing so spaces in paths work. Fixes #1914
2016-05-25 11:13:59 -07:00
Ben Hollis
38a9025560
Fix asset_url with asset_hash ( #1919 )
...
* Fix asset_url with asset_hash.
* Fix asset hashes.
2016-05-22 12:31:53 -07:00
Nick Giancola
8a8ee768ac
Fix/issue 1889 ( #1892 )
...
* Add regression test for infinite loop issue in Util::step_through_extensions (#1889 )
* Prevent infinite loop when encountering files where base filename is a possible templating engine
2016-04-25 09:50:51 -07:00
Thomas Reynolds
13d62cb276
Experiment with non-rack rewriters
2016-04-22 15:52:42 -07:00
Thomas Reynolds
0f2bc1e0ea
Minor perf tweaks
2016-04-21 16:12:33 -07:00
Thomas Reynolds
b794961916
Only rewrite urls in sitemap. Fixes #1873
2016-04-12 12:53:50 -07:00
Thomas Reynolds
49da6156a0
Fixes #1860
2016-03-26 15:17:09 -07:00
Adam Heath
025e35f6a1
Fix asset_hash with content rule and uncommented CSS url
...
Fixes middleman/middleman#1852
2016-03-22 17:34:40 +08:00
Gregory McIntyre
0436c211c6
Fix asset_url and relative option bug.
...
If the relative option is set and the asset is stored in the directory
alongside the resource referencing it, asset_url produces the
wrong path ('../images/image.jpg' rather than just 'image.jpg').
2016-03-19 13:42:41 +11:00
Adam Heath
d883152e99
Add sourceMap comment to asset_hash and hash .map files by default
2016-02-26 08:46:00 +08:00
Thomas Reynolds
0d983231d0
Run helper after collections. Fixes #1226
2016-02-24 14:20:42 -08:00
Thomas Reynolds
edb1a53060
Add page_id concept
2016-02-22 11:17:21 -08:00
Steven Sloan
fc0f5d24d6
feat(data): allow for setting & getting Arrays through #store & #data_for_path
...
Seeing that in #touch_file that a value in data could be an Array or Hash, loosen contracts to allow for other storage & retrieval methods to set the same types. Array & Hash being allowable is strongly tied to what *could* be returned after passing through Util.recursively_enhance
[close #1803 ]
2016-02-17 17:20:24 -05:00
Thomas Reynolds
3f18efeed9
split up util module, fix some rubocop complaints
2016-01-31 14:13:52 -08:00
Thomas Reynolds
5586784947
Add some options to watcher to opt out of features later
2016-01-20 13:34:12 -08:00
Thomas Reynolds
ffa662a917
Add system-wide file read cache
2016-01-20 11:50:25 -08:00
Thomas Reynolds
5f8beba4b3
Perf
2016-01-14 11:05:41 -08:00
Thomas Reynolds
c213bd19df
Move block run
2016-01-12 17:11:56 -08:00
Thomas Reynolds
4594f46fb8
Minor tweak to #1695
2015-11-27 14:16:55 -08:00
Eliott Appleford
19d21d2295
make frontmatter delims configurable
2015-10-23 09:40:24 +00:00
Thomas Reynolds
fd6a2376bd
Fix frontmatter on 2.0
2015-10-01 10:25:53 -07:00
Eliott Appleford
b389c26b4e
Fix frontmatter regex
2015-09-30 04:58:59 +00:00
Eliott Appleford
9df1a45301
Strip newline after frontmatter
...
Closes #1610
2015-09-30 05:00:57 +01:00
Eliott Appleford
97cd1c1411
Fix JSON frontmatter parsing
2015-09-24 20:27:36 +01:00
Thomas Reynolds
fe66beacc3
Test fix WIP
2015-09-23 16:20:16 -07:00
Eliott Appleford
ddc4a3cabc
Update data.rb
2015-09-23 23:40:42 +01:00
Eliott Appleford
47bdcb2d9c
Fix frontmatter parsing changes from #1608
...
Only allow frontmatter at the top of the page:
Now manually removing encoding lines as before
Fix handling of postscript data:
If there is no frontmatter and the filetype is known,
parse the whole file
Allow empty frontmatter
Update the documentation comments
2015-09-23 21:45:52 +00:00
Eliott Appleford
91a06a1a35
Refactor util/data.rb further
2015-09-20 12:34:15 +00:00
Eliott Appleford
62f431b5ae
Refactor frontmatter parsing
...
Closes #1603
2015-09-20 12:24:48 +00:00
Thomas Reynolds
409a892da7
Forward port some stable changes
2015-09-17 09:41:17 -07:00
Thomas Reynolds
bb6b8c7f13
Replace Hamster hash for user-accessible data with Hashie Indifferent access
2015-08-12 15:29:06 -07:00
Thomas Reynolds
7383f67874
Implement yaml data postscript
2015-06-16 15:30:37 -07:00
Thomas Reynolds
22ce56492f
Experiment with Hamster
2015-04-24 10:28:03 -07:00
Thomas Reynolds
e4b7d4fff0
begin prepping beta.1
2015-02-07 13:38:29 -08:00
Steven Sloan
14e1cb1cd6
move all HashWithIndifferentAccess recursive enhancement over to the Util class
...
TODO: moving this two a class method on HashWithIndifferentAccess would really make the most sense, but there are two blockers:
- historically the method has operated out of Util. While totally ok, simply dedeferring to HashWithIndifferentAccess feels a bit awkward
- the contracts gem doesn’t support class method at this time. the assurance of frozen output is important considering the uses of the recursively_enhance method
2015-01-15 03:30:26 -05:00
Thomas Reynolds
5c18b85a8e
more freeze fixin
2014-08-24 18:11:56 -07:00
Thomas Reynolds
c3492b1f7b
Fix partial lookup
2014-08-24 14:38:06 -07:00
Thomas Reynolds
767db6ff26
Frozen works strangely on nils
2014-07-23 22:09:46 -07:00
Thomas Reynolds
1f3e2043cb
Deep freeze IndifferentAccess.
2014-07-14 13:19:34 -07:00
Thomas Reynolds
332ce2bebc
slight util reorg
2014-07-14 09:50:44 -07:00