Bjørn Erik Pedersen
ef9b915680
Revert "Throw a noisy error when a post has no layout"
...
We have to figure out another way. There are perfectly valid reasons not having a layout for a page (I have have some broken sites as result of this).
See #1313
This reverts commit b15934008f
.
2016-07-14 11:29:21 +02:00
Aditya Bhargava
b15934008f
Throw a noisy error when a post has no layout
...
Fixes #1313
2016-07-13 23:57:18 +02:00
Bjørn Erik Pedersen
1d7f4413f5
Consolidate the Render funcs
2016-07-10 11:36:25 +02:00
Vincent Batoufflet
b8af06f26a
Make auto-date disabled by default
...
Fixes #2244
Closes #2260
2016-07-08 14:43:10 +02:00
Bjørn Erik Pedersen
e6d97c4fca
Add Rst shortcode test
...
Fixes #2253
2016-07-04 10:49:20 +02:00
Bjørn Erik Pedersen
5388211c11
Add Asciidoc shortcode test
...
Fixes #2249
2016-07-04 00:33:08 +02:00
Vincent Batoufflet
eda3678742
Add automatic page date fallback
...
Closes #2239
2016-06-28 23:50:50 +02:00
Bjørn Erik Pedersen
cdd6a124c2
Add test for shortcode in fenced code block
...
Which I expected to fail, but it doesn't ...
See #2223
2016-06-26 19:46:29 +02:00
Cameron Moore
e2aea65170
helpers: Remove ToReader funcs
...
Remove StringToReader and BytesToReader in favor of using the stdlib directly.
2016-06-25 17:57:05 -05:00
Bjørn Erik Pedersen
714d4a9a97
Fix failing Windows test
...
Closes #2225
2016-06-18 13:58:54 +02:00
Kishin Yagami
44edd9382a
Add tests for embedded shortcodes
...
Fixes #1956
Closes #2204
2016-06-18 11:49:55 +02:00
Bjørn Erik Pedersen
34f40044d7
Fix shortcode in markdown headers
...
This issue was introduced as a fix to shortcode not working in RST.
One could argue that Blackfriday and friends should handle `#` in titles, but that will be a discussion
for another day.
The new placeholder pattern should be RST safe and work with titles.
And now with a test so this doesn't break again.
Fixes #2192
Fixes #2209
Closes #2210
2016-06-15 09:12:07 +02:00
Bjørn Erik Pedersen
8588103316
Unexport ShouldBuild and AssertShouldBuild
2016-06-14 15:53:49 +02:00
Hanchen Wang
eeaafb4b26
hugolib: futureStats plural
2016-06-14 15:45:27 +02:00
Hanchen Wang
fb0c1350d4
hugolib: Handle unpecified date for IsFuture and IsExpired
2016-06-14 15:45:26 +02:00
Hanchen Wang
673e41bf6a
hugolib: Add expiredStats to build feedback
2016-06-14 15:45:26 +02:00
Hanchen Wang
32c0e3fd1f
hugolib: Bug fix futureStats
2016-06-14 15:45:26 +02:00
Hanchen Wang
4724a5794e
hugolib: Refactor page.ShouldBuild and table driven test
2016-06-14 15:45:26 +02:00
Hanchen Wang
c1c8ecc9d6
hugolib: Add GroupByExpireDate function
2016-06-14 15:45:26 +02:00
Hanchen Wang
091915c75d
hugolib: Add sort ByExpiryDate function
2016-06-14 15:45:25 +02:00
Hanchen Wang
6472f158a4
hugelib: Add expiredCount as a Site variable
2016-06-14 15:45:25 +02:00
Hanchen Wang
d4156e6127
hugolib: Support an expiration date
2016-06-14 15:45:25 +02:00
Sam Broughton
75deb923d9
Remove unneeded casts in page.getParam
...
Closes #2186
2016-06-09 15:40:06 +02:00
Bjørn Erik Pedersen
a7f51703c4
Add Hugo generator tag to home page if not present
...
Fixes #2182
2016-06-04 21:55:56 -04:00
Steve Francia
f94cd2813d
Handle errors during rereading properly
...
Without this fix, any error during rereading would cause Hugo to hang.
Fixes #2168
Closes #2179
2016-06-02 23:47:30 +02:00
Bjørn Erik Pedersen
608cfe62cf
Remove kr/pretty dependency
...
Fixes #2124
See https://github.com/kr/text/issues/6
2016-05-08 13:16:16 +02:00
Bjørn Erik Pedersen
10af906371
Add ByLastmod page sort
2016-04-22 20:43:18 +02:00
Sven Dowideit
22683a3b66
Make alias redirect output URL's relative
...
Closes #2093
2016-04-22 08:14:19 +02:00
Anthony Fok
9ddf52021b
Update import path of fsnotify
...
Rename "gopkg.in/fsnotify.v1" to "github.com/fsnotify/fsnotify"
per upstream recommendation.
See https://github.com/fsnotify/fsnotify/issues/108 for rationale.
2016-04-20 22:28:26 +08:00
Bjørn Erik Pedersen
77159b4b9b
Add some schemaless BaseURL tests
...
See #2085
2016-04-17 20:01:21 +02:00
Mattias Wadman
5d50c46482
Chomp Unicode BOM if present
...
Useful if using or sharing files with users that use editors that
append a unicode byte order marker header (like Windows notepad).
This will still assume files are UTF-8 encoded.
Closes #2075
2016-04-14 10:46:27 +02:00
Bjørn Erik Pedersen
206440eef2
Fix broken tests
2016-04-12 19:18:02 +02:00
Bjørn Erik Pedersen
c3d28d2897
Revert "Add Node.ID"
...
This reverts commit 5ef52294f9
.
2016-04-12 18:11:52 +02:00
Bjørn Erik Pedersen
39c9ae3108
Revert "Use Node.ID for anchor ID"
...
This reverts commit cd558958a0
.
2016-04-12 18:11:24 +02:00
Bjørn Erik Pedersen
cd558958a0
Use Node.ID for anchor ID
...
Fixes #2057
2016-04-11 13:17:25 +02:00
Bjørn Erik Pedersen
5ef52294f9
Add Node.ID
...
Fixes #2071
2016-04-11 11:49:02 +02:00
Bjørn Erik Pedersen
c0cf1a7e37
Fix section menus for lazy blogger
...
IsMenuCurrent was always returning false for the top level entries.
Fixes #2065
2016-04-10 13:49:32 +02:00
digitalcraftsman
b7efbdc12f
hugolib: Add option to disable rendering of 404 page
...
Fixes #1889
Closes #2037
2016-04-09 20:25:59 +02:00
nitoyon
72bda5ad26
Move section initialization to Site.assembleSections
...
Closes #1527
2016-04-09 20:13:35 +02:00
Bjørn Erik Pedersen
8fe48a6576
Fix potential data race in test
2016-04-09 14:30:22 +02:00
ypnos
9f6b5ad3b4
Save auto-detected markup type in Page.Markup
...
If Page.Markup was not set by the user, it will now be set after
guessing from the file extension. This means, Page.Markup will be set in
any case. It can be used by a theme to differentiate between markup
types.
Fixes #1950
2016-04-09 00:48:53 +02:00
Bjørn Erik Pedersen
f2ff77f3ac
Make Hugo build without Mercurial
...
By creating a fork of the Bitbucket inflect repo. It hasn't changed since 2013,
so it must be considered pretty stable.
Fixes #2062
2016-04-08 21:11:44 +02:00
Bjørn Erik Pedersen
1c3c148b38
hugolib: Un-export internal Site-methods
...
These are obviously internal and for the most part undocumented, creating lots of GoLint warnings.
See #1160
See #2014
2016-04-08 17:55:23 +02:00
Sven Dowideit
1648e327c0
Document and clean SourceRelativeLinksEval code
2016-04-07 20:10:38 +02:00
Bjørn Erik Pedersen
819271cb78
Re-export the methods used in page group tests
2016-04-07 18:44:58 +02:00
Bjørn Erik Pedersen
3950b1375c
hugolib: Camelcase ALL_CAPS vars and const in tests
...
See #2014
2016-04-07 16:10:41 +02:00
Bjørn Erik Pedersen
05b888877d
huglib: Add even more missing GoDoc
...
See #2014
2016-04-07 16:05:23 +02:00
Bjørn Erik Pedersen
ddd02b2f6a
hugolib: Camel-case ALL_CAPS const in test
2016-04-07 15:22:41 +02:00
Bjørn Erik Pedersen
98ee8c3f7b
hugolib: Add GoDoc to pageGroup.go
...
See #2014
2016-04-07 15:21:41 +02:00
Bjørn Erik Pedersen
54750b0780
Do not create robots.txt by default
...
Meny people, including me, have a custom robots.txt in static.
Also remove that option from the command line; it doesn't feel
important enough.
Fixes ##2049
2016-04-05 22:20:39 +02:00