Bjørn Erik Pedersen [Thu, 21 Jul 2016 19:03:44 +0000 (21:03 +0200)]
Add "missing slice" to the Params test
See #2249
Bjørn Erik Pedersen [Thu, 21 Jul 2016 15:18:55 +0000 (17:18 +0200)]
Check for nil Params in shortcode's Get
Fixes #2294
Bjørn Erik Pedersen [Thu, 21 Jul 2016 13:30:12 +0000 (15:30 +0200)]
Add shortcode null param variant
See #2294
Peter Panagiotakos [Fri, 15 Jul 2016 16:30:15 +0000 (12:30 -0400)]
docs: Add Algolia as commercial search service
Bjørn Erik Pedersen [Tue, 19 Jul 2016 22:40:40 +0000 (00:40 +0200)]
Add shortcode test for mmark
Anthony Fok [Tue, 19 Jul 2016 00:06:39 +0000 (18:06 -0600)]
docs: Update last-mod date of installing-on-windows.md
Sorry, this should have been part of the previous commit.
Anthony Fok [Mon, 18 Jul 2016 23:58:26 +0000 (17:58 -0600)]
docs: Fix PATH issue in the instruction for Windows 10
i.e., "The PATH entry should be the folder where Hugo lives, not the binary."
Fixes #2280.
Also fix a rendering issue with list entries that consist of multiple
paragraphs by using four spaces instead of two. Special thanks to
@shurcooL for the insight! (Fixes #2285)
Also made a few minor formatting tweaks.
Cathal Garvey [Mon, 18 Jul 2016 22:14:05 +0000 (23:14 +0100)]
Add `htmlEscape` and `htmlUnescape` template functions
These functions allow trivial escaping and unescaping of HTML entities,
and make it far easier to compose other functions for the creation of
parameterised URLs.
Bjørn Erik Pedersen [Mon, 18 Jul 2016 21:46:37 +0000 (23:46 +0200)]
Bump Travis to Go 1.6.3
Bjørn Erik Pedersen [Thu, 14 Jul 2016 18:32:32 +0000 (20:32 +0200)]
tpl: Add humanize examples to smoke tests
Cathal Garvey [Thu, 14 Jul 2016 13:53:33 +0000 (14:53 +0100)]
Do not double-escape in querify
Test case modified and expanded for querify to reflect original bug and changes.
Fixes #2279
Bjørn Erik Pedersen [Thu, 14 Jul 2016 09:29:21 +0000 (11:29 +0200)]
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
b15934008fd6a1e7bcf9b8a47ab66e33271c4dca.
Bjørn Erik Pedersen [Wed, 13 Jul 2016 22:01:06 +0000 (00:01 +0200)]
docs: Add 404 template
Closes #1965
Aditya Bhargava [Sat, 12 Mar 2016 23:22:04 +0000 (15:22 -0800)]
Throw a noisy error when a post has no layout
Fixes #1313
Henrique Dias [Wed, 13 Jul 2016 21:53:06 +0000 (22:53 +0100)]
Update frontmatter.go
Michael Orr [Wed, 13 Jul 2016 20:09:59 +0000 (14:09 -0600)]
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
Mathias Biilmann [Mon, 11 Jul 2016 08:06:40 +0000 (01:06 -0700)]
Fix panic when using URLize
Using URLize on a string like '100%-true' would cause a panic
Alexandre Bourget [Mon, 11 Jul 2016 00:01:45 +0000 (20:01 -0400)]
Ignore emacs temp files
Bjørn Erik Pedersen [Sun, 10 Jul 2016 17:42:14 +0000 (19:42 +0200)]
Revert "Use bufferpool in Asciidoc handler"
This reverts commit
068a77151e27adb4106e86c407831ad6aa34ad8d.
This was hasty. We would need to create a copy to use the pool in this case.
Bjørn Erik Pedersen [Sun, 10 Jul 2016 17:41:16 +0000 (19:41 +0200)]
Revert "Use bufferpool in Rst handler"
This reverts commit
d9bc233f1f38df022864e0700a0514edf89b12d0.
This was hasty. We would need to make a copy to use the pool in this case.
Bjørn Erik Pedersen [Sun, 10 Jul 2016 13:10:22 +0000 (15:10 +0200)]
Fix humanize when string is empty
Fixes #2272
Bjørn Erik Pedersen [Sun, 10 Jul 2016 10:54:15 +0000 (12:54 +0200)]
Use bufferpool in Rst handler
Bjørn Erik Pedersen [Sun, 10 Jul 2016 10:52:20 +0000 (12:52 +0200)]
Remove []byte to string to []byte conversion in Rst
Bjørn Erik Pedersen [Sun, 10 Jul 2016 10:31:31 +0000 (12:31 +0200)]
Use bufferpool in Asciidoc handler
Bjørn Erik Pedersen [Sun, 10 Jul 2016 10:28:34 +0000 (12:28 +0200)]
Remove []byte to string to []byte conversion in Asciidoc
Bjørn Erik Pedersen [Sun, 10 Jul 2016 09:36:25 +0000 (11:36 +0200)]
Consolidate the Render funcs
Bjørn Erik Pedersen [Fri, 8 Jul 2016 19:38:28 +0000 (21:38 +0200)]
Replace replace-this-with-your-hugo-site.com with example.org
Fixes #2264
Vincent Batoufflet [Wed, 6 Jul 2016 16:25:59 +0000 (18:25 +0200)]
Make auto-date disabled by default
Fixes #2244
Closes #2260
Bjørn Erik Pedersen [Thu, 7 Jul 2016 16:06:48 +0000 (18:06 +0200)]
Make config flag global
Fixes #2261
Bjørn Erik Pedersen [Wed, 6 Jul 2016 21:23:44 +0000 (23:23 +0200)]
transform: Add missing GoDoc
Bjørn Erik Pedersen [Wed, 6 Jul 2016 18:57:37 +0000 (20:57 +0200)]
Simplify querify
Jimmy Sawczuk [Tue, 5 Jul 2016 01:35:24 +0000 (21:35 -0400)]
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
Bjørn Erik Pedersen [Mon, 4 Jul 2016 09:19:48 +0000 (11:19 +0200)]
Add Docutils to Travis
Fixes #2255
Closes #2254
Bjørn Erik Pedersen [Mon, 4 Jul 2016 09:06:18 +0000 (11:06 +0200)]
Add Asciidoctor to Travis
Fixes #2250
Bjørn Erik Pedersen [Mon, 4 Jul 2016 08:49:20 +0000 (10:49 +0200)]
Add Rst shortcode test
Fixes #2253
Bjørn Erik Pedersen [Sun, 3 Jul 2016 22:33:08 +0000 (00:33 +0200)]
Add Asciidoc shortcode test
Fixes #2249
Bjørn Erik Pedersen [Fri, 1 Jul 2016 15:59:39 +0000 (17:59 +0200)]
Fix Emoji benchmark
The Emoji implementations gives slightly different output. One of them pads with a space.
Bjørn Erik Pedersen [Fri, 1 Jul 2016 13:12:36 +0000 (15:12 +0200)]
Add Emoji test case
See #2246
Dragos Plesca [Thu, 16 Jun 2016 16:43:47 +0000 (19:43 +0300)]
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
JoeArizona [Wed, 29 Jun 2016 05:12:39 +0000 (22:12 -0700)]
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.
Riku-Pekka Silvola [Thu, 23 Jun 2016 16:29:43 +0000 (18:29 +0200)]
docs: Add tutorial for GitLab Pages
Cameron Moore [Thu, 12 May 2016 23:06:56 +0000 (18:06 -0500)]
commands: Allow schema-less baseURL on command line
Fixes #1632
Anthony Fok [Thu, 30 Jun 2016 05:05:48 +0000 (23:05 -0600)]
Update Travis config to Go 1.6.2
Anthony Fok [Thu, 30 Jun 2016 04:52:29 +0000 (22:52 -0600)]
docs: Suggests the use of delimiter for taxonomy listing
as a shortcut suggested by @digitalcraftsman.
See #2143
Roy Reveltas [Fri, 13 May 2016 07:51:36 +0000 (08:51 +0100)]
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
Vincent Batoufflet [Mon, 27 Jun 2016 15:07:34 +0000 (17:07 +0200)]
Add automatic page date fallback
Closes #2239
marco [Wed, 22 Jun 2016 11:21:04 +0000 (13:21 +0200)]
tpl: Enable safeHTMLAttr
See #2234 and #347
Bjørn Erik Pedersen [Sun, 26 Jun 2016 17:26:11 +0000 (19:26 +0200)]
Add test for shortcode in fenced code block
Which I expected to fail, but it doesn't ...
See #2223
Cameron Moore [Sat, 25 Jun 2016 23:02:07 +0000 (18:02 -0500)]
transform: Don't use helpers.StringToReader
Cameron Moore [Sat, 7 May 2016 21:34:53 +0000 (16:34 -0500)]
helpers: Remove ToReader funcs
Remove StringToReader and BytesToReader in favor of using the stdlib directly.
Bjørn Erik Pedersen [Wed, 22 Jun 2016 12:03:18 +0000 (14:03 +0200)]
docs: Regen commands doc
Fixes #2235
Bjørn Erik Pedersen [Wed, 22 Jun 2016 11:59:53 +0000 (13:59 +0200)]
Fix example for autocomplete
See #2235
Cameron Moore [Mon, 20 Jun 2016 18:21:10 +0000 (13:21 -0500)]
docs: Fix typo is 0.16 release notes
Bjørn Erik Pedersen [Mon, 20 Jun 2016 15:53:27 +0000 (17:53 +0200)]
Revert "docs: Refactor /docs to use the block keyword"
I forgot that we support Go 1.5 ...
This reverts commit
3a2748e0d2d1a574f569fb9cf45efeaf8d1fee2f.
Bjørn Erik Pedersen [Mon, 20 Jun 2016 13:20:44 +0000 (15:20 +0200)]
docs: Refactor /docs to use the block keyword
Fixes #2226
Closes #2229
Martijn ten Bhömer [Sun, 19 Jun 2016 09:49:12 +0000 (11:49 +0200)]
docs: Add mtbhomer.com to the showcase
Bjørn Erik Pedersen [Sat, 18 Jun 2016 11:58:54 +0000 (13:58 +0200)]
Fix failing Windows test
Closes #2225
Kishin Yagami [Mon, 13 Jun 2016 03:32:26 +0000 (12:32 +0900)]
Add tests for embedded shortcodes
Fixes #1956
Closes #2204
Cameron Moore [Fri, 17 Jun 2016 13:23:43 +0000 (08:23 -0500)]
hugo: Revert git commit message guidelines
Cameron Moore [Sat, 12 Mar 2016 23:35:06 +0000 (17:35 -0600)]
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.
Hanchen Wang [Tue, 14 Jun 2016 15:48:27 +0000 (11:48 -0400)]
commands: Specify os port generic errors
Closes #2217
Bjørn Erik Pedersen [Wed, 15 Jun 2016 17:34:21 +0000 (19:34 +0200)]
commands: Fix charsets in mimetypes
Fixes #2218
Bjørn Erik Pedersen [Mon, 13 Jun 2016 17:10:53 +0000 (19:10 +0200)]
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
Cesare [Sun, 12 Jun 2016 10:58:46 +0000 (12:58 +0200)]
docs: Add upbeat.it to the showcase
Roberto Rosario [Mon, 13 Jun 2016 23:51:27 +0000 (19:51 -0400)]
docs: Add mayan-edms to the showcase
Bjørn Erik Pedersen [Tue, 14 Jun 2016 13:53:49 +0000 (15:53 +0200)]
Unexport ShouldBuild and AssertShouldBuild
Hanchen Wang [Mon, 13 Jun 2016 15:38:39 +0000 (11:38 -0400)]
hugolib: futureStats plural
Hanchen Wang [Mon, 13 Jun 2016 15:37:10 +0000 (11:37 -0400)]
hugolib: Handle unpecified date for IsFuture and IsExpired
Hanchen Wang [Thu, 19 May 2016 19:17:36 +0000 (15:17 -0400)]
hugolib: Add expiredStats to build feedback
Hanchen Wang [Thu, 19 May 2016 19:15:03 +0000 (15:15 -0400)]
hugolib: Bug fix futureStats
Hanchen Wang [Wed, 11 May 2016 15:45:09 +0000 (11:45 -0400)]
hugolib: Refactor page.ShouldBuild and table driven test
Hanchen Wang [Wed, 11 May 2016 14:17:33 +0000 (10:17 -0400)]
docs: Add ExpiryDate to the list of variables
Hanchen Wang [Wed, 11 May 2016 14:16:44 +0000 (10:16 -0400)]
docs: Example of how to use Order by ExpiryDate
Hanchen Wang [Wed, 11 May 2016 14:15:53 +0000 (10:15 -0400)]
docs: Add instructions on buildExpired in build configurations
Hanchen Wang [Wed, 11 May 2016 14:14:54 +0000 (10:14 -0400)]
docs: Add expirydate to front-matter doc
Hanchen Wang [Wed, 11 May 2016 14:11:23 +0000 (10:11 -0400)]
commands: Add listExpiredCmd for expired pages
Hanchen Wang [Wed, 11 May 2016 14:10:35 +0000 (10:10 -0400)]
commands: Add buildExpired flag
Hanchen Wang [Wed, 11 May 2016 14:09:43 +0000 (10:09 -0400)]
hugolib: Add GroupByExpireDate function
Hanchen Wang [Wed, 11 May 2016 14:08:48 +0000 (10:08 -0400)]
hugolib: Add sort ByExpiryDate function
Hanchen Wang [Wed, 11 May 2016 14:06:05 +0000 (10:06 -0400)]
hugelib: Add expiredCount as a Site variable
Hanchen Wang [Wed, 11 May 2016 14:04:53 +0000 (10:04 -0400)]
hugolib: Support an expiration date
Bjørn Erik Pedersen [Sat, 11 Jun 2016 18:40:56 +0000 (20:40 +0200)]
Fix Emojfy for certain text patterns
Fixes #2198
Bjørn Erik Pedersen [Thu, 9 Jun 2016 14:03:25 +0000 (16:03 +0200)]
Change hugo to Hugo in help text
Marvin Pinto [Mon, 7 Mar 2016 20:05:51 +0000 (15:05 -0500)]
Update the alias generated HTML files to conform to the W3C HTML spec
- W3C recommends that there be a [whitespace character][1] between the
`;` and the `url=` portions.
- W3C also recommends that there be a [title][2] child in the `head`
element
[1]: https://www.w3.org/TR/html-markup/meta.http-equiv.refresh.html
[2]: https://www.w3.org/TR/html-markup/head.html
Closes #1933
Sam Broughton [Mon, 6 Jun 2016 22:20:22 +0000 (23:20 +0100)]
Remove unneeded casts in page.getParam
Closes #2186
Cody W. Opel [Wed, 8 Jun 2016 00:15:28 +0000 (20:15 -0400)]
Fix urlesc import url in Dockerfile
James Campbell [Mon, 6 Jun 2016 18:45:42 +0000 (14:45 -0400)]
docs: Add jamescampbell.us to the showcase
Steve Francia [Mon, 6 Jun 2016 13:10:55 +0000 (09:10 -0400)]
Bump version to 0.17-DEV
Steve Francia [Mon, 6 Jun 2016 12:37:59 +0000 (08:37 -0400)]
Update release-notes.md
bump 0.16 to the correct date and add meta generator note.
Bjørn Erik Pedersen [Sun, 5 Jun 2016 09:06:04 +0000 (11:06 +0200)]
Get Dockerfile up-to-date
Bjørn Erik Pedersen [Sat, 4 Jun 2016 11:45:56 +0000 (13:45 +0200)]
Add Hugo generator tag to home page if not present
Fixes #2182
Bjørn Erik Pedersen [Sat, 4 Jun 2016 19:44:38 +0000 (21:44 +0200)]
Update release-notes.md
Bjørn Erik Pedersen [Fri, 3 Jun 2016 22:14:32 +0000 (00:14 +0200)]
docs. Add the guranteed exit -1 on eror to Hugo 0.16 rel notes
It is a minor thing, but BIG thing for many, including myself.
Bjørn Erik Pedersen [Fri, 3 Jun 2016 20:54:18 +0000 (22:54 +0200)]
Some polish and addends to 0.16 release notes
Bjørn Erik Pedersen [Fri, 3 Jun 2016 18:53:33 +0000 (20:53 +0200)]
Pull the shootouts about 0.16 into the intro section
Steve Francia [Fri, 3 Jun 2016 15:51:45 +0000 (11:51 -0400)]
Remove HugoVersionSuffix "-DEV" prior to 0.16 release
Steve Francia [Thu, 2 Jun 2016 20:48:32 +0000 (16:48 -0400)]
update release notes for 0.16 release
Steve Francia [Thu, 2 Jun 2016 20:47:28 +0000 (16:47 -0400)]
Handle errors during rereading properly
Without this fix, any error during rereading would cause Hugo to hang.
Fixes #2168
Closes #2179
Steve Francia [Thu, 2 Jun 2016 19:29:52 +0000 (15:29 -0400)]
Ignore __jb_tmp___ files created by IntelliJ
Steve Francia [Thu, 2 Jun 2016 19:25:19 +0000 (15:25 -0400)]
Annotate temp files that Hugo ignores