brevno-suite/hugo
8 years agodocs: sa.muel.be has moved to chipsncookies.com in showcase
Sam Debruyn [Thu, 14 Apr 2016 19:53:26 +0000 (21:53 +0200)]
docs: sa.muel.be has moved to chipsncookies.com in showcase

8 years agoImprove build labels in README
Bjørn Erik Pedersen [Fri, 15 Apr 2016 11:02:03 +0000 (13:02 +0200)]
Improve build labels in README

8 years agotpl: Do not write to cache when ignoring cache
Robert Basic [Sun, 10 Apr 2016 10:11:18 +0000 (12:11 +0200)]
tpl: Do not write to cache when ignoring cache

Fixes #2067
Closes #2069

8 years agoChomp Unicode BOM if present
Mattias Wadman [Tue, 12 Apr 2016 22:14:00 +0000 (00:14 +0200)]
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

8 years agoRevert "tpl: Extend where to iterate over maps"
Bjørn Erik Pedersen [Wed, 13 Apr 2016 17:13:33 +0000 (19:13 +0200)]
Revert "tpl: Extend where to iterate over maps"

Committed by accident.

This reverts commit 0141a02160ee7b91642d3c3475959d6742ccd693.

8 years agoUpdate Travis config to Go 1.5.4 and 1.6.1
Bjørn Erik Pedersen [Wed, 13 Apr 2016 14:17:43 +0000 (16:17 +0200)]
Update Travis config to Go 1.5.4 and 1.6.1

8 years agotpl: Extend where to iterate over maps
Cameron Moore [Wed, 13 Apr 2016 01:31:14 +0000 (20:31 -0500)]
tpl: Extend where to iterate over maps

Refactor and extend where to iterate over maps.

8 years agoFix broken tests
Bjørn Erik Pedersen [Tue, 12 Apr 2016 17:18:02 +0000 (19:18 +0200)]
Fix broken tests

8 years agodocs: Add plainIDAnchors change to release notes
Bjørn Erik Pedersen [Tue, 12 Apr 2016 16:39:07 +0000 (18:39 +0200)]
docs: Add plainIDAnchors change to release notes

8 years agodocs: Update default for plainIDAnchors
Bjørn Erik Pedersen [Tue, 12 Apr 2016 16:36:45 +0000 (18:36 +0200)]
docs: Update default for plainIDAnchors

8 years agoDefault to plainIDAnchors
Bjørn Erik Pedersen [Tue, 12 Apr 2016 16:34:46 +0000 (18:34 +0200)]
Default to plainIDAnchors

Fixes #2057

8 years agoRevert "Add Node.ID"
Bjørn Erik Pedersen [Tue, 12 Apr 2016 16:11:52 +0000 (18:11 +0200)]
Revert "Add Node.ID"

This reverts commit 5ef52294f90c51697bd3f918b3c3ed83baff657a.

8 years agoRevert "Use Node.ID for anchor ID"
Bjørn Erik Pedersen [Tue, 12 Apr 2016 16:11:24 +0000 (18:11 +0200)]
Revert "Use Node.ID for anchor ID"

This reverts commit cd558958a0c0ecd06f7560a38e27334fe983e0de.

8 years agodocs: Fix example for Param method
Bjørn Erik Pedersen [Mon, 11 Apr 2016 11:26:33 +0000 (13:26 +0200)]
docs: Fix example for Param method

Fixes #2070

8 years agoUse Node.ID for anchor ID
Bjørn Erik Pedersen [Mon, 11 Apr 2016 11:17:25 +0000 (13:17 +0200)]
Use Node.ID for anchor ID

Fixes #2057

8 years agoAdd Node.ID
Bjørn Erik Pedersen [Mon, 11 Apr 2016 09:49:02 +0000 (11:49 +0200)]
Add Node.ID

Fixes #2071

8 years agohelpers: Ignore cache for Pygments when flag set
Robert Basic [Sun, 10 Apr 2016 08:11:00 +0000 (10:11 +0200)]
helpers: Ignore cache for Pygments when flag set

When the --ignoreCache flag is set to true, do not write and read
the Pygments results to/from the cache directory.

Fixes #2066
Closes #2068

8 years agoFix section menus for lazy blogger
Bjørn Erik Pedersen [Sun, 10 Apr 2016 11:49:32 +0000 (13:49 +0200)]
Fix section menus for lazy blogger

IsMenuCurrent was always returning false for the top level entries.

Fixes #2065

8 years agohugofs: Add package doc
Bjørn Erik Pedersen [Sat, 9 Apr 2016 23:36:53 +0000 (01:36 +0200)]
hugofs: Add package doc

8 years agocreate: Add package doc
Bjørn Erik Pedersen [Sat, 9 Apr 2016 23:36:03 +0000 (01:36 +0200)]
create: Add package doc

8 years agobufpool: Add package doc
Bjørn Erik Pedersen [Sat, 9 Apr 2016 23:34:15 +0000 (01:34 +0200)]
bufpool: Add package doc

8 years agoAdd GoDocs badge
Bjørn Erik Pedersen [Sat, 9 Apr 2016 22:14:16 +0000 (00:14 +0200)]
Add GoDocs badge

8 years agodocs: Regenerate the commands docs
Bjørn Erik Pedersen [Sat, 9 Apr 2016 21:01:55 +0000 (23:01 +0200)]
docs: Regenerate the commands docs

8 years agohugolib: Add option to disable rendering of 404 page
digitalcraftsman [Sat, 2 Apr 2016 22:22:31 +0000 (00:22 +0200)]
hugolib: Add option to disable rendering of 404 page

Fixes #1889
Closes #2037

8 years agoMove section initialization to Site.assembleSections
nitoyon [Tue, 27 Oct 2015 16:55:57 +0000 (01:55 +0900)]
Move section initialization to Site.assembleSections

Closes #1527

8 years agoFix potential data race in test
Bjørn Erik Pedersen [Sat, 9 Apr 2016 12:25:33 +0000 (14:25 +0200)]
Fix potential data race in test

8 years agodocs: Add commercial services to the "Tools" section
Göran Svensson [Thu, 7 Apr 2016 22:12:29 +0000 (00:12 +0200)]
docs: Add commercial services to the "Tools" section

8 years agodocs: Document how to install dependencies for tests
Aditya Bhargava [Sat, 12 Mar 2016 22:36:16 +0000 (14:36 -0800)]
docs: Document how to install dependencies for tests

Fixes #919

8 years agodocs: Fix missing step in Windows version check instructions
JoeArizona [Tue, 5 Apr 2016 00:22:24 +0000 (17:22 -0700)]
docs: Fix missing step in Windows version check instructions

The procedure Start button --> Settings --> About was missing a step. Corrected it to: Start --> Settings --> System --> About. Also replaced ASCII arrows (-->) with Unicode right arrow character (U+2192).

8 years agodocs: Document Go 1.6's new ability to trim whitespace
Erik Ebsen [Sat, 2 Apr 2016 15:34:04 +0000 (10:34 -0500)]
docs: Document Go 1.6's new ability to trim whitespace

8 years agodocs: Fix Go version in install guide
Bjørn Erik Pedersen [Sat, 9 Apr 2016 11:16:56 +0000 (13:16 +0200)]
docs: Fix Go version in install guide

8 years agodocs: Remove remaining Mercurial references
digitalcraftsman [Sat, 9 Apr 2016 10:40:58 +0000 (12:40 +0200)]
docs: Remove remaining Mercurial references

8 years agoSave auto-detected markup type in Page.Markup
ypnos [Sun, 20 Mar 2016 20:40:03 +0000 (21:40 +0100)]
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

8 years agodocs: Remove Mercurial from contribution tutorial
digitalcraftsman [Fri, 8 Apr 2016 19:52:50 +0000 (21:52 +0200)]
docs: Remove Mercurial from contribution tutorial

Fixes #2064

8 years agotpl: Add replaceRE to the "smoke tests"
digitalcraftsman [Fri, 8 Apr 2016 19:36:35 +0000 (21:36 +0200)]
tpl: Add replaceRE to the "smoke tests"

Fixes #2063

8 years agoMake Hugo build without Mercurial
Bjørn Erik Pedersen [Fri, 8 Apr 2016 19:11:44 +0000 (21:11 +0200)]
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

8 years agodocs: Add "How to contribute to Hugo" tutorial
digitalcraftsman [Sun, 3 Apr 2016 11:32:11 +0000 (13:32 +0200)]
docs: Add "How to contribute to Hugo" tutorial

8 years agodocs: Use HTTPS links in README where appropriate
Nik Nyby [Wed, 2 Mar 2016 18:54:56 +0000 (13:54 -0500)]
docs: Use HTTPS links in README where appropriate

8 years agocommands: Add helpful instuctions after "hugo new site"
digitalcraftsman [Sat, 2 Apr 2016 23:24:56 +0000 (01:24 +0200)]
commands: Add helpful instuctions after "hugo new site"

Fixes #1164

8 years agohugolib: Un-export internal Site-methods
Bjørn Erik Pedersen [Thu, 7 Apr 2016 18:03:03 +0000 (20:03 +0200)]
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

8 years agodocs: Fix references to section list templates
Julien Chien [Sat, 2 Apr 2016 22:29:36 +0000 (15:29 -0700)]
docs: Fix references to section list templates

Fixes #2032

8 years agodocs: Correct date for proper sorting in showcase
Anthony Fok [Fri, 8 Apr 2016 12:23:10 +0000 (20:23 +0800)]
docs: Correct date for proper sorting in showcase

8 years agodocs: Add one more quote
Bjørn Erik Pedersen [Thu, 7 Apr 2016 22:06:39 +0000 (00:06 +0200)]
docs: Add one more quote

8 years agodocs: Limit the quotes on front page to the last two years
Bjørn Erik Pedersen [Thu, 7 Apr 2016 21:46:46 +0000 (23:46 +0200)]
docs: Limit the quotes on front page to the last two years

We should get some new ones in there.

Also shuffle the order. This also means no merging into 0.15-docs ...

Which also means we should get a release out there ... soon!

See #2055

Also See https://github.com/BurntSushi/toml/issues/129 for an explanation to the little bit ugly dates.

9 years agodocs: Use data folder for website carousel
Robert Basic [Thu, 7 Apr 2016 18:19:08 +0000 (20:19 +0200)]
docs: Use data folder for website carousel

Fixes #2055

9 years agoDocument and clean SourceRelativeLinksEval code
Sven Dowideit [Tue, 15 Mar 2016 06:00:36 +0000 (16:00 +1000)]
Document and clean SourceRelativeLinksEval code

9 years agoRe-export the methods used in page group tests
Bjørn Erik Pedersen [Thu, 7 Apr 2016 16:44:58 +0000 (18:44 +0200)]
Re-export the methods used in page group tests

9 years agohugolib: Camelcase ALL_CAPS vars and const in tests
Bjørn Erik Pedersen [Thu, 7 Apr 2016 14:10:41 +0000 (16:10 +0200)]
hugolib: Camelcase ALL_CAPS vars and const in tests

See #2014

9 years agohuglib: Add even more missing GoDoc
Bjørn Erik Pedersen [Thu, 7 Apr 2016 14:05:23 +0000 (16:05 +0200)]
huglib: Add even more missing GoDoc

See #2014

9 years agosource: Add missing GoDoc in File
Bjørn Erik Pedersen [Thu, 7 Apr 2016 13:44:53 +0000 (15:44 +0200)]
source: Add missing GoDoc in File

See #2014

9 years agohugolib: Camel-case ALL_CAPS const in test
Bjørn Erik Pedersen [Thu, 7 Apr 2016 13:22:41 +0000 (15:22 +0200)]
hugolib: Camel-case ALL_CAPS const in test

9 years agohugolib: Add GoDoc to pageGroup.go
Bjørn Erik Pedersen [Thu, 7 Apr 2016 13:21:41 +0000 (15:21 +0200)]
hugolib: Add GoDoc to pageGroup.go

See #2014

9 years agohugofs: Fix GoDoc
Bjørn Erik Pedersen [Thu, 7 Apr 2016 11:56:11 +0000 (13:56 +0200)]
hugofs: Fix GoDoc

9 years agoBuild Hugo in Travis with race detection enabled
Bjørn Erik Pedersen [Thu, 7 Apr 2016 11:40:18 +0000 (13:40 +0200)]
Build Hugo in Travis with race detection enabled

9 years agoAdd go test -race to make check
Bjørn Erik Pedersen [Thu, 7 Apr 2016 11:36:48 +0000 (13:36 +0200)]
Add go test -race to make check

9 years agoRemove Wercker badge
Bjørn Erik Pedersen [Thu, 7 Apr 2016 11:28:26 +0000 (13:28 +0200)]
Remove Wercker badge

See #2054

9 years agotpl: Add findRE template func
digitalcraftsman [Tue, 5 Apr 2016 16:02:18 +0000 (18:02 +0200)]
tpl: Add findRE template func

9 years agoDo not create robots.txt by default
Bjørn Erik Pedersen [Tue, 5 Apr 2016 20:20:39 +0000 (22:20 +0200)]
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

9 years agoDisable syntax guessing for PygmentsCodeFences by default
Philipp Oppermann [Thu, 31 Mar 2016 11:14:57 +0000 (13:14 +0200)]
Disable syntax guessing for PygmentsCodeFences by default

This disables highlighting for fenced code blocks without explicitly specified language. It also introduces a new `PygmentsCodeFencesGuessSyntax` config option (defaulting to false).

To enable syntax guessing again, add the following to your config file: `PygmentsCodeFencesGuessSyntax = true`

This is a breaking change.

9 years agodocs: Add yushuangqi.com to the showcase
ysqi [Fri, 25 Mar 2016 01:05:49 +0000 (09:05 +0800)]
docs: Add yushuangqi.com to the showcase

9 years agodocs: embed YouTube video in Windows installation tutorial
digitalcraftsman [Sun, 3 Apr 2016 12:28:12 +0000 (14:28 +0200)]
docs: embed YouTube video in Windows installation tutorial

9 years agodocs: Update set PATH instructions for Windows
JohnBlood [Wed, 30 Mar 2016 23:07:08 +0000 (19:07 -0400)]
docs: Update set PATH instructions for Windows

9 years agodocs: Fix menu in firefox
Robert Basic [Sat, 2 Apr 2016 06:58:06 +0000 (08:58 +0200)]
docs: Fix menu in firefox

Fixes #1875

9 years agodocs: Add alternative for Wordpress import
JohnBlood [Sun, 3 Apr 2016 02:06:23 +0000 (22:06 -0400)]
docs: Add alternative for Wordpress import

I have had trouble getting the Wordpress to Hugo exporter working, so I
added this tip for others to take advantage of.

9 years agotpl: Add the other test case for hasPrefix
Bjørn Erik Pedersen [Sat, 2 Apr 2016 23:59:47 +0000 (01:59 +0200)]
tpl: Add the other test case for hasPrefix

9 years agotpl: Sort the smoke tests
Bjørn Erik Pedersen [Sat, 2 Apr 2016 23:57:22 +0000 (01:57 +0200)]
tpl: Sort the smoke tests

9 years agotpl: Add hasPrefix to the template funcs' "smoke test"
digitalcraftsman [Sat, 2 Apr 2016 23:29:13 +0000 (01:29 +0200)]
tpl: Add hasPrefix to the template funcs' "smoke test"

9 years agodocs: Add documentation for hasPrefix template func
digitalcraftsman [Sat, 2 Apr 2016 22:44:25 +0000 (00:44 +0200)]
docs: Add documentation for hasPrefix template func

Fixes #2039

9 years agotpl: Fix panic in sort of nil sequence
Cameron Moore [Tue, 29 Mar 2016 23:54:46 +0000 (18:54 -0500)]
tpl: Fix panic in sort of nil sequence

Properly handle a nil sequence in the sortSeq function.  Test included.
Discovered while using `range sort .Site.Data.source.Undefined "foo"`.

9 years agotpl: Fix panic in pairList.Less
Cameron Moore [Wed, 30 Mar 2016 01:50:54 +0000 (20:50 -0500)]
tpl: Fix panic in pairList.Less

While sorting on data sources with missing fields, a panic can occur in
pairList.Less if `Interface()` is called on a invalid `reflect.Value`.
This commit detects an invalid Value and replacing it with a zero value
for the comparison.

9 years agoMake ByCount sort consistently
Robert Basic [Fri, 1 Apr 2016 18:17:16 +0000 (20:17 +0200)]
Make ByCount sort consistently

When two or more taxonomies have the same number of pages,
sort them by name to have consistent ByCount sorting of
taxonomies.

Fixes #1930

9 years agohugofs: Add missing not nil checks to tests
Bjørn Erik Pedersen [Fri, 1 Apr 2016 23:23:12 +0000 (01:23 +0200)]
hugofs: Add missing not nil checks to tests

9 years agoUse to most specific interface in WriteDestPage
Bjørn Erik Pedersen [Fri, 1 Apr 2016 22:04:08 +0000 (00:04 +0200)]
Use to most specific interface in WriteDestPage

9 years agodocs: Add doc and a test for readDir
Bjørn Erik Pedersen [Thu, 31 Mar 2016 21:16:42 +0000 (23:16 +0200)]
docs: Add doc and a test for readDir

Fixes #2009

9 years agotpl: Make readDir use the WorkingDir fs
Bjørn Erik Pedersen [Thu, 31 Mar 2016 21:06:51 +0000 (23:06 +0200)]
tpl: Make readDir use the WorkingDir fs

Fixes #2010

9 years agoAdd readFile template func
Bjørn Erik Pedersen [Mon, 21 Mar 2016 23:28:42 +0000 (00:28 +0100)]
Add readFile template func

This also includes a refactor of the hugofs package and its usage.

The motivation for that is:

The Afero filesystems are brilliant. Hugo's way of adding a dozen of global variables for the different filesystems was a mistake. In readFile (and also in some other places in Hugo today) we need a way to restrict the access inside the working dir. We could use ioutil.ReadFile and implement the path checking, checking the base path and the dots ("..") etc. But it is obviously better to use an Afero BasePathFs combined witha ReadOnlyFs. We could create a use-once-filesystem and handle the initialization ourselves, but since this is also useful to others and the initialization depends on some other global state (which would mean to create a new file system on every invocation), we might as well do it properly and encapsulate the predefined set of filesystems. This change also leads the way, if needed, to encapsulate the file systems in a struct, making it possible to have several file system sets in action at once (parallel multilanguage site building? With Moore's law and all...)

Fixes #1551

9 years agodocs: Mention CLA in the showcase contribution guidelines
digitalcraftsman [Wed, 30 Mar 2016 16:01:50 +0000 (18:01 +0200)]
docs: Mention CLA in the showcase contribution guidelines

9 years agodocs: Remove incorrent reference to list.html
Rob Muhlestein [Mon, 28 Mar 2016 18:25:33 +0000 (14:25 -0400)]
docs: Remove incorrent reference to list.html

9 years agodocs: Fix typo in templates/functions.md
digitalcraftsman [Mon, 28 Mar 2016 15:04:29 +0000 (17:04 +0200)]
docs: Fix typo in templates/functions.md

9 years agodocs: Add surge.sh to main page of static site hosters
Rob Muhlestein [Sun, 20 Mar 2016 12:15:54 +0000 (08:15 -0400)]
docs: Add surge.sh to main page of static site hosters

See #1994

9 years agodocs: Document GitHub flavoured code fences
Robert Basic [Mon, 28 Mar 2016 08:21:46 +0000 (10:21 +0200)]
docs: Document GitHub flavoured code fences
Fixes #1259

9 years agodocs: Document lastmod variable
Robert Basic [Mon, 28 Mar 2016 11:44:02 +0000 (13:44 +0200)]
docs: Document lastmod variable
Fixes #1351

9 years agodocs: Document the split function
Robert Basic [Mon, 28 Mar 2016 07:27:29 +0000 (09:27 +0200)]
docs: Document the split function
Fixes #1997

9 years agodocs: Add silvergeko.it to the showcase
Scopel Emanuele [Mon, 28 Mar 2016 12:48:01 +0000 (14:48 +0200)]
docs: Add silvergeko.it to the showcase

9 years agodocs: Add robertbasic.com to the showcase
Robert Basic [Sat, 26 Mar 2016 16:58:11 +0000 (17:58 +0100)]
docs: Add robertbasic.com to the showcase

9 years agoFix error handling in SymbolicWalk
Bjørn Erik Pedersen [Fri, 25 Mar 2016 17:18:39 +0000 (18:18 +0100)]
Fix error handling in SymbolicWalk

9 years agohelpers: Fix SymbolicWalk for the root folder
Bjørn Erik Pedersen [Fri, 25 Mar 2016 11:47:57 +0000 (12:47 +0100)]
helpers: Fix SymbolicWalk for the root folder

handle the root folders themselves.

This commit fixes that.

Fixes #2018

9 years agodocs: Adapt commit message for showcase additions
digitalcraftsman [Fri, 25 Mar 2016 11:32:46 +0000 (12:32 +0100)]
docs: Adapt commit message for showcase additions

9 years agodocs: Add search form powered by Algolia
digitalcraftsman [Thu, 24 Mar 2016 19:06:35 +0000 (20:06 +0100)]
docs: Add search form powered by Algolia

9 years agohugolib: Some more unexports
Bjørn Erik Pedersen [Fri, 25 Mar 2016 02:12:03 +0000 (03:12 +0100)]
hugolib: Some more unexports

9 years agocommands: Apply Golint rules
digitalcraftsman [Thu, 24 Mar 2016 22:34:12 +0000 (23:34 +0100)]
commands: Apply Golint rules

9 years agohelpers: Apply GoLint rules
digitalcraftsman [Thu, 24 Mar 2016 22:16:18 +0000 (23:16 +0100)]
helpers: Apply GoLint rules

9 years agotpl: Small Golint fixes
digitalcraftsman [Thu, 24 Mar 2016 21:56:50 +0000 (22:56 +0100)]
tpl: Small Golint fixes

9 years agoparser: Remove unused vars
Bjørn Erik Pedersen [Thu, 24 Mar 2016 20:34:34 +0000 (21:34 +0100)]
parser: Remove unused vars

9 years agoBe explicit about the type in Scratch test
Bjørn Erik Pedersen [Thu, 24 Mar 2016 18:57:26 +0000 (19:57 +0100)]
Be explicit about the type in Scratch test

A puzzle, but it sometimes produces a int64 as it is now.

9 years agohugolib: Remove unused Tmpl on Page
Bjørn Erik Pedersen [Thu, 24 Mar 2016 17:34:41 +0000 (18:34 +0100)]
hugolib: Remove unused Tmpl on Page

9 years agoDo not use defer for unlocking in Scratch
Bjørn Erik Pedersen [Thu, 24 Mar 2016 14:33:25 +0000 (15:33 +0100)]
Do not use defer for unlocking in Scratch

It is a fairly costly operation:

```
benchmark                 old ns/op     new ns/op     delta
BenchmarkScratchGet-4     109           31.6          -71.01%

benchmark                 old allocs     new allocs     delta
BenchmarkScratchGet-4     0              0              +0.00%

benchmark                 old bytes     new bytes     delta
BenchmarkScratchGet-4     0             0             +0.00%
´´´

9 years agohugolib: Taxonomy GoDoc cleanup
Bjørn Erik Pedersen [Thu, 24 Mar 2016 15:01:25 +0000 (16:01 +0100)]
hugolib: Taxonomy GoDoc cleanup

9 years agoAdd a simple benchmark for Scratch
Bjørn Erik Pedersen [Thu, 24 Mar 2016 14:05:40 +0000 (15:05 +0100)]
Add a simple benchmark for Scratch

9 years agohugolib: Even more Golint fixes
Bjørn Erik Pedersen [Thu, 24 Mar 2016 13:42:03 +0000 (14:42 +0100)]
hugolib: Even more Golint fixes