brevno-suite/hugo
8 years agodocs: Add article by Zetao Yang
Ahmed Zetao Yang [Mon, 17 Oct 2016 03:09:37 +0000 (11:09 +0800)]
docs: Add article by Zetao Yang

8 years agodocs: Compress Hugo logo (hugo.png)
JoeArizona [Tue, 19 Jul 2016 03:43:58 +0000 (20:43 -0700)]
docs: Compress Hugo logo (hugo.png)

8 years agotpl: Golint fixes
Bjørn Erik Pedersen [Sat, 5 Nov 2016 16:27:40 +0000 (17:27 +0100)]
tpl: Golint fixes

8 years agohelpers: Golint fixes
Bjørn Erik Pedersen [Sat, 5 Nov 2016 16:05:33 +0000 (17:05 +0100)]
helpers: Golint fixes

8 years agohugolib: Simplify range
Bjørn Erik Pedersen [Sat, 5 Nov 2016 16:05:18 +0000 (17:05 +0100)]
hugolib: Simplify range

8 years agodocs: Update roadmap
digitalcraftsman [Fri, 4 Nov 2016 19:18:01 +0000 (20:18 +0100)]
docs: Update roadmap

Closes #2666

8 years agoEnhance commit message guidelines
digitalcraftsman [Fri, 4 Nov 2016 18:37:41 +0000 (19:37 +0100)]
Enhance commit message guidelines

8 years agodocs: Link latest change as commit in the footer
digitalcraftsman [Fri, 4 Nov 2016 16:28:27 +0000 (17:28 +0100)]
docs: Link latest change as commit in the footer

8 years agodoc: Add a "Deployment with rsync" tutorial page
Adrien Poupin [Tue, 1 Nov 2016 22:04:12 +0000 (23:04 +0100)]
doc: Add a "Deployment with rsync" tutorial page

This is kind of a generic process and not so difficult. It seems important to me that it should be documented.

8 years agotransform: Return any read or write error from Apply
Bjørn Erik Pedersen [Thu, 3 Nov 2016 23:44:49 +0000 (00:44 +0100)]
transform: Return any read or write error from Apply

8 years agocommands: Move initialization of flags in separate function
Albert Nigmatzianov [Thu, 3 Nov 2016 10:33:53 +0000 (11:33 +0100)]
commands: Move initialization of flags in separate function

And clean up flag variables.

8 years agodocs: Remove non-showcase Hugo sites
Bjørn Erik Pedersen [Wed, 2 Nov 2016 18:11:05 +0000 (19:11 +0100)]
docs: Remove non-showcase Hugo sites

I.e. sites with no mention of Hugo or hugo etc. in the HTML source.

Fixes #2655

8 years agoAdd GitInfo
Bjørn Erik Pedersen [Tue, 1 Nov 2016 22:04:12 +0000 (23:04 +0100)]
Add GitInfo

This commit adds a `GitInfo` object to `Page` if `EnableGitInfo` is set.

It then also sets `Lastmod` for the given `Page` to the author date provided by Git.

The Git integrations should be fairly performant, but it adds "some time" to the build, somewhat depending on the Git history size.

If you want, you can run without during development and turn it on when deploying to the live server: `hugo --enableGitInfo`.

Fixes #2102

8 years agoFix page names that contain dot
Prashant Karmakar [Tue, 1 Nov 2016 13:18:24 +0000 (18:48 +0530)]
Fix page names that contain dot

changes:
    - in hugolib/page.go, `func permalink` and `func TargetPath`
      Fixed the attempt to *replace* the extension of something
      that was *already* a basename.
    - in source/file.go, `func NewFile`
      added check for allowed languages before translating filename

Fixes #2555

8 years agoRevert "docs: Add www.bullion-investor.com to the showcase gallery"
Bjørn Erik Pedersen [Mon, 31 Oct 2016 21:32:53 +0000 (22:32 +0100)]
Revert "docs: Add bullion-investor.com to the showcase gallery"

No hugo generator tag, probably not a Hugo a site, certainly not a showcase.

This reverts commit b5bc74ca4609ce8cf77633c0f93fddc46814a35a.

8 years agodocs: Add www.bullion-investor.com to the showcase gallery
ITSecMedia [Fri, 28 Oct 2016 09:21:58 +0000 (11:21 +0200)]
docs: Add bullion-investor.com to the showcase gallery

8 years agodocs: Add two articles written by Hash Borgir
digitalcraftsman [Sat, 29 Oct 2016 12:02:14 +0000 (14:02 +0200)]
docs: Add two articles written by Hash Borgir

8 years agoFix RSS Title regression
Bjørn Erik Pedersen [Fri, 28 Oct 2016 12:46:33 +0000 (14:46 +0200)]
Fix RSS Title regression

And add tests to make sure it doesn't happen again.

Fixes #2645

8 years agoMake it clear that Path is relative to content root
Bjørn Erik Pedersen [Fri, 28 Oct 2016 08:35:19 +0000 (10:35 +0200)]
Make it clear that Path is relative to content root

Fixes #2290

8 years agoRefactor Page tests
Bjørn Erik Pedersen [Fri, 28 Oct 2016 07:34:47 +0000 (09:34 +0200)]
Refactor Page tests

* To handle config in one place
* To use the real builder chain

8 years agoRemove Wercker config
Bjørn Erik Pedersen [Thu, 27 Oct 2016 19:43:43 +0000 (21:43 +0200)]
Remove Wercker config

Hopefully fixes

8 years agoMake Amber read from the Afero source file system
Bjørn Erik Pedersen [Wed, 26 Oct 2016 18:50:12 +0000 (20:50 +0200)]
Make Amber read from the Afero source file system

8 years agoAdd missing template error logging
Bjørn Erik Pedersen [Tue, 25 Oct 2016 20:56:44 +0000 (22:56 +0200)]
Add missing template error logging

8 years agoGet rid of the rawContentCopy field of the Page struct
Joonatan Saarhelo [Tue, 25 Oct 2016 18:40:32 +0000 (21:40 +0300)]
Get rid of the rawContentCopy field of the Page struct

It is not needed, because it is only used to store temporary data during `preparePagesForRender`.

8 years agodocs: Fix punctuation in content.md
Sam Klein [Mon, 24 Oct 2016 18:52:46 +0000 (13:52 -0500)]
docs: Fix punctuation in content.md

- removed comma on line 16 to avoid confusion between clauses
- added period to line 24 for consistency
- clarified "read on" on line 30 to follow style above it while
  also verbally writing what the author seems to intend
- removed "You probably know what to do." on line 30 due to wordiness
  that could lead to confusion and a drag in reading speed

8 years agodocs: Add clearhaus.com to the showcase
teodorraul [Mon, 24 Oct 2016 06:40:46 +0000 (08:40 +0200)]
docs: Add clearhaus.com to the showcase

8 years agodocs: Fix typos in content section
Sam Klein [Mon, 24 Oct 2016 19:05:19 +0000 (14:05 -0500)]
docs: Fix typos in content section

- changed preposition into intended infinitive for syntactical clarity
- removed "easily" as it doesn't describe anything technical and is
  confusing (which is why the author may have used a preposition)

8 years agoRemove now superfluous lowercasing
Bjørn Erik Pedersen [Mon, 24 Oct 2016 19:33:11 +0000 (21:33 +0200)]
Remove now superfluous lowercasing

See #2615
See #1129

8 years agovendor: Update Viper
Bjørn Erik Pedersen [Mon, 24 Oct 2016 19:21:37 +0000 (21:21 +0200)]
vendor: Update Viper

8 years agoall: Unify case of config variable names
Albert Nigmatzianov [Mon, 24 Oct 2016 18:56:00 +0000 (20:56 +0200)]
all: Unify case of config variable names

All config variables starts with low-case and uses camelCase.

If there is abbreviation at the beginning of the name, the whole
abbreviation will be written in low-case.
If there is abbreviation at the end of the name, the
whole abbreviation will be written in upper-case.
For example, rssURI.

8 years agoHandle ToC before handling shortcodes
Luca Corbatto [Mon, 24 Oct 2016 12:40:57 +0000 (14:40 +0200)]
Handle ToC before handling shortcodes

Fixes #2433

8 years agotpl: Fix comment
Bjørn Erik Pedersen [Mon, 24 Oct 2016 12:32:31 +0000 (14:32 +0200)]
tpl: Fix comment

8 years agoAvoid reading from Viper for path and URL funcs
Bjørn Erik Pedersen [Mon, 24 Oct 2016 11:45:30 +0000 (13:45 +0200)]
Avoid reading from Viper for path and URL funcs

The gain, given the "real sites benchmark" below, is obvious:

```
benchmark           old ns/op       new ns/op       delta
BenchmarkHugo-4     14497594101     13084156335     -9.75%

benchmark           old allocs     new allocs     delta
BenchmarkHugo-4     57404335       48282002       -15.89%

benchmark           old bytes       new bytes      delta
BenchmarkHugo-4     9933505624      9721984424     -2.13%
```

Fixes #2495

8 years agodocs: Clarify installation of themes
digitalcraftsman [Sat, 22 Oct 2016 15:08:35 +0000 (17:08 +0200)]
docs: Clarify installation of themes

8 years agodocs: Improve instructions in quickstart.md
Nicholas Thomson [Thu, 20 Oct 2016 17:18:57 +0000 (13:18 -0400)]
docs: Improve instructions in quickstart.md

8 years agodocs: Add dmitriid.com to the showcase
Dmitrii Dimandt [Wed, 19 Oct 2016 15:22:23 +0000 (17:22 +0200)]
docs: Add dmitriid.com to the showcase

8 years agoBump Travis to Go 1.7.3
Bjørn Erik Pedersen [Wed, 19 Oct 2016 19:53:56 +0000 (21:53 +0200)]
Bump Travis to Go 1.7.3

8 years agocommands: Do not print error on missing unknown dirs
Bjørn Erik Pedersen [Wed, 19 Oct 2016 18:08:57 +0000 (20:08 +0200)]
commands: Do not print error on missing unknown dirs

See #2602

8 years agocommands: Only watch relevant themes dir
Bjørn Erik Pedersen [Wed, 19 Oct 2016 17:59:15 +0000 (19:59 +0200)]
commands: Only watch relevant themes dir

The same behavior as for the root project.

Fixes #2602

8 years agoAdd page context to error logging in rendering
choeppler [Wed, 19 Oct 2016 13:22:40 +0000 (15:22 +0200)]
Add page context to error logging in rendering

Add logging of the errors/warnings which rst2html outputs to its stderr
stream when rendering rst documents. Note that rst2html outputs warnings
and errors to stderr but it also adds them to the generated html. ->
hugo logs everything in stderr as error.

Add / complete adding page context (path to file being rendered) to
anything logged by getRstContent and getAsciidocContent.

See #2570

8 years agoFix a more summary corner case
Bjørn Erik Pedersen [Tue, 18 Oct 2016 06:43:44 +0000 (08:43 +0200)]
Fix a more summary corner case

Also refactor the rendering pages test to accept more than one page source per test run, which wasn't really needed for this issue, but may be in the future.

Closes #2586
Fixes #2538

8 years agoConsolidate the Param methods
Bjørn Erik Pedersen [Mon, 17 Oct 2016 17:30:21 +0000 (19:30 +0200)]
Consolidate the Param methods

Maps in Viper, Hugo's config backing store, is now properly lower-cased not just on top level, the current situation.

While this is mostly a good thing, as you don't need to know the original casing to look up a value, it will be breaking for people doing direct lookups in the ´Site.Params` map.

We will try to find a solution to this "breakage", but the recommended method to get params values is via the `.Param` methods.

This method is now implemented on `Node`, `Page` and `Site` and is case-insensitive:

* Use `.Param "someKey" ` if you want page param with fall back to site param if not found on page.
* Use `.Site.Param "someKey"` to get a site param

See #2590

8 years agodocs: Add singular/plural i18n example
Bjørn Erik Pedersen [Wed, 12 Oct 2016 15:04:50 +0000 (17:04 +0200)]
docs: Add singular/plural i18n example

8 years agodocs: Add christianmendoza.me to the showcase
Christian Mendoza [Sun, 16 Oct 2016 17:46:10 +0000 (13:46 -0400)]
docs: Add christianmendoza.me to the showcase

8 years agodocs: Add fixatom.com to the showcase
Chen Fangzhou [Mon, 17 Oct 2016 08:33:50 +0000 (16:33 +0800)]
docs: Add fixatom.com to the showcase

8 years agodocs: Add hugojoomla to the tools section
digitalcraftsman [Mon, 17 Oct 2016 13:50:49 +0000 (15:50 +0200)]
docs: Add hugojoomla to the tools section

8 years agodocs: Remove merge artifact
János Illés [Sun, 16 Oct 2016 19:45:28 +0000 (21:45 +0200)]
docs: Remove merge artifact

8 years agohelpers: Slight improvement of ToLowerMap
Bjørn Erik Pedersen [Sun, 16 Oct 2016 20:49:21 +0000 (22:49 +0200)]
helpers: Slight improvement of ToLowerMap

See #2581

8 years agoFix case issue Viper vs Blackfriday config
Bjørn Erik Pedersen [Sun, 16 Oct 2016 17:28:21 +0000 (19:28 +0200)]
Fix case issue Viper vs Blackfriday config

There are still work to be done in the case department, but that will have to be another day.

Fixes #2581
See https://github.com/spf13/viper/issues/261

8 years agodocs: Update link for Ace template site
digitalcraftsman [Sun, 16 Oct 2016 12:39:09 +0000 (14:39 +0200)]
docs: Update link for Ace template site

8 years agodocs: Add docs.eurie.io to the showcase
iktakahiro [Sat, 15 Oct 2016 15:13:38 +0000 (00:13 +0900)]
docs: Add docs.eurie.io to the showcase

8 years agodocs: Add GitLab to Forestry.io integrations
digitalcraftsman [Sun, 16 Oct 2016 12:26:48 +0000 (14:26 +0200)]
docs: Add GitLab to Forestry.io integrations

8 years agoFix pygments check in test
Bjørn Erik Pedersen [Sat, 15 Oct 2016 14:47:43 +0000 (16:47 +0200)]
Fix pygments check in test

8 years agovendor: Add external
Bjørn Erik Pedersen [Sat, 15 Oct 2016 14:37:48 +0000 (16:37 +0200)]
vendor: Add external

8 years agoMake the pygments shortcode test matching less specific
Bjørn Erik Pedersen [Sat, 15 Oct 2016 13:29:17 +0000 (15:29 +0200)]
Make the pygments shortcode test matching less specific

So it does not fail on "other" pygments versions.

8 years agoImplement support for alias templates
Nate Finch [Sat, 15 Oct 2016 11:35:32 +0000 (07:35 -0400)]
Implement support for alias templates

This change adds a canonical alias.html template that is used for page
redirects, and passes the page as data to the template under .Page

Fixes #2533
Closes #2576

8 years agoUpdated link for Ace template site
vsopvsop [Sat, 15 Oct 2016 11:18:26 +0000 (16:48 +0530)]
Updated link for Ace template site

8 years agoUse govendor sync instead of get
Cameron Moore [Fri, 14 Oct 2016 21:41:02 +0000 (16:41 -0500)]
Use govendor sync instead of get

8 years agoRewrite TestRSSOutput to use Afero
Bjørn Erik Pedersen [Fri, 14 Oct 2016 14:41:55 +0000 (16:41 +0200)]
Rewrite TestRSSOutput to use Afero

When we have a virtual filesystem, we might as well test as close to the iron as possible.

8 years agoAdd workaround for block template crash
Bjørn Erik Pedersen [Fri, 14 Oct 2016 09:01:49 +0000 (11:01 +0200)]
Add workaround for block template crash

Fixes #2549

8 years agoUse example.org for replace-this-with-your-hugo-site.com
Bjørn Erik Pedersen [Fri, 14 Oct 2016 07:34:08 +0000 (09:34 +0200)]
Use example.org for replace-this-with-your-hugo-site.com

Fixes #2575

8 years agoAdded GitLab to Forestry.io integrations
Scott Gallant [Thu, 13 Oct 2016 14:24:51 +0000 (10:24 -0400)]
Added GitLab to Forestry.io integrations

8 years agoall: Remove dead code
Albert [Thu, 13 Oct 2016 11:51:16 +0000 (13:51 +0200)]
all: Remove dead code

8 years agoAdd context to asciidoc/-tor error logging
C. Hoeppler [Thu, 13 Oct 2016 08:30:43 +0000 (10:30 +0200)]
Add context to asciidoc/-tor error logging

Add DocumentName (path to the file being rendered) to RenderingContext
and use that information to include the path in the error print.

See #2399
Closes #2567

8 years agoAdd logging of asciidoc/-tor errors
C. Hoeppler [Thu, 13 Oct 2016 05:34:47 +0000 (07:34 +0200)]
Add logging of asciidoc/-tor errors

Add logging of the errors which asciidoc and asciidoctor output to their
stderr stream when converting asciidoc documents. Note that
asciidoctor's exit code may be SUCCESS even if there are ERROR messages
in its stderr output (tested with Asciidoctor 0.1.4 and 1.5.5).
Therefore log the stderr output whenever it is non-empty.

See #2399

8 years agoLog on error in translation file
Bjørn Erik Pedersen [Wed, 12 Oct 2016 14:54:29 +0000 (16:54 +0200)]
Log on error in translation file

Fixes #2562

8 years agotpl: Remove the spamming template errors
Bjørn Erik Pedersen [Wed, 12 Oct 2016 08:12:15 +0000 (10:12 +0200)]
tpl: Remove the spamming template errors

Fixes #2343

8 years agotpl: Factor out double Lookup in executeTemplate
Cameron Moore [Wed, 12 Oct 2016 06:26:39 +0000 (01:26 -0500)]
tpl: Factor out double Lookup in executeTemplate

8 years agotpl: Add partialCached template function
Cameron Moore [Mon, 10 Oct 2016 22:03:30 +0000 (17:03 -0500)]
tpl: Add partialCached template function

Supports an optional variant string parameter so that a given partial
will be cached based upon the name+variant.

Fixes #1368
Closes #2552

8 years agoAdd draft test
Bjørn Erik Pedersen [Tue, 11 Oct 2016 16:12:28 +0000 (18:12 +0200)]
Add draft test

See #2549

8 years agodocs: Remove deleted article "Hugo on Netlify — Insanely Fast Deploys"
digitalcraftsman [Mon, 10 Oct 2016 19:00:17 +0000 (21:00 +0200)]
docs: Remove deleted article "Hugo on Netlify — Insanely Fast Deploys"

8 years agodocs: Add "Hugo on Netlify" article to press.md
voom [Mon, 10 Oct 2016 13:57:40 +0000 (15:57 +0200)]
docs: Add "Hugo on Netlify" article to press.md

8 years agodocs: Add shapeshed.com to the showcase
George Ornbo [Mon, 10 Oct 2016 10:50:10 +0000 (11:50 +0100)]
docs: Add shapeshed.com to the showcase

8 years agodocs: Add thecodeking.co.uk to the showcase
TheCodeKing [Sun, 9 Oct 2016 22:23:58 +0000 (23:23 +0100)]
docs: Add thecodeking.co.uk to the showcase

8 years agodocs: Add Firebase Hosting to usage.md
Michael Bleigh [Sun, 9 Oct 2016 23:04:53 +0000 (16:04 -0700)]
docs: Add Firebase Hosting to usage.md

8 years agodocs: Add Firebase Hosting to hosting providers
Michael Bleigh [Sun, 9 Oct 2016 23:02:56 +0000 (16:02 -0700)]
docs: Add Firebase Hosting to hosting providers

8 years agodocs: Add webhook to tools for deployments
Adnan Hajdarević [Mon, 10 Oct 2016 11:15:12 +0000 (13:15 +0200)]
docs: Add webhook to tools for deployments

8 years agodocs: Mention GitLab hosting support
Robert Schilling [Mon, 10 Oct 2016 11:28:59 +0000 (13:28 +0200)]
docs: Mention GitLab hosting support

8 years agoFix broken build
Bjørn Erik Pedersen [Mon, 10 Oct 2016 13:17:13 +0000 (15:17 +0200)]
Fix broken build

8 years agohugolib: Prevent TestShortcodeTweet from accessing network
Cameron Moore [Mon, 10 Oct 2016 13:10:14 +0000 (08:10 -0500)]
hugolib: Prevent TestShortcodeTweet from accessing network

Overload `getJSON` and return mock response.  Also standardized error
reporting strings in tests.

Fixes #2359

8 years agovendor: Update Viper
Bjørn Erik Pedersen [Mon, 10 Oct 2016 11:41:14 +0000 (13:41 +0200)]
vendor: Update Viper

See #2536

8 years agosnap: Add "network-bind" plug for "hugo server" to work
Anthony Fok [Sun, 9 Oct 2016 15:53:09 +0000 (09:53 -0600)]
snap: Add "network-bind" plug for "hugo server" to work

See #2532

8 years agodocs: Add Forestry.io to the tools section
digitalcraftsman [Sun, 9 Oct 2016 12:20:14 +0000 (14:20 +0200)]
docs: Add Forestry.io to the tools section

8 years agodocs: Refactor /docs to use the block keyword
Bjørn Erik Pedersen [Mon, 20 Jun 2016 13:20:44 +0000 (15:20 +0200)]
docs: Refactor /docs to use the block keyword

Fixes #2226

8 years agoAllow to set cache dir in config file
Dimitri Merejkowsky [Sun, 9 Oct 2016 09:00:36 +0000 (11:00 +0200)]
Allow to set cache dir in config file

8 years agocommand: Fix hugo new for multiple architectures
Chase Adams [Sun, 9 Oct 2016 08:59:07 +0000 (01:59 -0700)]
command: Fix hugo new for multiple architectures

Changes `%q` to `%s`. `%q` was safely escaping the `\` in windows so that it was printing `\\`. Uses `filepath.Join` for example filepath so that the output is OS specific and since this required splitting up the multiline string, it's refactored into a separate function..

Fixes #2401

8 years agovendor: Revert latest Viper
Bjørn Erik Pedersen [Sat, 8 Oct 2016 17:05:41 +0000 (19:05 +0200)]
vendor: Revert latest Viper

See #2536

8 years agoAdd quiet mode
Bjørn Erik Pedersen [Sat, 8 Oct 2016 16:26:16 +0000 (18:26 +0200)]
Add quiet mode

Needed to run benchmarks without the stats getting in the way of the benchmark stats.

Fixes #1218

8 years agovendor: Update dependencies
Bjørn Erik Pedersen [Sat, 8 Oct 2016 13:09:34 +0000 (15:09 +0200)]
vendor: Update dependencies

8 years agodocs: Stylize "Mac OS" as "macOS" in v0.17 release notes
Anthony Fok [Fri, 7 Oct 2016 16:43:34 +0000 (10:43 -0600)]
docs: Stylize "Mac OS" as "macOS" in v0.17 release notes

8 years agodocs: Fix grammar in v0.17 release notes
Cameron Moore [Fri, 7 Oct 2016 15:16:48 +0000 (10:16 -0500)]
docs: Fix grammar in v0.17 release notes

Also trimmed trailing whitespace.

8 years agosnapcraft.yaml: Bump version to 0.18-DEV
Anthony Fok [Fri, 7 Oct 2016 16:12:46 +0000 (10:12 -0600)]
snapcraft.yaml: Bump version to 0.18-DEV

and set grade to "devel" for the new development series.

8 years agorelease: version bump to v0.18-DEV
Steve Francia [Fri, 7 Oct 2016 15:11:43 +0000 (11:11 -0400)]
release: version bump to v0.18-DEV

8 years agosnapcraft.yaml: Bump version to 0.17 for release v0.17
Anthony Fok [Fri, 7 Oct 2016 14:42:05 +0000 (08:42 -0600)]
snapcraft.yaml: Bump version to 0.17 for release

8 years agocommands: Bump min_version to 0.17 for "new theme" subcommand
Anthony Fok [Fri, 7 Oct 2016 14:36:28 +0000 (08:36 -0600)]
commands: Bump min_version to 0.17 for "new theme" subcommand

8 years agorelease: version bump to 0.17
Steve Francia [Fri, 7 Oct 2016 14:08:57 +0000 (10:08 -0400)]
release: version bump to 0.17

8 years agovendor: update viper to latest version
Steve Francia [Fri, 7 Oct 2016 14:05:27 +0000 (10:05 -0400)]
vendor: update viper to latest version

8 years agoadd release notes for v0.17
Steve Francia [Fri, 7 Oct 2016 13:48:39 +0000 (09:48 -0400)]
add release notes for v0.17

8 years agodocs: Add rahulrai.in to the showcase
Rahul Rai [Tue, 4 Oct 2016 04:39:46 +0000 (15:39 +1100)]
docs: Add rahulrai.in to the showcase

8 years agoWhitelist startinline pygments option
Kim Gressens [Thu, 6 Oct 2016 12:59:49 +0000 (14:59 +0200)]
Whitelist startinline pygments option