Bjørn Erik Pedersen [Fri, 12 Aug 2016 22:36:15 +0000 (00:36 +0200)]
tpl: Fix faulty ordering of relURL test cases
Stephan Kulla [Fri, 12 Aug 2016 22:31:50 +0000 (00:31 +0200)]
tpl: Make absURL and relURL accept anything
Mark Ayers [Fri, 12 Aug 2016 05:59:35 +0000 (22:59 -0700)]
docs: Convert toml to yaml in config overview
Kishin Yagami [Mon, 8 Aug 2016 18:25:00 +0000 (03:25 +0900)]
source: Normalize file name to NFC
Fixes #2203
Wade Fitzpatrick [Mon, 8 Aug 2016 01:38:18 +0000 (11:38 +1000)]
docs: Add doc for time template func
Maxime Michel [Sat, 6 Aug 2016 21:34:42 +0000 (23:34 +0200)]
Remove maximeguitare.com from showcase
Randall Degges [Fri, 5 Aug 2016 22:46:01 +0000 (15:46 -0700)]
docs: Add rdegges.com to the showcase
digitalcraftsman [Thu, 4 Aug 2016 12:37:15 +0000 (14:37 +0200)]
tpl: Fix typo in FindRE test
Bjørn Erik Pedersen [Thu, 4 Aug 2016 08:36:44 +0000 (10:36 +0200)]
Fix the time template func test
By making it not depend on the locale setup.
Wade Fitzpatrick [Wed, 3 Aug 2016 23:55:24 +0000 (09:55 +1000)]
tpl: Add time template func
Fixes #2328
Jeremy Brown [Tue, 2 Aug 2016 17:48:07 +0000 (19:48 +0200)]
Fix for meminterval not using specified interval
Hugo seems to ignore the meminterval I specify and always uses it's default of 100ms.
This seems to be because Hugo tries to take the meminterval from the command line
(an Int) and converts it to a String and passes it to time.ParseDuration. If you pass a
different meminterval (such as `1000` as above) it will fail (time.ParseDuration requires
some units) and use the default instead.
Changed `meminterval` to be a String and added better documentation for valid time units.
Resolves: #2325
astrochili [Sun, 31 Jul 2016 08:37:43 +0000 (11:37 +0300)]
docs: Add romansilin.com to the showcase
Bjørn Erik Pedersen [Sat, 30 Jul 2016 20:32:03 +0000 (22:32 +0200)]
Return specific error on walk path too short
Bjørn Erik Pedersen [Sat, 30 Jul 2016 18:07:35 +0000 (20:07 +0200)]
Adjust the sanity check to path length 4
Bjørn Erik Pedersen [Sat, 30 Jul 2016 17:54:07 +0000 (19:54 +0200)]
Add sanity check to the file walker
As more tests now hit the virtual filesystem, add this check
to prevent any walking of the entire file system.
Bjørn Erik Pedersen [Sat, 30 Jul 2016 17:37:15 +0000 (19:37 +0200)]
Disable Go 1.5.4 in Travis
There is one failing test there now, a odd filesystem issue.
Since Go 1.7 is only "days" away, I'm not spending time debugging this.
Bjørn Erik Pedersen [Sat, 30 Jul 2016 15:28:40 +0000 (17:28 +0200)]
Take 2: Load templates from the Afero source fs
See #2321
Bjørn Erik Pedersen [Sat, 30 Jul 2016 15:16:04 +0000 (17:16 +0200)]
Load templates from the Afero source fs
Fixes #2321
Bjørn Erik Pedersen [Sat, 30 Jul 2016 14:21:57 +0000 (16:21 +0200)]
Do not return empty theme dirs
This prevents reading data etc. from the root.
Fixes #2320
Bjørn Erik Pedersen [Sat, 30 Jul 2016 13:37:03 +0000 (15:37 +0200)]
Use the Afero source fs where relevant
Fixes #2319
Bjørn Erik Pedersen [Sat, 30 Jul 2016 13:14:41 +0000 (15:14 +0200)]
Make LazyFileReader use the Afero source fs
Fixes #2317
Bjørn Erik Pedersen [Sat, 30 Jul 2016 12:02:53 +0000 (14:02 +0200)]
Handle errors during filesystem walk
Fixes #2318
digitalcraftsman [Fri, 29 Jul 2016 18:37:13 +0000 (20:37 +0200)]
docs: Add tumblr2hugomarkdown to tools section
digitalcraftsman [Fri, 29 Jul 2016 18:28:05 +0000 (20:28 +0200)]
docs: Add tumblr-importr to tools section
Richard Metzler [Sat, 11 Jun 2016 09:56:10 +0000 (11:56 +0200)]
examples: Add example for translation files
digitalcraftsman [Wed, 18 May 2016 19:07:06 +0000 (21:07 +0200)]
docs: Document .File variables for pages
Fixes #2154.
Chris DeLuca [Fri, 15 Jul 2016 18:38:02 +0000 (14:38 -0400)]
docs: Drop .isDraft to new line
Bring **.isDraft** onto a new line, to be consistent with the other list items.
Jeremy Brown [Tue, 12 Jul 2016 19:42:41 +0000 (21:42 +0200)]
docs: Add a link to hugo-openapispec-shortcode
Added a link to the Hugo Open API Spec shortcode which allows you to embed OAI Spec (formerly known as Swagger) in your site.
Felipe Rohde [Tue, 26 Jul 2016 18:26:25 +0000 (15:26 -0300)]
docs: Removed comma from json example.
The comma causing invalid json and hugo not compile the file based on the same example.
Max Milton [Fri, 29 Jul 2016 07:46:40 +0000 (17:46 +1000)]
docs: Add missing configuration option disableHugoGeneratorInject
Weilin [Wed, 27 Jul 2016 23:15:17 +0000 (07:15 +0800)]
docs: Add weilinshi.org to the showcase
zarina [Mon, 25 Jul 2016 18:03:17 +0000 (14:03 -0400)]
docs: Add CTL Compiled edtech blog to showcase
Leow Kah Man [Sun, 24 Jul 2016 10:02:42 +0000 (18:02 +0800)]
docs: Add www.leowkahman.com to the showcase
Pedro Melo [Tue, 26 Jul 2016 20:18:15 +0000 (21:18 +0100)]
Be less aggressive with CHMOD filesystem events
On
4679fbee41d3, rebuild was disabled on
CHMOD filesystem events, but the code is overly aggressive.
In some situations, specially with older Mac's (using a Late 2008
Macbook), the events we receive might be aggregated. On my
particular laptop, I get this events:
INFO: 2016/07/26 18:08:51 hugo.go:737: Received System Events: ["<path>": WRITE|CHMOD]
These events are ignored because the code only checks for Chmod. This
commit fixes this by checking that the event is also not a Write or Create.
Related to #1587.
Bjørn Erik Pedersen [Fri, 22 Jul 2016 09:00:52 +0000 (11:00 +0200)]
Simplify the configuration of HugoHTMLRenderer
Bjørn Erik Pedersen [Thu, 21 Jul 2016 20:30:10 +0000 (22:30 +0200)]
Fix broken shortcode test
See #2249
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