Bjørn Erik Pedersen [Tue, 12 Apr 2016 16:34:46 +0000 (18:34 +0200)]
Default to plainIDAnchors
Fixes #2057
Bjørn Erik Pedersen [Tue, 12 Apr 2016 16:11:52 +0000 (18:11 +0200)]
Revert "Add Node.ID"
This reverts commit
5ef52294f90c51697bd3f918b3c3ed83baff657a.
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.
Bjørn Erik Pedersen [Mon, 11 Apr 2016 11:26:33 +0000 (13:26 +0200)]
docs: Fix example for Param method
Fixes #2070
Bjørn Erik Pedersen [Mon, 11 Apr 2016 11:17:25 +0000 (13:17 +0200)]
Use Node.ID for anchor ID
Fixes #2057
Bjørn Erik Pedersen [Mon, 11 Apr 2016 09:49:02 +0000 (11:49 +0200)]
Add Node.ID
Fixes #2071
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
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
Bjørn Erik Pedersen [Sat, 9 Apr 2016 23:36:53 +0000 (01:36 +0200)]
hugofs: Add package doc
Bjørn Erik Pedersen [Sat, 9 Apr 2016 23:36:03 +0000 (01:36 +0200)]
create: Add package doc
Bjørn Erik Pedersen [Sat, 9 Apr 2016 23:34:15 +0000 (01:34 +0200)]
bufpool: Add package doc
Bjørn Erik Pedersen [Sat, 9 Apr 2016 22:14:16 +0000 (00:14 +0200)]
Add GoDocs badge
Bjørn Erik Pedersen [Sat, 9 Apr 2016 21:01:55 +0000 (23:01 +0200)]
docs: Regenerate the commands docs
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
nitoyon [Tue, 27 Oct 2015 16:55:57 +0000 (01:55 +0900)]
Move section initialization to Site.assembleSections
Closes #1527
Bjørn Erik Pedersen [Sat, 9 Apr 2016 12:25:33 +0000 (14:25 +0200)]
Fix potential data race in test
Göran Svensson [Thu, 7 Apr 2016 22:12:29 +0000 (00:12 +0200)]
docs: Add commercial services to the "Tools" section
Aditya Bhargava [Sat, 12 Mar 2016 22:36:16 +0000 (14:36 -0800)]
docs: Document how to install dependencies for tests
Fixes #919
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).
Erik Ebsen [Sat, 2 Apr 2016 15:34:04 +0000 (10:34 -0500)]
docs: Document Go 1.6's new ability to trim whitespace
Bjørn Erik Pedersen [Sat, 9 Apr 2016 11:16:56 +0000 (13:16 +0200)]
docs: Fix Go version in install guide
digitalcraftsman [Sat, 9 Apr 2016 10:40:58 +0000 (12:40 +0200)]
docs: Remove remaining Mercurial references
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
digitalcraftsman [Fri, 8 Apr 2016 19:52:50 +0000 (21:52 +0200)]
docs: Remove Mercurial from contribution tutorial
Fixes #2064
digitalcraftsman [Fri, 8 Apr 2016 19:36:35 +0000 (21:36 +0200)]
tpl: Add replaceRE to the "smoke tests"
Fixes #2063
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
digitalcraftsman [Sun, 3 Apr 2016 11:32:11 +0000 (13:32 +0200)]
docs: Add "How to contribute to Hugo" tutorial
Nik Nyby [Wed, 2 Mar 2016 18:54:56 +0000 (13:54 -0500)]
docs: Use HTTPS links in README where appropriate
digitalcraftsman [Sat, 2 Apr 2016 23:24:56 +0000 (01:24 +0200)]
commands: Add helpful instuctions after "hugo new site"
Fixes #1164
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
Julien Chien [Sat, 2 Apr 2016 22:29:36 +0000 (15:29 -0700)]
docs: Fix references to section list templates
Fixes #2032
Anthony Fok [Fri, 8 Apr 2016 12:23:10 +0000 (20:23 +0800)]
docs: Correct date for proper sorting in showcase
Bjørn Erik Pedersen [Thu, 7 Apr 2016 22:06:39 +0000 (00:06 +0200)]
docs: Add one more quote
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.
Robert Basic [Thu, 7 Apr 2016 18:19:08 +0000 (20:19 +0200)]
docs: Use data folder for website carousel
Fixes #2055
Sven Dowideit [Tue, 15 Mar 2016 06:00:36 +0000 (16:00 +1000)]
Document and clean SourceRelativeLinksEval code
Bjørn Erik Pedersen [Thu, 7 Apr 2016 16:44:58 +0000 (18:44 +0200)]
Re-export the methods used in page group 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
Bjørn Erik Pedersen [Thu, 7 Apr 2016 14:05:23 +0000 (16:05 +0200)]
huglib: Add even more missing GoDoc
See #2014
Bjørn Erik Pedersen [Thu, 7 Apr 2016 13:44:53 +0000 (15:44 +0200)]
source: Add missing GoDoc in File
See #2014
Bjørn Erik Pedersen [Thu, 7 Apr 2016 13:22:41 +0000 (15:22 +0200)]
hugolib: Camel-case ALL_CAPS const in test
Bjørn Erik Pedersen [Thu, 7 Apr 2016 13:21:41 +0000 (15:21 +0200)]
hugolib: Add GoDoc to pageGroup.go
See #2014
Bjørn Erik Pedersen [Thu, 7 Apr 2016 11:56:11 +0000 (13:56 +0200)]
hugofs: Fix GoDoc
Bjørn Erik Pedersen [Thu, 7 Apr 2016 11:40:18 +0000 (13:40 +0200)]
Build Hugo in Travis with race detection enabled
Bjørn Erik Pedersen [Thu, 7 Apr 2016 11:36:48 +0000 (13:36 +0200)]
Add go test -race to make check
Bjørn Erik Pedersen [Thu, 7 Apr 2016 11:28:26 +0000 (13:28 +0200)]
Remove Wercker badge
See #2054
digitalcraftsman [Tue, 5 Apr 2016 16:02:18 +0000 (18:02 +0200)]
tpl: Add findRE template func
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
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.
ysqi [Fri, 25 Mar 2016 01:05:49 +0000 (09:05 +0800)]
docs: Add yushuangqi.com to the showcase
digitalcraftsman [Sun, 3 Apr 2016 12:28:12 +0000 (14:28 +0200)]
docs: embed YouTube video in Windows installation tutorial
JohnBlood [Wed, 30 Mar 2016 23:07:08 +0000 (19:07 -0400)]
docs: Update set PATH instructions for Windows
Robert Basic [Sat, 2 Apr 2016 06:58:06 +0000 (08:58 +0200)]
docs: Fix menu in firefox
Fixes #1875
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.
Bjørn Erik Pedersen [Sat, 2 Apr 2016 23:59:47 +0000 (01:59 +0200)]
tpl: Add the other test case for hasPrefix
Bjørn Erik Pedersen [Sat, 2 Apr 2016 23:57:22 +0000 (01:57 +0200)]
tpl: Sort the smoke tests
digitalcraftsman [Sat, 2 Apr 2016 23:29:13 +0000 (01:29 +0200)]
tpl: Add hasPrefix to the template funcs' "smoke test"
digitalcraftsman [Sat, 2 Apr 2016 22:44:25 +0000 (00:44 +0200)]
docs: Add documentation for hasPrefix template func
Fixes #2039
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"`.
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.
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
Bjørn Erik Pedersen [Fri, 1 Apr 2016 23:23:12 +0000 (01:23 +0200)]
hugofs: Add missing not nil checks to tests
Bjørn Erik Pedersen [Fri, 1 Apr 2016 22:04:08 +0000 (00:04 +0200)]
Use to most specific interface in WriteDestPage
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
Bjørn Erik Pedersen [Thu, 31 Mar 2016 21:06:51 +0000 (23:06 +0200)]
tpl: Make readDir use the WorkingDir fs
Fixes #2010
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
digitalcraftsman [Wed, 30 Mar 2016 16:01:50 +0000 (18:01 +0200)]
docs: Mention CLA in the showcase contribution guidelines
Rob Muhlestein [Mon, 28 Mar 2016 18:25:33 +0000 (14:25 -0400)]
docs: Remove incorrent reference to list.html
digitalcraftsman [Mon, 28 Mar 2016 15:04:29 +0000 (17:04 +0200)]
docs: Fix typo in templates/functions.md
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
Robert Basic [Mon, 28 Mar 2016 08:21:46 +0000 (10:21 +0200)]
docs: Document GitHub flavoured code fences
Fixes #1259
Robert Basic [Mon, 28 Mar 2016 11:44:02 +0000 (13:44 +0200)]
docs: Document lastmod variable
Fixes #1351
Robert Basic [Mon, 28 Mar 2016 07:27:29 +0000 (09:27 +0200)]
docs: Document the split function
Fixes #1997
Scopel Emanuele [Mon, 28 Mar 2016 12:48:01 +0000 (14:48 +0200)]
docs: Add silvergeko.it to the showcase
Robert Basic [Sat, 26 Mar 2016 16:58:11 +0000 (17:58 +0100)]
docs: Add robertbasic.com to the showcase
Bjørn Erik Pedersen [Fri, 25 Mar 2016 17:18:39 +0000 (18:18 +0100)]
Fix error handling in SymbolicWalk
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
digitalcraftsman [Fri, 25 Mar 2016 11:32:46 +0000 (12:32 +0100)]
docs: Adapt commit message for showcase additions
digitalcraftsman [Thu, 24 Mar 2016 19:06:35 +0000 (20:06 +0100)]
docs: Add search form powered by Algolia
Bjørn Erik Pedersen [Fri, 25 Mar 2016 02:12:03 +0000 (03:12 +0100)]
hugolib: Some more unexports
digitalcraftsman [Thu, 24 Mar 2016 22:34:12 +0000 (23:34 +0100)]
commands: Apply Golint rules
digitalcraftsman [Thu, 24 Mar 2016 22:16:18 +0000 (23:16 +0100)]
helpers: Apply GoLint rules
digitalcraftsman [Thu, 24 Mar 2016 21:56:50 +0000 (22:56 +0100)]
tpl: Small Golint fixes
Bjørn Erik Pedersen [Thu, 24 Mar 2016 20:34:34 +0000 (21:34 +0100)]
parser: Remove unused vars
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.
Bjørn Erik Pedersen [Thu, 24 Mar 2016 17:34:41 +0000 (18:34 +0100)]
hugolib: Remove unused Tmpl on Page
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%
´´´
Bjørn Erik Pedersen [Thu, 24 Mar 2016 15:01:25 +0000 (16:01 +0100)]
hugolib: Taxonomy GoDoc cleanup
Bjørn Erik Pedersen [Thu, 24 Mar 2016 14:05:40 +0000 (15:05 +0100)]
Add a simple benchmark for Scratch
Bjørn Erik Pedersen [Thu, 24 Mar 2016 13:42:03 +0000 (14:42 +0100)]
hugolib: Even more Golint fixes
Bjørn Erik Pedersen [Thu, 24 Mar 2016 13:27:36 +0000 (14:27 +0100)]
helpers: Fix GoDoc in Hugo version constants
Bjørn Erik Pedersen [Thu, 24 Mar 2016 13:24:22 +0000 (14:24 +0100)]
commands: Apply Golint rules to hugo.go
Bjørn Erik Pedersen [Thu, 24 Mar 2016 13:20:00 +0000 (14:20 +0100)]
hugolib: Apply Golint rules to rss_test.go
Bjørn Erik Pedersen [Thu, 24 Mar 2016 13:18:47 +0000 (14:18 +0100)]
hugolib: Add missing GoDoc in pagination.go
Bjørn Erik Pedersen [Thu, 24 Mar 2016 13:11:04 +0000 (14:11 +0100)]
hugolib: Some more GoLint fixes
Bjørn Erik Pedersen [Thu, 24 Mar 2016 13:05:08 +0000 (14:05 +0100)]
livereload: Add missing GoDoc
Bjørn Erik Pedersen [Thu, 24 Mar 2016 12:30:08 +0000 (13:30 +0100)]
hugoblib: Clean up the time tests
Bjørn Erik Pedersen [Wed, 23 Mar 2016 20:55:14 +0000 (21:55 +0100)]
transform: Group vars and consts in chain_test
Bjørn Erik Pedersen [Wed, 23 Mar 2016 19:03:13 +0000 (20:03 +0100)]
transform: Clean up the var naming mess in chain_test
Bjørn Erik Pedersen [Wed, 23 Mar 2016 16:17:54 +0000 (17:17 +0100)]
hugolib: Some more Golint fixes