Bjørn Erik Pedersen
318558f26c
docs: Add 404 template
...
Closes #1965
2016-07-14 00:01:06 +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
Henrique Dias
af34613f75
Update frontmatter.go
2016-07-13 23:53:06 +02:00
Michael Orr
0a812beb12
tpl: Modify tpl.humanize to ordinalize integer input
...
Add logic to tpl.humanize such that it understands input of int literals
or strings which represent an integer. When tpl.humanize sees this type
of input, it will use inflect.Ordinalize as opposed to the standard
inflect.Humanize.
Fixes #1886
2016-07-13 22:09:59 +02:00
Mathias Biilmann
330639d2ae
Fix panic when using URLize
...
Using URLize on a string like '100%-true' would cause a panic
2016-07-11 10:06:40 +02:00
Alexandre Bourget
32d82a4496
Ignore emacs temp files
2016-07-11 02:01:45 +02:00
Bjørn Erik Pedersen
d44bb4ec05
Revert "Use bufferpool in Asciidoc handler"
...
This reverts commit 068a77151e
.
This was hasty. We would need to create a copy to use the pool in this case.
2016-07-10 19:42:14 +02:00
Bjørn Erik Pedersen
7c125ebb7d
Revert "Use bufferpool in Rst handler"
...
This reverts commit d9bc233f1f
.
This was hasty. We would need to make a copy to use the pool in this case.
2016-07-10 19:41:16 +02:00
Bjørn Erik Pedersen
adf405496e
Fix humanize when string is empty
...
Fixes #2272
2016-07-10 15:10:22 +02:00
Bjørn Erik Pedersen
d9bc233f1f
Use bufferpool in Rst handler
2016-07-10 12:54:15 +02:00
Bjørn Erik Pedersen
00d70e5569
Remove []byte to string to []byte conversion in Rst
2016-07-10 12:52:20 +02:00
Bjørn Erik Pedersen
068a77151e
Use bufferpool in Asciidoc handler
2016-07-10 12:31:31 +02:00
Bjørn Erik Pedersen
ed5ad12af3
Remove []byte to string to []byte conversion in Asciidoc
2016-07-10 12:28:34 +02:00
Bjørn Erik Pedersen
1d7f4413f5
Consolidate the Render funcs
2016-07-10 11:36:25 +02:00
Bjørn Erik Pedersen
4a48b5f326
Replace replace-this-with-your-hugo-site.com with example.org
...
Fixes #2264
2016-07-08 21:38:28 +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
b581bbd856
Make config flag global
...
Fixes #2261
2016-07-07 18:06:48 +02:00
Bjørn Erik Pedersen
223073c6fd
transform: Add missing GoDoc
2016-07-06 23:23:44 +02:00
Bjørn Erik Pedersen
39fe42cf6b
Simplify querify
2016-07-06 20:57:37 +02:00
Jimmy Sawczuk
fbf48824ae
tpl: Add a querify function to generate query strings inside templates
...
The query function will take a set of parameters specified like a dict and return a url.Values object which can be .Encode'd into a query string.
Example:
<a href="http://www.google.com ?{{ (querify "q" "test" "page" 3).Encode | safeHTML }}">Search</a>
Returns:
<a href="http://www.google.com?page=3&q=test ">Search</a>
Closes #2257
2016-07-05 19:52:45 +02:00
Bjørn Erik Pedersen
770df77b22
Add Docutils to Travis
...
Fixes #2255
Closes #2254
2016-07-04 12:58:14 +02:00
Bjørn Erik Pedersen
05a33e314e
Add Asciidoctor to Travis
...
Fixes #2250
2016-07-04 12:58:09 +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
Bjørn Erik Pedersen
6c0f705217
Fix Emoji benchmark
...
The Emoji implementations gives slightly different output. One of them pads with a space.
2016-07-01 17:59:39 +02:00
Bjørn Erik Pedersen
aa66478c20
Add Emoji test case
...
See #2246
2016-07-01 17:06:13 +02:00
Dragos Plesca
7e08d23eeb
transform: Explicitly bind LiveReload to server port
...
If hugo server is run on port 80 or 443, LiveReload does not
correctly bind to the same port, instead using port 35729.
This commit adds functionality to inform LiveReload of the
correct port to bind to.
See https://github.com/livereload/livereload-js/issues/16
Partially contributed by Jeff Minard (@chuyskywalker).
Fixes #2205
2016-06-30 16:47:56 -06:00
JoeArizona
0ce6438268
docs: Update install instructions to reflect hugo.exe filename change
...
The install tutorial instructed users to rename the *.exe file to
hugo.exe because it used to have a big long name.
In Hugo 0.16 the file is already named hugo.exe, so the tutorial
made no sense on that point. Edited out those instructions.
2016-06-30 02:16:16 -06:00
Riku-Pekka Silvola
e140070c9a
docs: Add tutorial for GitLab Pages
2016-06-30 00:35:59 -06:00
Cameron Moore
ca6b26fe65
commands: Allow schema-less baseURL on command line
...
Fixes #1632
2016-06-29 23:08:55 -06:00
Anthony Fok
5572e3496b
Update Travis config to Go 1.6.2
2016-06-29 23:05:48 -06:00
Anthony Fok
195a2b3845
docs: Suggests the use of delimiter for taxonomy listing
...
as a shortcut suggested by @digitalcraftsman.
See #2143
2016-06-29 22:52:29 -06:00
Roy Reveltas
364686ecbb
docs: Add additional example for taxonomies listing
...
Add another example how to list taxonomies inline,
adding title (singular or plural) and commas between taxonomies.
See #2143
2016-06-29 22:36:34 -06:00
Vincent Batoufflet
eda3678742
Add automatic page date fallback
...
Closes #2239
2016-06-28 23:50:50 +02:00
marco
c21e2b3b4d
tpl: Enable safeHTMLAttr
...
See #2234 and #347
2016-06-27 09:18:14 -06: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
e3b162ccc6
transform: Don't use helpers.StringToReader
2016-06-25 18:02:07 -05: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
29ca323a34
docs: Regen commands doc
...
Fixes #2235
2016-06-22 14:03:18 +02:00
Bjørn Erik Pedersen
1accd3ba88
Fix example for autocomplete
...
See #2235
2016-06-22 13:59:53 +02:00
Cameron Moore
a4b8496210
docs: Fix typo is 0.16 release notes
2016-06-20 13:21:10 -05:00
Bjørn Erik Pedersen
ca5ae50c2b
Revert "docs: Refactor /docs to use the block keyword"
...
I forgot that we support Go 1.5 ...
This reverts commit 3a2748e0d2
.
2016-06-20 17:53:27 +02:00
Bjørn Erik Pedersen
3a2748e0d2
docs: Refactor /docs to use the block keyword
...
Fixes #2226
Closes #2229
2016-06-20 15:50:41 +02:00
Martijn ten Bhömer
357c9db235
docs: Add mtbhomer.com to the showcase
2016-06-19 16:12:59 +02: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
Cameron Moore
8b54843a0d
hugo: Revert git commit message guidelines
2016-06-17 08:23:43 -05:00
Cameron Moore
373ca66287
hugo: Update contribution guidelines
...
Refactor the contribution guidelines in the README and CONTRIBUTING
files.
Simplify the contribution guide in the README and move most of the
complex stuff into CONTRIBUTING.
Add an explicit commit message guidelines section to CONTRIBUTING. Keep
all of the guidelines from Chris Beams except for the 72 character line
limit (we don't follow that, nor does the Go team). Add three new
guidelines: package prefix in subject, references in body, and
encouragement of message body in general.
Add a new section to CONTRIBUTING on using Git Remotes.
2016-06-16 16:31:22 -05:00
Hanchen Wang
c52bb4efbe
commands: Specify os port generic errors
...
Closes #2217
2016-06-16 15:28:06 +02:00
Bjørn Erik Pedersen
aa690c8e95
commands: Fix charsets in mimetypes
...
Fixes #2218
2016-06-15 19:34:21 +02:00