]> git.maquefel.me Git - brevno-suite/hugo/log
brevno-suite/hugo
10 years agoMake tests green on both Pygments 2.0.2 and 2.1.3
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

10 years agoAdd Pygments 2.0.2 to CircleCI build
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

10 years agoAdd emojify to the template func smoke tests
Bjørn Erik Pedersen [Sat, 12 Mar 2016 15:53:39 +0000 (16:53 +0100)]
Add emojify to the template func smoke tests

10 years agoDocs: move tutorial screenshots in their own subfolder
digitalcraftsman [Sat, 12 Mar 2016 12:08:46 +0000 (13:08 +0100)]
Docs: move tutorial screenshots in their own subfolder

10 years agoDocs: update Windows install instructions
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.

10 years agoDocs: add Aerobatic as a deployment option in the Introduction
Jason Gowans [Sat, 12 Mar 2016 07:25:26 +0000 (23:25 -0800)]
Docs: add Aerobatic as a deployment option in the Introduction

10 years agoDocs: add tutorial for Hosting on Bitbucket
Jason Gowans [Sat, 12 Mar 2016 06:53:55 +0000 (22:53 -0800)]
Docs: add tutorial for Hosting on Bitbucket

10 years agoAdd debugging steps for no variables defined
Daniel Compton [Sat, 12 Mar 2016 08:44:50 +0000 (21:44 +1300)]
Add debugging steps for no variables defined

10 years agoAbility to config layout and content dir via cli
John Ku [Wed, 9 Dec 2015 06:45:24 +0000 (22:45 -0800)]
Ability to config layout and content dir via cli

fixes spf13/hugo#1598

10 years agoAdd emoji support
Bjørn Erik Pedersen [Wed, 24 Feb 2016 23:52:11 +0000 (00:52 +0100)]
Add emoji support

This uses the Emoji map from https://github.com/kyokomi/emoji -- but with a custom replacement implementation.

The built-in are fine for most use cases, but in Hugo we do care about pure speed.

The benchmarks below are skewed in Hugo's direction as the source and result is a byte slice,
Kyokomi's implementation works best with strings.

Curious: The easy-to-use `strings.Replacer` is also plenty fast.

```
BenchmarkEmojiKyokomiFprint-4      20000      86038 ns/op    33960 B/op      117 allocs/op
BenchmarkEmojiKyokomiSprint-4      20000      83252 ns/op    38232 B/op      122 allocs/op
BenchmarkEmojiStringsReplacer-4   100000      21092 ns/op    17248 B/op       25 allocs/op
BenchmarkHugoEmoji-4              500000       5728 ns/op      624 B/op       13 allocs/op
```

Fixes #1891

10 years agoUpdate showcase entry and article link to softinio.com
Salar Rahmanian [Fri, 11 Mar 2016 21:07:19 +0000 (16:07 -0500)]
Update showcase entry and article link to softinio.com

10 years agotpl: Add replaceRE function
Cameron Moore [Mon, 8 Feb 2016 22:57:52 +0000 (16:57 -0600)]
tpl: Add replaceRE function

This commit addes a `replaceRE` template function.  Regexp patterns are compiled
once and cached.

10 years agoAllow picking a specific file out of a gist
Konstantin Kliakhandler [Fri, 11 Mar 2016 14:02:57 +0000 (08:02 -0600)]
Allow picking a specific file out of a gist

10 years agoExit with error code on any error
Bjørn Erik Pedersen [Fri, 11 Mar 2016 09:57:13 +0000 (10:57 +0100)]
Exit with error code on any error

Fixes #740

10 years agoAdd package prefix to the commit message guidelines
Bjørn Erik Pedersen [Fri, 11 Mar 2016 09:29:04 +0000 (10:29 +0100)]
Add package prefix to the commit message guidelines

10 years agoAdd engineering.mongodb.com to the showcase
Avery Rosen [Thu, 10 Mar 2016 20:28:41 +0000 (15:28 -0500)]
Add engineering.mongodb.com to the showcase

10 years agotpl: Add Copyright reference to the Go authors
Bjørn Erik Pedersen [Thu, 10 Mar 2016 19:59:41 +0000 (20:59 +0100)]
tpl: Add Copyright reference to the Go authors

Also a reference to the `index`issue in Go's issue tracker.

10 years agoDocs: use Shekhar Gulati's Hugo tutorial as quickstart guide
Shekhar Gulati [Mon, 22 Feb 2016 08:19:16 +0000 (13:49 +0530)]
Docs: use Shekhar Gulati's Hugo tutorial as quickstart guide

10 years agotpl: Add custom index function
Cameron Moore [Thu, 10 Mar 2016 14:21:20 +0000 (08:21 -0600)]
tpl: Add custom index function

This commit adds a custom index template function that deviates from the stdlib
simply by not returning an "index out of range" error if an array, slice or
string index is out of range.  Instead, we just return nil values.  This should
help make the new default function more useful for Hugo users.

Fixes #1949

10 years agotpl: Add time note to default func description
Cameron Moore [Wed, 9 Mar 2016 22:46:16 +0000 (16:46 -0600)]
tpl: Add time note to default func description

10 years agotpl: fix default function
Cameron Moore [Wed, 9 Mar 2016 22:27:56 +0000 (16:27 -0600)]
tpl: fix default function

This commit fixes a few things:

1. `given` is now a variadic parameter so that piping works properly
2. add separate template tests to make sure piping works
3. support time values
4. add more tests of the dfault function

10 years agodocs: add better default example
Cameron Moore [Wed, 9 Mar 2016 20:56:54 +0000 (14:56 -0600)]
docs: add better default example

10 years agotpl: Add default function
Cameron Moore [Wed, 9 Mar 2016 20:40:00 +0000 (14:40 -0600)]
tpl: Add default function

10 years agoMake absURL properly handle baseURL with path component
Marek Janda [Mon, 2 Nov 2015 20:28:29 +0000 (21:28 +0100)]
Make absURL properly handle baseURL with path component

10 years agoAdd md5 and sha1 template funcs
digitalcraftsman [Mon, 7 Mar 2016 20:40:47 +0000 (21:40 +0100)]
Add md5 and sha1 template funcs

10 years agoUse default sitemap configuration for homepage
Ján Koščo [Tue, 8 Mar 2016 20:34:08 +0000 (21:34 +0100)]
Use default sitemap configuration for homepage

Fixes #1304

10 years agoUpdate Dockerfile to use golang:1.6 base image
Ivan Fraixedes [Thu, 18 Feb 2016 17:35:46 +0000 (18:35 +0100)]
Update Dockerfile to use golang:1.6 base image

Hugo has been confirmed which runs on Golang 1.6, as travis uses 1.6
vesion. Dockerfile must be consistend with it so it has to use golang:1.6
as base image than golang:1.5

10 years agoAdd support for Go 1.6 block keyword in templates
Bjørn Erik Pedersen [Tue, 9 Feb 2016 17:39:17 +0000 (18:39 +0100)]
Add support for Go 1.6 block keyword in templates

NOTE: Needs Go 1.6 to use the new feature.

Fixes #1832

10 years agoFix for page in multiple menus
Bjørn Erik Pedersen [Thu, 10 Mar 2016 09:31:12 +0000 (10:31 +0100)]
Fix for page in multiple menus

Fixes #1934

10 years agoCreate template clone for late template execution
Bjørn Erik Pedersen [Wed, 9 Mar 2016 13:05:31 +0000 (14:05 +0100)]
Create template clone for late template execution

Fixing some breaking blogs on Go 1.6

Fixes #1879

10 years agoAdd reference to parent shortcode
Bjørn Erik Pedersen [Tue, 8 Mar 2016 19:56:24 +0000 (20:56 +0100)]
Add reference to parent shortcode

Fixes #1936

10 years agoDocs: fix missing words, tense in datadrivencontent.md
Steve Moser [Fri, 4 Mar 2016 03:16:49 +0000 (22:16 -0500)]
Docs: fix missing words, tense in datadrivencontent.md

10 years agoResize showcase thumbnail of h10n.me
digitalcraftsman [Mon, 7 Mar 2016 17:53:56 +0000 (18:53 +0100)]
Resize showcase thumbnail of h10n.me

10 years agoAdd viglug website to showcase
Fabio Alessandro Locati [Tue, 1 Mar 2016 11:38:01 +0000 (12:38 +0100)]
Add viglug website to showcase

10 years agoAdd h10n.me to the showcase
Horst Gutmann [Sat, 5 Mar 2016 13:47:26 +0000 (14:47 +0100)]
Add h10n.me to the showcase

10 years agoAdd fale.io website to showcase
Fabio Alessandro Locati [Tue, 1 Mar 2016 11:44:31 +0000 (12:44 +0100)]
Add fale.io website to showcase

10 years agodoc: Correct Scratch slice example
Bjørn Erik Pedersen [Sun, 6 Mar 2016 15:38:17 +0000 (16:38 +0100)]
doc: Correct Scratch slice example

10 years agodoc: Add some Scratch slice samples
Bjørn Erik Pedersen [Sun, 6 Mar 2016 15:36:46 +0000 (16:36 +0100)]
doc: Add some Scratch slice samples

10 years agoAdd some missing resets on rebuild
Bjørn Erik Pedersen [Sun, 6 Mar 2016 15:33:32 +0000 (16:33 +0100)]
Add some missing resets on rebuild

Fixes #1928
Fixes #1929

10 years agoAdd list support in Scratch
Bjørn Erik Pedersen [Sun, 6 Mar 2016 14:44:17 +0000 (15:44 +0100)]
Add list support in Scratch

10 years agoAdd jsonify template func
Bjørn Erik Pedersen [Sun, 6 Mar 2016 13:58:15 +0000 (14:58 +0100)]
Add jsonify template func

10 years agoAdd json mime extension type
Bjørn Erik Pedersen [Sun, 6 Mar 2016 13:10:06 +0000 (14:10 +0100)]
Add json mime extension type

10 years agoMake where accept slice
Bjørn Erik Pedersen [Sat, 5 Mar 2016 23:35:35 +0000 (00:35 +0100)]
Make where accept slice

Fixes #1926

10 years agoSimplify the IsHome test cases
Bjørn Erik Pedersen [Sat, 5 Mar 2016 23:41:11 +0000 (00:41 +0100)]
Simplify the IsHome test cases

10 years agoUnexport the target handlers
Bjørn Erik Pedersen [Sat, 5 Mar 2016 19:56:38 +0000 (20:56 +0100)]
Unexport the target handlers

These are of no interest outside the package.

10 years agoAllow URL with extension in frontmatter
Bjørn Erik Pedersen [Sat, 5 Mar 2016 19:18:17 +0000 (20:18 +0100)]
Allow URL with extension in frontmatter

Fixes #1923

10 years agotpl: Unexport the rest of the internal template funcs
Bjørn Erik Pedersen [Fri, 4 Mar 2016 00:00:41 +0000 (01:00 +0100)]
tpl: Unexport the rest of the internal template funcs

10 years agotpl: Add some dateFormat testcases with both time and date
Bjørn Erik Pedersen [Thu, 3 Mar 2016 22:17:10 +0000 (23:17 +0100)]
tpl: Add some dateFormat testcases with both time and date

See #235

10 years agoTry both prepped and unprepped taxonomy keys
Bjørn Erik Pedersen [Thu, 3 Mar 2016 21:01:09 +0000 (22:01 +0100)]
Try both prepped and unprepped taxonomy keys

Fixes #1869

10 years agoPrevent capitalized taxonomy labels
Bjørn Erik Pedersen [Thu, 3 Mar 2016 20:54:23 +0000 (21:54 +0100)]
Prevent capitalized taxonomy labels

Fixes #1880

10 years agotpl: Fix broken chomp test
Bjørn Erik Pedersen [Thu, 3 Mar 2016 20:24:21 +0000 (21:24 +0100)]
tpl: Fix broken chomp test

10 years agotpl: Make chomp return template.HTML
Bjørn Erik Pedersen [Thu, 3 Mar 2016 18:45:23 +0000 (19:45 +0100)]
tpl: Make chomp return template.HTML

10 years agotpl: Add integration tests for most of the template funcs examples in doc
Bjørn Erik Pedersen [Thu, 3 Mar 2016 18:35:04 +0000 (19:35 +0100)]
tpl: Add integration tests for most of the template funcs examples in doc

10 years agoLog fsync errors
Bjørn Erik Pedersen [Tue, 1 Mar 2016 15:38:56 +0000 (16:38 +0100)]
Log fsync errors

10 years agoSome missing shortcode replacements
Bjørn Erik Pedersen [Tue, 1 Mar 2016 12:51:46 +0000 (13:51 +0100)]
Some missing shortcode replacements

See #1904

10 years agoFix shortcode handling in RST
Bjørn Erik Pedersen [Tue, 1 Mar 2016 10:03:37 +0000 (11:03 +0100)]
Fix shortcode handling in RST

Fixes #1904

10 years agoDocs: fix typo in tools section
Samuel Debruyn [Sun, 28 Feb 2016 19:49:46 +0000 (20:49 +0100)]
Docs: fix typo in tools section

10 years agoRemove superfluous FontAwesome files
digitalcraftsman [Thu, 25 Feb 2016 12:40:24 +0000 (13:40 +0100)]
Remove superfluous FontAwesome files

10 years agoRevert "Create template clone for late template execution"
Bjørn Erik Pedersen [Sun, 28 Feb 2016 11:15:33 +0000 (12:15 +0100)]
Revert "Create template clone for late template execution"

This reverts commit 93b04e67f633e96484c29158cad00e86abe64c1e.

10 years agoCreate template clone for late template execution
Bjørn Erik Pedersen [Sun, 28 Feb 2016 10:51:51 +0000 (11:51 +0100)]
Create template clone for late template execution

Fixing some breaking blogs on Go 1.6

Fixes #1879

10 years agoCheck for the presence of pages before setting dates
Bjørn Erik Pedersen [Sat, 27 Feb 2016 22:25:41 +0000 (23:25 +0100)]
Check for the presence of pages before setting dates

See #1903

10 years agoSet Date and Lastmod for main home page
Bjørn Erik Pedersen [Sat, 27 Feb 2016 22:21:07 +0000 (23:21 +0100)]
Set Date and Lastmod for main home page

Fixes #1903

10 years agoUse flagChanged in all places
Bjørn Erik Pedersen [Sat, 27 Feb 2016 17:01:01 +0000 (18:01 +0100)]
Use flagChanged in all places

10 years agoAdd template function slice
digitalcraftsman [Sat, 27 Feb 2016 15:51:07 +0000 (16:51 +0100)]
Add template function slice

10 years agoDo not try to find available port if set by user
Bjørn Erik Pedersen [Sat, 27 Feb 2016 15:58:42 +0000 (16:58 +0100)]
Do not try to find available port if set by user

He/she probably really meant it.

Fixes #1901

10 years agoPress: add "Comparison site built with Hugo"
Thijs de Zoute [Thu, 25 Feb 2016 13:16:09 +0000 (14:16 +0100)]
Press: add "Comparison site built with Hugo"

10 years agoOptimize replaceShortcodeTokens
Bjørn Erik Pedersen [Thu, 25 Feb 2016 20:31:22 +0000 (21:31 +0100)]
Optimize replaceShortcodeTokens

We can of course skip reading the entire byte slice again and again.

This was a slip in the original implementation; functionally the same,
but is slightly faster, esp. for larger data sets with many shortcodes:

```
benchmark                             old ns/op     new ns/op     delta
BenchmarkReplaceShortcodeTokens-4     15505         14753         -4.85%

benchmark                             old allocs     new allocs     delta
BenchmarkReplaceShortcodeTokens-4     1              1              +0.00%

benchmark                             old bytes     new bytes     delta
BenchmarkReplaceShortcodeTokens-4     3072          3072          +0.00%
```

10 years agoEnlarge data in BenchmarkReplaceShortcodeTokens
Bjørn Erik Pedersen [Thu, 25 Feb 2016 20:45:13 +0000 (21:45 +0100)]
Enlarge data in BenchmarkReplaceShortcodeTokens

10 years agoPress: add tutorial written by Shekhar Gulati
Shekhar Gulati [Thu, 18 Feb 2016 11:40:22 +0000 (17:10 +0530)]
Press: add tutorial written by Shekhar Gulati

10 years agoPress: add article from sitelabs.es
Marq Martí [Sat, 20 Feb 2016 16:51:04 +0000 (17:51 +0100)]
Press: add article from sitelabs.es

10 years agoDocs: fix typo in introduction.md
Akagi201 [Sat, 20 Feb 2016 07:16:14 +0000 (15:16 +0800)]
Docs: fix typo in introduction.md

10 years agoAdd cdnoverview.com to the showcase
Wouter Spee [Wed, 17 Feb 2016 14:54:41 +0000 (15:54 +0100)]
Add cdnoverview.com to the showcase

10 years agoDocs: remove .Taxonomies from Page variables
Paul Koppen [Wed, 17 Feb 2016 14:29:58 +0000 (14:29 +0000)]
Docs: remove .Taxonomies from Page variables

The property seems to have never existed on Pages.

Fixes #1865.

10 years agoDocs: fix small typos in functions.md
Thijs de Zoute [Wed, 17 Feb 2016 12:36:28 +0000 (13:36 +0100)]
Docs: fix small typos in functions.md

10 years agoDocs: add "Minify Hugo Generated HTML" to press
Ratson [Wed, 17 Feb 2016 11:12:55 +0000 (19:12 +0800)]
Docs: add "Minify Hugo Generated HTML" to press

10 years agoListen channel before sending values to it
Tatsushi Demachi [Sat, 20 Feb 2016 04:54:35 +0000 (13:54 +0900)]
Listen channel before sending values to it

The 'results' channel is not listend before sending error values in a
loop checking IsRenderable or not. This fixes it.

10 years agoGo 1.6 is out!
Bjørn Erik Pedersen [Wed, 17 Feb 2016 22:18:34 +0000 (23:18 +0100)]
Go 1.6 is out!

10 years agoClose file handle when finished reading file
David Roda [Wed, 17 Feb 2016 16:49:38 +0000 (11:49 -0500)]
Close file handle when finished reading file

10 years agoDocs: add hugo-lunr to the tools section
digitalcraftsman [Tue, 16 Feb 2016 22:14:22 +0000 (23:14 +0100)]
Docs: add hugo-lunr to the tools section

10 years agoRemove superfluous Errorf
Bjørn Erik Pedersen [Tue, 16 Feb 2016 01:05:59 +0000 (02:05 +0100)]
Remove superfluous Errorf

10 years agoClean up the trim template func test
Bjørn Erik Pedersen [Mon, 15 Feb 2016 23:47:14 +0000 (00:47 +0100)]
Clean up the trim template func test

10 years agoForce full rebuild when site config changes
Bjørn Erik Pedersen [Sun, 14 Feb 2016 14:16:55 +0000 (15:16 +0100)]
Force full rebuild when site config changes

Fixes #1840

10 years agoExport MainSite var
Henrique Dias [Sat, 13 Feb 2016 12:46:08 +0000 (12:46 +0000)]
Export MainSite var

Fixes hacdias/caddy-hugo#46

10 years agoDocs: clarify that Amazon WS is, actually, AWS
Andrew Langhorn [Sat, 13 Feb 2016 23:27:56 +0000 (23:27 +0000)]
Docs: clarify that Amazon WS is, actually, AWS

Amazon WS is an uncommon way of referring to Amazon Web Services, which
is usually referred to either by its full name, or as AWS.

10 years agoAdd gntech.se to the showcase
Gustav Näslund [Sat, 13 Feb 2016 20:57:14 +0000 (21:57 +0100)]
Add gntech.se to the showcase

10 years agoDocs: fix typo in YouTube shortcode description
digitalcraftsman [Sat, 13 Feb 2016 15:41:25 +0000 (16:41 +0100)]
Docs: fix typo in YouTube shortcode description

10 years agoFix spelling and go vet errors
Derek Perkins [Sat, 13 Feb 2016 09:24:25 +0000 (02:24 -0700)]
Fix spelling and go vet errors

10 years agoLink Gitter as Dev Chat in README
digitalcraftsman [Sat, 13 Feb 2016 11:04:22 +0000 (12:04 +0100)]
Link Gitter as Dev Chat in README

10 years agoRestore the wercker status badge to original small size
Anthony Fok [Sat, 13 Feb 2016 10:48:51 +0000 (18:48 +0800)]
Restore the wercker status badge to original small size

Fix my brown paper bag bug in commit a0eec02.
Sorry for not double-checking before pushing!

10 years agoAdd documentation for Google Analytics internal template
Darrel Herbst [Sat, 6 Feb 2016 15:09:47 +0000 (10:09 -0500)]
Add documentation for Google Analytics internal template

Fixes #1654

10 years agoSet the wercker badge to track the aaster branch only
Anthony Fok [Sat, 13 Feb 2016 10:39:38 +0000 (18:39 +0800)]
Set the wercker badge to track the aaster branch only

10 years agoDocs: fix Disqus shortname reference
Cameron Moore [Fri, 12 Feb 2016 22:15:29 +0000 (16:15 -0600)]
Docs: fix Disqus shortname reference

10 years agodocs: Add guideline for showcase additions
digitalcraftsman [Fri, 12 Feb 2016 20:55:58 +0000 (21:55 +0100)]
docs: Add guideline for showcase additions

10 years agoCrop, resize and optimize shelan-tn.png
Anthony Fok [Fri, 12 Feb 2016 16:31:25 +0000 (00:31 +0800)]
Crop, resize and optimize shelan-tn.png

The original image was 2055px × 1252px, which was oversized
and did not fit the required dimension of 600px × 400px
(3:2 aspect ratio).

To fix, the image was cropped and resized to the required dimension,
and was further optimized:

    $ pngquant --nofs -v --speed 1 --quality 65-80 shelan-tn.png
    $ optipng -o7 -zm1-9 shelan-tn-or8.png
    $ mv shelan-tn-or8.png shelan-tn.png

reducing its filesize from 334125 bytes to 26929 bytes.

See #1831

10 years agoIgnore temporary file "4913" created by Vim
Anthony Fok [Fri, 12 Feb 2016 10:54:37 +0000 (18:54 +0800)]
Ignore temporary file "4913" created by Vim

10 years agoAdd jorgennilsson.com to showcases
Jörgen Nilsson [Thu, 11 Feb 2016 23:03:11 +0000 (00:03 +0100)]
Add jorgennilsson.com to showcases

10 years agoFix git commit blog article link
Morton Fox [Tue, 9 Feb 2016 21:08:46 +0000 (16:08 -0500)]
Fix git commit blog article link

The blog article linked in the README misses the trailing forward slash
which produces a 404 error instead of redirecting to the correct URL.

10 years agoPrevent confusing template errors when seq is nil
Bjørn Erik Pedersen [Tue, 9 Feb 2016 18:00:07 +0000 (19:00 +0100)]
Prevent confusing template errors when seq is nil

The common is the `where` func and this:

```
panic: reflect: call of reflect.Value.Type on zero Value [recovered]
panic: reflect: call of reflect.Value.Type on zero Value
```

10 years agoAdd test for Hugo hanging up with empty content
Tatsushi Demachi [Mon, 8 Feb 2016 11:55:19 +0000 (20:55 +0900)]
Add test for Hugo hanging up with empty content

This adds a test for the issue #1797 and its fix in 68e2e63.

10 years agoAdd shelan.org to showcase page
shelan [Sun, 7 Feb 2016 22:14:34 +0000 (23:14 +0100)]
Add shelan.org to showcase page