]> git.maquefel.me Git - brevno-suite/hugo/log
brevno-suite/hugo
10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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.

10 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

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

10 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

10 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

10 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

10 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

10 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

10 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

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

10 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

10 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

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

See #2054

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

10 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

10 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.

10 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

10 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

10 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

10 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

10 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.

10 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

10 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

10 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"

10 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

10 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"`.

10 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.

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

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

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

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

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

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

10 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.

10 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

10 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%
´´´

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

10 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

10 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

10 years agohelpers: Fix GoDoc in Hugo version constants
Bjørn Erik Pedersen [Thu, 24 Mar 2016 13:27:36 +0000 (14:27 +0100)]
helpers: Fix GoDoc in Hugo version constants

10 years agocommands: Apply Golint rules to hugo.go
Bjørn Erik Pedersen [Thu, 24 Mar 2016 13:24:22 +0000 (14:24 +0100)]
commands: Apply Golint rules to hugo.go

10 years agohugolib: Apply Golint rules to rss_test.go
Bjørn Erik Pedersen [Thu, 24 Mar 2016 13:20:00 +0000 (14:20 +0100)]
hugolib: Apply Golint rules to rss_test.go

10 years agohugolib: Add missing GoDoc in pagination.go
Bjørn Erik Pedersen [Thu, 24 Mar 2016 13:18:47 +0000 (14:18 +0100)]
hugolib: Add missing GoDoc in pagination.go

10 years agohugolib: Some more GoLint fixes
Bjørn Erik Pedersen [Thu, 24 Mar 2016 13:11:04 +0000 (14:11 +0100)]
hugolib: Some more GoLint fixes

10 years agolivereload: Add missing GoDoc
Bjørn Erik Pedersen [Thu, 24 Mar 2016 13:05:08 +0000 (14:05 +0100)]
livereload: Add missing GoDoc

10 years agohugoblib: Clean up the time tests
Bjørn Erik Pedersen [Thu, 24 Mar 2016 12:30:08 +0000 (13:30 +0100)]
hugoblib: Clean up the time tests

10 years agotransform: Group vars and consts in chain_test
Bjørn Erik Pedersen [Wed, 23 Mar 2016 20:55:14 +0000 (21:55 +0100)]
transform: Group vars and consts in chain_test

10 years agotransform: Clean up the var naming mess 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

10 years agohugolib: Some more Golint fixes
Bjørn Erik Pedersen [Wed, 23 Mar 2016 16:17:54 +0000 (17:17 +0100)]
hugolib: Some more Golint fixes

10 years agohugolib: Fix spelling mistake
Bjørn Erik Pedersen [Wed, 23 Mar 2016 16:12:47 +0000 (17:12 +0100)]
hugolib: Fix spelling mistake

10 years agohugolib: Add Godoc to pageSort
Bjørn Erik Pedersen [Wed, 23 Mar 2016 16:11:29 +0000 (17:11 +0100)]
hugolib: Add Godoc to pageSort

10 years agoparser: Make the constant vars ... constants
Bjørn Erik Pedersen [Wed, 23 Mar 2016 14:05:32 +0000 (15:05 +0100)]
parser: Make the constant vars ... constants

10 years agoparser: Fix ALL_CAPS var names in test
Bjørn Erik Pedersen [Wed, 23 Mar 2016 14:02:00 +0000 (15:02 +0100)]
parser: Fix ALL_CAPS var names in test

10 years agoparser: Spring code cleaning
Bjørn Erik Pedersen [Wed, 23 Mar 2016 13:51:16 +0000 (14:51 +0100)]
parser: Spring code cleaning

10 years agohugolib: Fix some more Golint warnings
Bjørn Erik Pedersen [Wed, 23 Mar 2016 09:10:28 +0000 (10:10 +0100)]
hugolib: Fix some more Golint warnings

10 years agohelpers: Fix and add Godoc in path*
Bjørn Erik Pedersen [Wed, 23 Mar 2016 09:03:29 +0000 (10:03 +0100)]
helpers: Fix and add Godoc in path*

10 years agohelpers: Remove the else in MakePathSanitized
Bjørn Erik Pedersen [Wed, 23 Mar 2016 08:45:18 +0000 (09:45 +0100)]
helpers: Remove the else in MakePathSanitized

10 years agoDo some minor code cleaning of Site
Bjørn Erik Pedersen [Wed, 23 Mar 2016 08:43:04 +0000 (09:43 +0100)]
Do some minor code cleaning of Site

* Unexport some methods/fields
* Add some godoc

Still plenty to do here.

10 years agotransform: Golint fixes
Bjørn Erik Pedersen [Wed, 23 Mar 2016 08:35:50 +0000 (09:35 +0100)]
transform: Golint fixes

10 years agotarget: Fix some Golint warnings
Bjørn Erik Pedersen [Tue, 22 Mar 2016 23:44:51 +0000 (00:44 +0100)]
target: Fix some Golint warnings

10 years agoSpring cleaning of the menu code
Bjørn Erik Pedersen [Tue, 22 Mar 2016 23:29:39 +0000 (00:29 +0100)]
Spring cleaning of the menu code

10 years agoheloers: Add a linefeed to make Golint happy
Bjørn Erik Pedersen [Tue, 22 Mar 2016 23:07:44 +0000 (00:07 +0100)]
heloers: Add a linefeed to make Golint happy

10 years agocommands: Fix remaining Golint warning
Bjørn Erik Pedersen [Tue, 22 Mar 2016 23:06:10 +0000 (00:06 +0100)]
commands: Fix remaining Golint warning

10 years agoutils: Add godoc
Bjørn Erik Pedersen [Tue, 22 Mar 2016 23:04:28 +0000 (00:04 +0100)]
utils: Add godoc

10 years agohugolib: Fix Java-styled all-caps consts
Bjørn Erik Pedersen [Tue, 22 Mar 2016 22:59:07 +0000 (23:59 +0100)]
hugolib: Fix Java-styled all-caps consts

10 years agohelpers: Silence some Golint warnings
Bjørn Erik Pedersen [Tue, 22 Mar 2016 22:53:19 +0000 (23:53 +0100)]
helpers: Silence some Golint warnings

10 years agocommands: Do not use named return vals in Jekyll import
Bjørn Erik Pedersen [Tue, 22 Mar 2016 22:44:02 +0000 (23:44 +0100)]
commands: Do not use named return vals in Jekyll import

10 years agoCheck returned error in Scratch-test
Bjørn Erik Pedersen [Tue, 22 Mar 2016 22:40:39 +0000 (23:40 +0100)]
Check returned error in Scratch-test

10 years agoDo make check in Travis
Bjørn Erik Pedersen [Tue, 22 Mar 2016 19:35:02 +0000 (20:35 +0100)]
Do make check in Travis

10 years agosource: Consolidate if conditions
srinivasreddy [Mon, 21 Mar 2016 16:22:27 +0000 (21:52 +0530)]
source: Consolidate if conditions

10 years agosource: Remove unnecessary else condition
srinivasreddy [Mon, 21 Mar 2016 22:01:25 +0000 (03:31 +0530)]
source: Remove unnecessary else condition

10 years agohugolib: Use field keys in composite literals
Cameron Moore [Mon, 21 Mar 2016 14:36:19 +0000 (09:36 -0500)]
hugolib: Use field keys in composite literals

Small fix in shortcode tests to use field keys in a composite literal.

10 years agohelpers: Apply gofmt
Bjørn Erik Pedersen [Tue, 22 Mar 2016 18:43:03 +0000 (19:43 +0100)]
helpers: Apply gofmt

10 years agohugo: Add check tasks to Makefile
Cameron Moore [Mon, 21 Mar 2016 14:49:18 +0000 (09:49 -0500)]
hugo: Add check tasks to Makefile

Add some helpful tasks to the Makefile to make it easier to test code quality
prior to committing.  Use `make check` to run the standard checks.  As of now,
the cyclo and lint tasks are not part of the standard checks since Hugo doesn't
pass those checks.