brevno-suite/hugo
8 years agodocs: Order by Lastmod in release notes
Bjørn Erik Pedersen [Fri, 22 Apr 2016 18:47:21 +0000 (20:47 +0200)]
docs: Order by Lastmod in release notes

8 years agodocs: Order by Lastmod
Bjørn Erik Pedersen [Fri, 22 Apr 2016 18:46:04 +0000 (20:46 +0200)]
docs: Order by Lastmod

8 years agoAdd ByLastmod page sort
Bjørn Erik Pedersen [Fri, 22 Apr 2016 18:43:00 +0000 (20:43 +0200)]
Add ByLastmod page sort

8 years agodocs: Add notion of exiting the themes folder in quickstart
Alvaro Garcia [Sun, 17 Apr 2016 17:27:43 +0000 (19:27 +0200)]
docs: Add notion of exiting the themes folder in quickstart

8 years agodocs: Grammar fixes in overview/quickstart.md
Cian Ruane [Thu, 21 Apr 2016 19:05:49 +0000 (20:05 +0100)]
docs: Grammar fixes in overview/quickstart.md

8 years agodocs: Update showcase screenshot of yulinling.net
lynxiayel [Thu, 21 Apr 2016 21:16:45 +0000 (17:16 -0400)]
docs: Update showcase screenshot of yulinling.net

8 years agodocs: Add some more fixes to release notes
Bjørn Erik Pedersen [Fri, 22 Apr 2016 17:03:46 +0000 (19:03 +0200)]
docs: Add some more fixes to release notes

8 years agodocs: Move image-width fix to style.css
digitalcraftsman [Fri, 22 Apr 2016 16:23:12 +0000 (18:23 +0200)]
docs: Move image-width fix to style.css

8 years agodocs: Move Algolia styling into style.css
digitalcraftsman [Fri, 22 Apr 2016 16:18:50 +0000 (18:18 +0200)]
docs: Move Algolia styling into style.css

8 years agoMake alias redirect output URL's relative
Sven Dowideit [Tue, 19 Apr 2016 01:40:15 +0000 (11:40 +1000)]
Make alias redirect output URL's relative

Closes #2093

8 years agodocs: Fix findRE typo
Cameron Moore [Thu, 21 Apr 2016 17:38:40 +0000 (12:38 -0500)]
docs: Fix findRE typo

8 years agodocs: Fix some typos in release notes
Bjørn Erik Pedersen [Thu, 21 Apr 2016 09:27:12 +0000 (11:27 +0200)]
docs: Fix some typos in release notes

8 years agodoc: Get feature list of 0.16 release notes up to date
Bjørn Erik Pedersen [Thu, 21 Apr 2016 09:23:54 +0000 (11:23 +0200)]
doc: Get feature list of 0.16 release notes up to date

8 years ago:books: Add ENV support to release notes
Bjørn Erik Pedersen [Wed, 20 Apr 2016 21:50:43 +0000 (23:50 +0200)]
:books: Add ENV support to release notes

8 years agoUpdate import path of fsnotify
Anthony Fok [Wed, 20 Apr 2016 14:28:26 +0000 (22:28 +0800)]
Update import path of fsnotify

Rename "gopkg.in/fsnotify.v1" to "github.com/fsnotify/fsnotify"
per upstream recommendation.

See https://github.com/fsnotify/fsnotify/issues/108 for rationale.

8 years agodocs: Add some doc about ENV config
Bjørn Erik Pedersen [Mon, 18 Apr 2016 16:44:51 +0000 (18:44 +0200)]
docs: Add some doc about ENV config

See #2090

8 years agocommands: Support config from ENV
Bjørn Erik Pedersen [Mon, 18 Apr 2016 16:37:32 +0000 (18:37 +0200)]
commands: Support config from ENV

So

```bash
env HUGO_TITLE="Some Title" hugo server
```

Will change the `title`.

Fixes #2090

8 years agodocs: Fix typo in tutorials/how-to-contribute-to-hugo.md
digitalcraftsman [Sun, 17 Apr 2016 18:56:05 +0000 (20:56 +0200)]
docs: Fix typo in tutorials/how-to-contribute-to-hugo.md

8 years agoAdd some schemaless BaseURL tests
Bjørn Erik Pedersen [Sun, 17 Apr 2016 17:55:38 +0000 (19:55 +0200)]
Add some schemaless BaseURL tests

See #2085

8 years agodocs: Fix grammar in templates/partials.md
Ernie Hershey [Fri, 15 Apr 2016 03:05:24 +0000 (23:05 -0400)]
docs: Fix grammar in templates/partials.md

Noticed this sentence seemingly missing a word or two.

8 years agodocs: Add tutorialonfly.com to the showcase
callmelanmao [Fri, 15 Apr 2016 06:50:19 +0000 (14:50 +0800)]
docs: Add tutorialonfly.com to the showcase

8 years agodocs: Fix lastmod date for chipsncookies in showcase
digitalcraftsman [Fri, 15 Apr 2016 16:45:46 +0000 (18:45 +0200)]
docs: Fix lastmod date for chipsncookies in showcase

8 years agodocs: Add barricade.io to the showcase
David Coallier [Fri, 15 Apr 2016 13:25:03 +0000 (14:25 +0100)]
docs: Add barricade.io to the showcase

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

9 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

9 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