brevno-suite/hugo
8 years agodocs: Correct spelling for "parameters" in partials.md
vsopvsop [Sun, 28 Aug 2016 13:21:19 +0000 (18:51 +0530)]
docs: Correct spelling for "parameters" in partials.md

8 years agodocs: Document shuffle template func
digitalcraftsman [Mon, 29 Aug 2016 10:22:37 +0000 (12:22 +0200)]
docs: Document shuffle template func

Fixes #2393.

8 years agodocs: Update highlight.js example to latest version
Andreas Grunewald [Wed, 24 Aug 2016 23:13:21 +0000 (16:13 -0700)]
docs: Update highlight.js example to latest version

Highlight.js has evolved quite a bit since it this doc was written. Updating the example to the latest 9.6 version of Highlight JS hosted by cloudflare

8 years agodocs: Add location of block template
Eric [Sat, 20 Aug 2016 19:19:23 +0000 (12:19 -0700)]
docs: Add location of block template

8 years agotpl: Add missing arg to Fatalf
Bjørn Erik Pedersen [Sat, 20 Aug 2016 19:52:14 +0000 (20:52 +0100)]
tpl: Add missing arg to Fatalf

8 years agoSwitch to a more up to date TOML library
Bjørn Erik Pedersen [Sat, 20 Aug 2016 19:28:38 +0000 (20:28 +0100)]
Switch to a more up to date TOML library

Fixes #2089

8 years agodocs: Clarify Usage
Mark D. Blackwell [Wed, 10 Aug 2016 19:18:03 +0000 (15:18 -0400)]
docs: Clarify Usage

8 years agodocs: Add Spanish video tutorial by Verónica López to press.md
Anthony Fok [Fri, 19 Aug 2016 14:26:26 +0000 (08:26 -0600)]
docs: Add Spanish video tutorial by Verónica López to press.md

8 years agohugolib: Use named keys in composite literals
Cameron Moore [Fri, 19 Aug 2016 11:22:19 +0000 (06:22 -0500)]
hugolib: Use named keys in composite literals

Make `go vet` great again

8 years agodocs: Just a small grammar fix in quickstart.md
Steef Hegeman [Fri, 5 Aug 2016 14:57:23 +0000 (16:57 +0200)]
docs: Just a small grammar fix in quickstart.md

8 years agodocs: Follow through on watch default
Mark D. Blackwell [Tue, 9 Aug 2016 23:14:40 +0000 (19:14 -0400)]
docs: Follow through on watch default

8 years agodocs: Correct name of release archives for OS X
Georg Hartmann [Wed, 10 Aug 2016 10:45:13 +0000 (12:45 +0200)]
docs: Correct name of release archives for OS X

Fixes #2341

8 years agodocs: Correct all erroneous swaps of "it's" and "its"
Mark D. Blackwell [Sat, 13 Aug 2016 13:09:51 +0000 (09:09 -0400)]
docs: Correct all erroneous swaps of "it's" and "its"

8 years agodocs: Improve section 'Why did you write Hugo?'
Mark D. Blackwell [Sat, 13 Aug 2016 14:44:20 +0000 (10:44 -0400)]
docs: Improve section 'Why did you write Hugo?'

8 years agodocs: Fix URLs in examples sites with path prefix
Stephan Kulla [Wed, 17 Aug 2016 08:30:55 +0000 (10:30 +0200)]
docs: Fix URLs in examples sites with path prefix

When baseurl ist something like "http://example.com/hugo/" a link to
"/tags/..." does not work. Therefore I fixed the examples so that they
also work in cases where the website is not saved at the server's root.
See also https://discuss.gohugo.io/t/how-shall-i-link-a-taxonomy-page/3920

8 years agoRemove broken Bitdeli badge from README.md
Anthony Fok [Wed, 17 Aug 2016 03:13:21 +0000 (21:13 -0600)]
Remove broken Bitdeli badge from README.md

8 years agotpl: Return all errors from casting
Cameron Moore [Fri, 12 Aug 2016 22:43:15 +0000 (17:43 -0500)]
tpl: Return all errors from casting

Most non-boolean template functions should return errors.

Fixes #2354

8 years agoSimplify Travis build
Cameron Moore [Tue, 16 Aug 2016 14:09:19 +0000 (09:09 -0500)]
Simplify Travis build

8 years agoFix command for getting hugo in CONTRIBUTING.md
Stephan Kulla [Fri, 12 Aug 2016 14:58:57 +0000 (16:58 +0200)]
Fix command for getting hugo in CONTRIBUTING.md

8 years agoAdd a global Reset func
Bjørn Erik Pedersen [Tue, 16 Aug 2016 10:50:26 +0000 (12:50 +0200)]
Add a global Reset func

So we can do some benchmarking.

8 years agoBump Travis to Go 1.7
Bjørn Erik Pedersen [Tue, 16 Aug 2016 08:05:10 +0000 (10:05 +0200)]
Bump Travis to Go 1.7

8 years agocommands: Suppress 'missing static' error
Kishin Yagami [Sat, 13 Aug 2016 22:35:43 +0000 (07:35 +0900)]
commands: Suppress 'missing static' error

Fixes #2311

8 years agoSkipt Twitter test in short mode
Bjørn Erik Pedersen [Sat, 13 Aug 2016 16:50:06 +0000 (18:50 +0200)]
Skipt Twitter test in short mode

8 years agotpl: Fix faulty ordering of relURL test cases
Bjørn Erik Pedersen [Fri, 12 Aug 2016 22:36:15 +0000 (00:36 +0200)]
tpl: Fix faulty ordering of relURL test cases

8 years agotpl: Make absURL and relURL accept anything
Stephan Kulla [Fri, 12 Aug 2016 22:31:50 +0000 (00:31 +0200)]
tpl: Make absURL and relURL accept anything

8 years agodocs: Convert toml to yaml in config overview
Mark Ayers [Fri, 12 Aug 2016 05:59:35 +0000 (22:59 -0700)]
docs: Convert toml to yaml in config overview

8 years agosource: Normalize file name to NFC
Kishin Yagami [Mon, 8 Aug 2016 18:25:00 +0000 (03:25 +0900)]
source: Normalize file name to NFC

Fixes #2203

8 years agodocs: Add doc for time template func
Wade Fitzpatrick [Mon, 8 Aug 2016 01:38:18 +0000 (11:38 +1000)]
docs: Add doc for time template func

8 years agoRemove maximeguitare.com from showcase
Maxime Michel [Sat, 6 Aug 2016 21:34:42 +0000 (23:34 +0200)]
Remove maximeguitare.com from showcase

8 years agodocs: Add rdegges.com to the showcase
Randall Degges [Fri, 5 Aug 2016 22:46:01 +0000 (15:46 -0700)]
docs: Add rdegges.com to the showcase

8 years agotpl: Fix typo in FindRE test
digitalcraftsman [Thu, 4 Aug 2016 12:37:15 +0000 (14:37 +0200)]
tpl: Fix typo in FindRE test

8 years agoFix the time template func 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.

8 years agotpl: Add time template func
Wade Fitzpatrick [Wed, 3 Aug 2016 23:55:24 +0000 (09:55 +1000)]
tpl: Add time template func

Fixes #2328

8 years agoFix for meminterval not using specified interval
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

8 years agodocs: Add romansilin.com to the showcase
astrochili [Sun, 31 Jul 2016 08:37:43 +0000 (11:37 +0300)]
docs: Add romansilin.com to the showcase

8 years agoReturn specific error on walk path too short
Bjørn Erik Pedersen [Sat, 30 Jul 2016 20:32:03 +0000 (22:32 +0200)]
Return specific error on walk path too short

8 years agoAdjust the sanity check to path length 4
Bjørn Erik Pedersen [Sat, 30 Jul 2016 18:07:35 +0000 (20:07 +0200)]
Adjust the sanity check to path length 4

8 years agoAdd sanity check to the file walker
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.

8 years agoDisable Go 1.5.4 in Travis
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.

8 years agoTake 2: Load templates from the Afero source fs
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

8 years agoLoad templates from the Afero source fs
Bjørn Erik Pedersen [Sat, 30 Jul 2016 15:16:04 +0000 (17:16 +0200)]
Load templates from the Afero source fs

Fixes #2321

8 years agoDo not return empty theme dirs
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

8 years agoUse the Afero source fs where relevant
Bjørn Erik Pedersen [Sat, 30 Jul 2016 13:37:03 +0000 (15:37 +0200)]
Use the Afero source fs where relevant

Fixes #2319

8 years agoMake LazyFileReader use the Afero source fs
Bjørn Erik Pedersen [Sat, 30 Jul 2016 13:14:41 +0000 (15:14 +0200)]
Make LazyFileReader use the Afero source fs

Fixes #2317

8 years agoHandle errors during filesystem walk
Bjørn Erik Pedersen [Sat, 30 Jul 2016 12:02:53 +0000 (14:02 +0200)]
Handle errors during filesystem walk

Fixes #2318

8 years agodocs: Add tumblr2hugomarkdown to tools section
digitalcraftsman [Fri, 29 Jul 2016 18:37:13 +0000 (20:37 +0200)]
docs: Add tumblr2hugomarkdown to tools section

8 years agodocs: Add tumblr-importr to tools section
digitalcraftsman [Fri, 29 Jul 2016 18:28:05 +0000 (20:28 +0200)]
docs: Add tumblr-importr to tools section

8 years agoexamples: Add example for translation files
Richard Metzler [Sat, 11 Jun 2016 09:56:10 +0000 (11:56 +0200)]
examples: Add example for translation files

8 years agodocs: Document .File variables for pages
digitalcraftsman [Wed, 18 May 2016 19:07:06 +0000 (21:07 +0200)]
docs: Document .File variables for pages

Fixes #2154.

8 years agodocs: Drop .isDraft to new line
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.

8 years agodocs: Add a link to hugo-openapispec-shortcode
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.

8 years agodocs: Removed comma from json example.
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.

8 years agodocs: Add missing configuration option disableHugoGeneratorInject
Max Milton [Fri, 29 Jul 2016 07:46:40 +0000 (17:46 +1000)]
docs: Add missing configuration option disableHugoGeneratorInject

8 years agodocs: Add weilinshi.org to the showcase
Weilin [Wed, 27 Jul 2016 23:15:17 +0000 (07:15 +0800)]
docs: Add weilinshi.org to the showcase

8 years agodocs: Add CTL Compiled edtech blog to showcase
zarina [Mon, 25 Jul 2016 18:03:17 +0000 (14:03 -0400)]
docs: Add CTL Compiled edtech blog to showcase

8 years agodocs: Add www.leowkahman.com to the showcase
Leow Kah Man [Sun, 24 Jul 2016 10:02:42 +0000 (18:02 +0800)]
docs: Add www.leowkahman.com to the showcase

8 years agoBe less aggressive with CHMOD filesystem events
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.

8 years agoSimplify the configuration of HugoHTMLRenderer
Bjørn Erik Pedersen [Fri, 22 Jul 2016 09:00:52 +0000 (11:00 +0200)]
Simplify the configuration of HugoHTMLRenderer

8 years agoFix broken shortcode test
Bjørn Erik Pedersen [Thu, 21 Jul 2016 20:30:10 +0000 (22:30 +0200)]
Fix broken shortcode test

See #2249

8 years agoAdd "missing slice" to the Params test
Bjørn Erik Pedersen [Thu, 21 Jul 2016 19:03:44 +0000 (21:03 +0200)]
Add "missing slice" to the Params test

See #2249

8 years agoCheck for nil Params in shortcode's Get
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

8 years agoAdd shortcode null param variant
Bjørn Erik Pedersen [Thu, 21 Jul 2016 13:30:12 +0000 (15:30 +0200)]
Add shortcode null param variant

See #2294

8 years agodocs: Add Algolia as commercial search service
Peter Panagiotakos [Fri, 15 Jul 2016 16:30:15 +0000 (12:30 -0400)]
docs: Add Algolia as commercial search service

8 years agoAdd shortcode test for mmark
Bjørn Erik Pedersen [Tue, 19 Jul 2016 22:40:40 +0000 (00:40 +0200)]
Add shortcode test for mmark

8 years agodocs: Update last-mod date of installing-on-windows.md
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.

8 years agodocs: Fix PATH issue in the instruction for Windows 10
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.

8 years agoAdd `htmlEscape` and `htmlUnescape` template functions
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.

8 years agoBump Travis to Go 1.6.3
Bjørn Erik Pedersen [Mon, 18 Jul 2016 21:46:37 +0000 (23:46 +0200)]
Bump Travis to Go 1.6.3

8 years agotpl: Add humanize examples to smoke tests
Bjørn Erik Pedersen [Thu, 14 Jul 2016 18:32:32 +0000 (20:32 +0200)]
tpl: Add humanize examples to smoke tests

8 years agoDo not double-escape in querify
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

8 years agoRevert "Throw a noisy error when a post has no layout"
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.

8 years agodocs: Add 404 template
Bjørn Erik Pedersen [Wed, 13 Jul 2016 22:01:06 +0000 (00:01 +0200)]
docs: Add 404 template

Closes #1965

8 years agoThrow a noisy error when a post has no layout
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

8 years agoUpdate frontmatter.go
Henrique Dias [Wed, 13 Jul 2016 21:53:06 +0000 (22:53 +0100)]
Update frontmatter.go

8 years agotpl: Modify tpl.humanize to ordinalize integer input
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

8 years agoFix panic when using URLize
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

8 years agoIgnore emacs temp files
Alexandre Bourget [Mon, 11 Jul 2016 00:01:45 +0000 (20:01 -0400)]
Ignore emacs temp files

8 years agoRevert "Use bufferpool in Asciidoc handler"
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.

8 years agoRevert "Use bufferpool in Rst handler"
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.

8 years agoFix humanize when string is empty
Bjørn Erik Pedersen [Sun, 10 Jul 2016 13:10:22 +0000 (15:10 +0200)]
Fix humanize when string is empty

Fixes #2272

8 years agoUse bufferpool in Rst handler
Bjørn Erik Pedersen [Sun, 10 Jul 2016 10:54:15 +0000 (12:54 +0200)]
Use bufferpool in Rst handler

8 years agoRemove []byte to string to []byte conversion in Rst
Bjørn Erik Pedersen [Sun, 10 Jul 2016 10:52:20 +0000 (12:52 +0200)]
Remove []byte to string to []byte conversion in Rst

8 years agoUse bufferpool in Asciidoc handler
Bjørn Erik Pedersen [Sun, 10 Jul 2016 10:31:31 +0000 (12:31 +0200)]
Use bufferpool in Asciidoc handler

8 years agoRemove []byte to string to []byte conversion in Asciidoc
Bjørn Erik Pedersen [Sun, 10 Jul 2016 10:28:34 +0000 (12:28 +0200)]
Remove []byte to string to []byte conversion in Asciidoc

8 years agoConsolidate the Render funcs
Bjørn Erik Pedersen [Sun, 10 Jul 2016 09:36:25 +0000 (11:36 +0200)]
Consolidate the Render funcs

8 years agoReplace replace-this-with-your-hugo-site.com with example.org
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

8 years agoMake auto-date disabled by default
Vincent Batoufflet [Wed, 6 Jul 2016 16:25:59 +0000 (18:25 +0200)]
Make auto-date disabled by default

Fixes #2244
Closes #2260

8 years agoMake config flag global
Bjørn Erik Pedersen [Thu, 7 Jul 2016 16:06:48 +0000 (18:06 +0200)]
Make config flag global

Fixes #2261

8 years agotransform: Add missing GoDoc
Bjørn Erik Pedersen [Wed, 6 Jul 2016 21:23:44 +0000 (23:23 +0200)]
transform: Add missing GoDoc

8 years agoSimplify querify
Bjørn Erik Pedersen [Wed, 6 Jul 2016 18:57:37 +0000 (20:57 +0200)]
Simplify querify

8 years agotpl: Add a querify function to generate query strings inside templates
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

8 years agoAdd Docutils to Travis
Bjørn Erik Pedersen [Mon, 4 Jul 2016 09:19:48 +0000 (11:19 +0200)]
Add Docutils to Travis

Fixes #2255
Closes #2254

8 years agoAdd Asciidoctor to Travis
Bjørn Erik Pedersen [Mon, 4 Jul 2016 09:06:18 +0000 (11:06 +0200)]
Add Asciidoctor to Travis

Fixes #2250

8 years agoAdd Rst shortcode test
Bjørn Erik Pedersen [Mon, 4 Jul 2016 08:49:20 +0000 (10:49 +0200)]
Add Rst shortcode test

Fixes #2253

8 years agoAdd Asciidoc shortcode test
Bjørn Erik Pedersen [Sun, 3 Jul 2016 22:33:08 +0000 (00:33 +0200)]
Add Asciidoc shortcode test

Fixes #2249

8 years agoFix Emoji benchmark
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.

8 years agoAdd Emoji test case
Bjørn Erik Pedersen [Fri, 1 Jul 2016 13:12:36 +0000 (15:12 +0200)]
Add Emoji test case

See #2246

8 years agotransform: Explicitly bind LiveReload to server port
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

8 years agodocs: Update install instructions to reflect hugo.exe filename change
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.

8 years agodocs: Add tutorial for GitLab Pages
Riku-Pekka Silvola [Thu, 23 Jun 2016 16:29:43 +0000 (18:29 +0200)]
docs: Add tutorial for GitLab Pages