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
Bjørn Erik Pedersen [Wed, 23 Mar 2016 16:12:47 +0000 (17:12 +0100)]
hugolib: Fix spelling mistake
Bjørn Erik Pedersen [Wed, 23 Mar 2016 16:11:29 +0000 (17:11 +0100)]
hugolib: Add Godoc to pageSort
Bjørn Erik Pedersen [Wed, 23 Mar 2016 14:05:32 +0000 (15:05 +0100)]
parser: Make the constant vars ... constants
Bjørn Erik Pedersen [Wed, 23 Mar 2016 14:02:00 +0000 (15:02 +0100)]
parser: Fix ALL_CAPS var names in test
Bjørn Erik Pedersen [Wed, 23 Mar 2016 13:51:16 +0000 (14:51 +0100)]
parser: Spring code cleaning
Bjørn Erik Pedersen [Wed, 23 Mar 2016 09:10:28 +0000 (10:10 +0100)]
hugolib: Fix some more Golint warnings
Bjørn Erik Pedersen [Wed, 23 Mar 2016 09:03:29 +0000 (10:03 +0100)]
helpers: Fix and add Godoc in path*
Bjørn Erik Pedersen [Wed, 23 Mar 2016 08:45:18 +0000 (09:45 +0100)]
helpers: Remove the else in MakePathSanitized
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.
Bjørn Erik Pedersen [Wed, 23 Mar 2016 08:35:50 +0000 (09:35 +0100)]
transform: Golint fixes
Bjørn Erik Pedersen [Tue, 22 Mar 2016 23:44:51 +0000 (00:44 +0100)]
target: Fix some Golint warnings
Bjørn Erik Pedersen [Tue, 22 Mar 2016 23:29:39 +0000 (00:29 +0100)]
Spring cleaning of the menu code
Bjørn Erik Pedersen [Tue, 22 Mar 2016 23:07:44 +0000 (00:07 +0100)]
heloers: Add a linefeed to make Golint happy
Bjørn Erik Pedersen [Tue, 22 Mar 2016 23:06:10 +0000 (00:06 +0100)]
commands: Fix remaining Golint warning
Bjørn Erik Pedersen [Tue, 22 Mar 2016 23:04:28 +0000 (00:04 +0100)]
utils: Add godoc
Bjørn Erik Pedersen [Tue, 22 Mar 2016 22:59:07 +0000 (23:59 +0100)]
hugolib: Fix Java-styled all-caps consts
Bjørn Erik Pedersen [Tue, 22 Mar 2016 22:53:19 +0000 (23:53 +0100)]
helpers: Silence some Golint warnings
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
Bjørn Erik Pedersen [Tue, 22 Mar 2016 22:40:39 +0000 (23:40 +0100)]
Check returned error in Scratch-test
Bjørn Erik Pedersen [Tue, 22 Mar 2016 19:35:02 +0000 (20:35 +0100)]
Do make check in Travis
srinivasreddy [Mon, 21 Mar 2016 16:22:27 +0000 (21:52 +0530)]
source: Consolidate if conditions
srinivasreddy [Mon, 21 Mar 2016 22:01:25 +0000 (03:31 +0530)]
source: Remove unnecessary else condition
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.
Bjørn Erik Pedersen [Tue, 22 Mar 2016 18:43:03 +0000 (19:43 +0100)]
helpers: Apply gofmt
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.
Bjørn Erik Pedersen [Mon, 21 Mar 2016 10:10:57 +0000 (11:10 +0100)]
Add Scratch to shortcode
Fixes #2000
Bjørn Erik Pedersen [Thu, 17 Mar 2016 14:51:52 +0000 (15:51 +0100)]
Re-render shortcode on template or data file change
Fixes #1971
Bjørn Erik Pedersen [Thu, 3 Mar 2016 14:53:15 +0000 (15:53 +0100)]
Add plainify template function
To strip away any HTML. May be useful for the .Title in head etc.
People may shoot themself in the foot with this, maybe ...
The replacement function is pretty fast.
Bjørn Erik Pedersen [Sun, 14 Feb 2016 11:16:03 +0000 (12:16 +0100)]
Add support for symbolic links for content, layout, static, theme
Note: This is for the content roots only, but that should satisfy most needs.
Fixes #1855
srinivasreddy [Sat, 12 Mar 2016 19:19:53 +0000 (00:49 +0530)]
Utils methods refactored for readability
Aditya Bhargava [Sat, 12 Mar 2016 23:48:21 +0000 (15:48 -0800)]
Add '+' as one of the valid characters in urls specified in the front matter
Fixes #1290
Bjørn Erik Pedersen [Mon, 21 Mar 2016 19:42:27 +0000 (20:42 +0100)]
Protect against concurrent Scratch read and write
Fixes #2005
Cameron Moore [Sat, 12 Mar 2016 06:27:34 +0000 (00:27 -0600)]
docs: Draft of 0.16 release notes
Also included is an enhancement to the gh shortcode to support sending commit
hashes by prepending "0x" to the hash.
Anthony Fok [Mon, 21 Mar 2016 07:16:39 +0000 (15:16 +0800)]
helpers: Rename getMmarkHtmlRenderer to getMmarkHTMLRenderer
To be consistent with the changes made in commit
67df33f, see #959.
Anthony Fok [Mon, 21 Mar 2016 06:25:00 +0000 (14:25 +0800)]
livereload: Run go fmt on connection.go
See #1998 and commit
bafb771
Cameron Moore [Thu, 17 Mar 2016 18:30:33 +0000 (13:30 -0500)]
create: Refactor NewContent to be testable
NewContent is refactored to use the afero.Fs interface that should allow
full testing. This commit also pulls the metadata creation logic out of
NewContent and into a separate function to decrease the cyclomatic
complexity of NewContent.
srinivasreddy [Sun, 20 Mar 2016 18:19:51 +0000 (23:49 +0530)]
livereload: Simplify conditional
Anthony Fok [Sat, 19 Mar 2016 20:21:16 +0000 (04:21 +0800)]
helpers: Support EXTENSION_BACKSLASH_LINE_BREAK for Blackfriday
Exposed as "backslashLineBreak" and enabled by default
as upstream have done.
Fixes #1935
Anthony Fok [Sat, 19 Mar 2016 20:12:53 +0000 (04:12 +0800)]
helpers: Fix minor typo in content_test.go
Bjørn Erik Pedersen [Sat, 19 Mar 2016 16:17:17 +0000 (17:17 +0100)]
Simplify GetDottedRelativePath
Bjørn Erik Pedersen [Sat, 19 Mar 2016 16:12:10 +0000 (17:12 +0100)]
Return early from parseOptions
Bjørn Erik Pedersen [Fri, 18 Mar 2016 22:18:40 +0000 (23:18 +0100)]
Remove duplicate doArithmetic
Bjørn Erik Pedersen [Thu, 17 Mar 2016 22:50:42 +0000 (23:50 +0100)]
Revert "Add Codebeat badge"
Will have to review the rules on this code report before people start sending PRs based on this.
This reverts commit
c50c66879d7140311bcd6bfcb3fb5122d2b3f809.
Bjørn Erik Pedersen [Thu, 17 Mar 2016 22:36:11 +0000 (23:36 +0100)]
Return early from appendThemeTemplates
Tomasz Korzeniowski [Thu, 17 Mar 2016 09:55:25 +0000 (10:55 +0100)]
Add Codebeat badge
Bjørn Erik Pedersen [Thu, 17 Mar 2016 22:24:24 +0000 (23:24 +0100)]
Add Go Report Card badge to README
srinivasreddy [Sat, 12 Mar 2016 18:16:31 +0000 (23:46 +0530)]
source: Consolidate filepath.Split calls
Cameron Moore [Sun, 13 Mar 2016 21:39:03 +0000 (16:39 -0500)]
tpl: Send actual values to in from intersect
The `intersect` function uses `in` to avoid adding duplicates to the
resulting set. We were passing `reflect.Value` items when we should
have been using `Value.Interface()` to send the actual data structure.
This fixes that.
See #1952
Cameron Moore [Wed, 16 Mar 2016 19:54:06 +0000 (14:54 -0500)]
tpl: Add missing printf param in t.Errorf call
Cameron Moore [Wed, 16 Mar 2016 17:45:50 +0000 (12:45 -0500)]
tpl: Treat booleans as set in default function
Booleans and `default` don't really make sense together, so we'll always treat
booleans as "set" and return the given value.
digitalcraftsman [Wed, 16 Mar 2016 12:04:33 +0000 (13:04 +0100)]
docs: Fix typos in functions.md and contributing.md
Bjørn Erik Pedersen [Tue, 15 Mar 2016 18:04:24 +0000 (19:04 +0100)]
Remove CircleCI badge for now
Bjørn Erik Pedersen [Tue, 15 Mar 2016 09:22:08 +0000 (10:22 +0100)]
No block support in shortcodes
So no need to check them.
Bjørn Erik Pedersen [Thu, 3 Mar 2016 19:30:18 +0000 (20:30 +0100)]
tpl: Make the safeHTML and cousins accept more than strings
Bjørn Erik Pedersen [Mon, 14 Mar 2016 19:31:31 +0000 (20:31 +0100)]
Remove unnecessary type conversions
Bjørn Erik Pedersen [Mon, 14 Mar 2016 16:52:11 +0000 (17:52 +0100)]
parser: Unexport some internals
Bjørn Erik Pedersen [Mon, 14 Mar 2016 16:27:15 +0000 (17:27 +0100)]
helpers: Unexport some internals
Cameron Moore [Mon, 14 Mar 2016 04:17:42 +0000 (23:17 -0500)]
tpl: Fix race condition in regexp cache
Protect regular expression cache with a mutex.
Fixes #1973
Bjørn Erik Pedersen [Mon, 14 Mar 2016 14:46:20 +0000 (15:46 +0100)]
transform: Remove unused code
Bjørn Erik Pedersen [Mon, 14 Mar 2016 14:44:45 +0000 (15:44 +0100)]
target: Remove unused code
Bjørn Erik Pedersen [Mon, 14 Mar 2016 14:43:51 +0000 (15:43 +0100)]
source: Remove unused code
Bjørn Erik Pedersen [Mon, 14 Mar 2016 14:42:59 +0000 (15:42 +0100)]
parser: Remove unused code
Bjørn Erik Pedersen [Mon, 14 Mar 2016 14:41:03 +0000 (15:41 +0100)]
hugolib: Remove unused code
Bjørn Erik Pedersen [Mon, 14 Mar 2016 14:24:42 +0000 (15:24 +0100)]
commands: Remove unused code
Bjørn Erik Pedersen [Mon, 14 Mar 2016 14:20:36 +0000 (15:20 +0100)]
helpers: Remove unused code
Bjørn Erik Pedersen [Mon, 14 Mar 2016 13:10:15 +0000 (14:10 +0100)]
Create an alias from shortcode.Page.Site to shortcode.Site
Fixes #1976
Bjørn Erik Pedersen [Sun, 13 Mar 2016 21:16:00 +0000 (22:16 +0100)]
Bump Pygment version to 2.1.3
Fixes #1969
Bjørn Erik Pedersen [Sun, 13 Mar 2016 21:06:51 +0000 (22:06 +0100)]
Make tests green on both Pygments 2.0.2 and 2.1.3
See #1969
Bjørn Erik Pedersen [Sun, 13 Mar 2016 12:45:46 +0000 (13:45 +0100)]
Add Pygments 2.0.2 to CircleCI build
Hugo tests fail with 2.1.*, that have to be fixed before we upgrade, see #1969
Bjørn Erik Pedersen [Sat, 12 Mar 2016 15:53:39 +0000 (16:53 +0100)]
Add emojify to the template func smoke tests
digitalcraftsman [Sat, 12 Mar 2016 12:08:46 +0000 (13:08 +0100)]
Docs: move tutorial screenshots in their own subfolder
JoeArizona [Wed, 10 Feb 2016 23:51:03 +0000 (16:51 -0700)]
Docs: update Windows install instructions
- updated the instructions to account for Windows 10 path editor
- linked to third-party editors for pre-10 Windows
- separated instructions for technical and non-technical users changed
D drive paths to C drive since D is the default optical drive on most
Windows systems
- cut the assumption about 64-bit Windows since 32-bit binary is also available
- cut the assumption about command line since we're giving GUI instructions
to non-technical users
- cut a bug in the doc where we had people typing D: at the command prompt
*after* submitting `cd D:\Hugo\Sites.` Recommend snipping 386 and AMD from
ZIP file names, since they don't add useful info and will just confuse novices.
Jason Gowans [Sat, 12 Mar 2016 07:25:26 +0000 (23:25 -0800)]
Docs: add Aerobatic as a deployment option in the Introduction