brevno-suite/hugo
8 years agoAdd the instructions to install the snap
Leo Arias [Fri, 6 Jan 2017 17:48:26 +0000 (11:48 -0600)]
Add the instructions to install the snap

8 years agohugolib: Remove summary.go
magikstm [Fri, 6 Jan 2017 15:31:22 +0000 (10:31 -0500)]
hugolib: Remove summary.go

Became obsolete after refactoring.

Fixes #2888.

8 years agohugolib: Allow arrays of arrays in frontmatter Params
Cameron Moore [Wed, 28 Dec 2016 02:08:24 +0000 (20:08 -0600)]
hugolib: Allow arrays of arrays in frontmatter Params

Fixes #2752

8 years agocommands: Show OS and ARCH in version output
Cameron Moore [Wed, 4 Jan 2017 20:13:15 +0000 (14:13 -0600)]
commands: Show OS and ARCH in version output

8 years agotpl: Add truncate template function
Mathias Biilmann [Fri, 6 Jan 2017 09:42:32 +0000 (01:42 -0800)]
tpl: Add truncate template function

This commit adds a truncate template function for safely truncating text without
breaking words. The truncate function is HTML aware, so if the input text is a
template.HTML it will be truncated without leaving broken or unclosed HTML tags.

    {{ "this is a very long text" | truncate 10 " ..." }}
    {{ "With [Markdown](/markdown) inside." | markdownify | truncate 10 }}

8 years agotarget: Add COM0 and LPT0 as reservedNames on Windows
magikstm [Wed, 4 Jan 2017 10:52:20 +0000 (05:52 -0500)]
target: Add COM0 and LPT0 as reservedNames on Windows

Fixes #2883

8 years agohugolib: Sync page collections with Site.Info on rebuild in watch mode
Bjørn Erik Pedersen [Thu, 5 Jan 2017 19:57:24 +0000 (20:57 +0100)]
hugolib: Sync page collections with Site.Info on rebuild in watch mode

There is definitive potential for cleanup in this area, but this will have to do for now.

Fixes #2869

8 years agocommans: Remove unneeded build constraint
Bjørn Erik Pedersen [Thu, 5 Jan 2017 14:43:48 +0000 (15:43 +0100)]
commans: Remove unneeded build constraint

Fixes #2886

8 years agohugolib: Correct usage of "shortcode" in error messages
magikstm [Wed, 4 Jan 2017 22:19:09 +0000 (17:19 -0500)]
hugolib: Correct usage of "shortcode" in error messages

8 years agocommands, vendor: Remove log level setting in Jekyll command
Bjørn Erik Pedersen [Thu, 5 Jan 2017 10:58:11 +0000 (11:58 +0100)]
commands, vendor: Remove log level setting in Jekyll command

And update the JWW lib.

8 years agovendor: Update jww logger
Bjørn Erik Pedersen [Thu, 5 Jan 2017 10:25:27 +0000 (11:25 +0100)]
vendor: Update jww logger

8 years agodocs: Vanity-update of site meta description
Bjørn Erik Pedersen [Thu, 5 Jan 2017 00:40:00 +0000 (01:40 +0100)]
docs: Vanity-update of site meta description

8 years agohelpers: Remove unusded WordCount
Bjørn Erik Pedersen [Wed, 4 Jan 2017 23:00:00 +0000 (00:00 +0100)]
helpers: Remove unusded WordCount

8 years agodocs: Update references to _index.md
Ryan Watters [Wed, 4 Jan 2017 16:20:01 +0000 (10:20 -0600)]
docs: Update references to _index.md

8 years agodocs: Add new article about Netlify's PR site preview
Anthony Fok [Wed, 4 Jan 2017 08:17:36 +0000 (01:17 -0700)]
docs: Add new article about Netlify's PR site preview

Written by @keybits and mentioned by @bep on Gitter

8 years agohelpers: Fix minor typo in error message for Seq()
Anthony Fok [Wed, 4 Jan 2017 07:57:28 +0000 (00:57 -0700)]
helpers: Fix minor typo in error message for Seq()

8 years agotpl: Fix Unix time test case in TestDateFormat()
Anthony Fok [Tue, 3 Jan 2017 18:45:29 +0000 (11:45 -0700)]
tpl: Fix Unix time test case in TestDateFormat()

Fixes #2855

8 years agovendor: Fix broken build
Bjørn Erik Pedersen [Tue, 3 Jan 2017 16:50:44 +0000 (17:50 +0100)]
vendor: Fix broken build

8 years agoUpdate documentation and test for sitemap template
Daniel Lang [Tue, 3 Jan 2017 16:11:22 +0000 (08:11 -0800)]
Update documentation and test for sitemap template

8 years agohugolib: Clean up a benchmark
Cameron Moore [Mon, 2 Jan 2017 10:44:17 +0000 (04:44 -0600)]
hugolib: Clean up a benchmark

8 years agocommands, helpers, vendor: Update to the latest jww logger
Bjørn Erik Pedersen [Tue, 3 Jan 2017 15:57:43 +0000 (16:57 +0100)]
commands, helpers, vendor: Update to the latest jww logger

Updates #2701

8 years agohelpers: Add doc to Language.SetParam
bogem [Thu, 24 Nov 2016 19:30:52 +0000 (20:30 +0100)]
helpers: Add doc to Language.SetParam

8 years agocommands, helpers: Fix docs
bogem [Thu, 24 Nov 2016 19:30:17 +0000 (20:30 +0100)]
commands, helpers: Fix docs

8 years agocommands: Fix case in default config variable
bogem [Wed, 23 Nov 2016 15:13:50 +0000 (16:13 +0100)]
commands: Fix case in default config variable

8 years agocommands: Fix case in names of some methods
bogem [Wed, 23 Nov 2016 11:40:50 +0000 (12:40 +0100)]
commands: Fix case in names of some methods

8 years agodocs: Fix typo in overview/source-directory.md
digitalcraftsman [Mon, 2 Jan 2017 14:58:48 +0000 (15:58 +0100)]
docs: Fix typo in overview/source-directory.md

8 years agodocs: Add heimatverein-niederjosbach.de to the showcase
Timo Litzius [Mon, 2 Jan 2017 13:02:38 +0000 (14:02 +0100)]
docs: Add heimatverein-niederjosbach.de to the showcase

8 years agodocs: Add dbzman-online.eu to the showcase
Timo Litzius [Mon, 2 Jan 2017 13:14:21 +0000 (14:14 +0100)]
docs: Add dbzman-online.eu to the showcase

8 years agodocs: Fix typo in v0.18 release notes
Bret Mogilefsky [Mon, 2 Jan 2017 13:11:04 +0000 (05:11 -0800)]
docs: Fix typo in v0.18 release notes

8 years agodocs: Don't use binary version in docs site
Cameron Moore [Mon, 2 Jan 2017 13:08:36 +0000 (07:08 -0600)]
docs: Don't use binary version in docs site

Adds a "release" Site param that will be need to be updated for each
release.

Fixes #2857

8 years agohugolib: Add a taxonomy test case
Bjørn Erik Pedersen [Mon, 2 Jan 2017 11:28:26 +0000 (12:28 +0100)]
hugolib: Add a taxonomy test case

8 years agoRemove waffle.io graph from README
Cameron Moore [Mon, 2 Jan 2017 11:02:27 +0000 (05:02 -0600)]
Remove waffle.io graph from README

Waffle.io's throughput graph appears to be broken.  Remove the graph and
simply link to GitHub's Pulse page.

Fixes #2865

8 years agodocs: Replace .Now with now
Bjørn Erik Pedersen [Sun, 1 Jan 2017 22:54:19 +0000 (23:54 +0100)]
docs: Replace .Now with now

8 years agoFix Appveyor Windows build and GitInfo path issue on Windows
David Kassa [Sun, 1 Jan 2017 22:16:58 +0000 (16:16 -0600)]
Fix  Appveyor Windows build and GitInfo path issue on Windows

8 years agohugolib: Deprecate Page.Now
Bjørn Erik Pedersen [Sun, 1 Jan 2017 12:10:36 +0000 (13:10 +0100)]
hugolib: Deprecate Page.Now

Use `now` (template func).

See cabc6b31866e3bb86759f6615a83cec4c3610e82

8 years agohugolib: Bump the current warning deprecations
Bjørn Erik Pedersen [Sun, 1 Jan 2017 11:33:30 +0000 (12:33 +0100)]
hugolib: Bump the current warning deprecations

Fixes #2836

8 years agotpl: Add now function
Nishanth Shanmugham [Sun, 1 Jan 2017 01:50:46 +0000 (19:50 -0600)]
tpl: Add now function

Add a now template function that returns the current time as time.Time.
Also, update related docs.

8 years agodocs, tpl: Fix documentation of UniqueID
digitalcraftsman [Sat, 31 Dec 2016 16:55:03 +0000 (17:55 +0100)]
docs, tpl: Fix documentation of  UniqueID

See #2861

8 years agosource: Make UniqueID ... unique
Bjørn Erik Pedersen [Sat, 31 Dec 2016 16:46:11 +0000 (17:46 +0100)]
source: Make UniqueID ... unique

Fixes #2861

8 years agotpl: Use HTTPS in Google Analytics template
digitalcraftsman [Sat, 31 Dec 2016 11:43:02 +0000 (12:43 +0100)]
tpl: Use HTTPS in Google Analytics template

Fixes #2858

8 years agodocs: Add HugoPhotoSwipe to the tools section
Gertjan van den Burg [Sat, 31 Dec 2016 11:39:58 +0000 (12:39 +0100)]
docs: Add HugoPhotoSwipe to the tools section

HugoPhotoSwipe is a command line tool to create and manage PhotoSwipe galleries with Hugo. It resizes images for responsive layouts in PhotoSwipe and generates the Markdown necessary for Hugo to create the gallery. I think this can be a useful tool for Hugo users.

8 years agotravis: Add GOARCH 386 test
Bjørn Erik Pedersen [Thu, 29 Dec 2016 14:17:53 +0000 (15:17 +0100)]
travis: Add GOARCH 386 test

Closes #2847

8 years agodocs: Add release notes for Hugo 0.18.1
Bjørn Erik Pedersen [Thu, 29 Dec 2016 15:43:10 +0000 (16:43 +0100)]
docs: Add release notes for Hugo 0.18.1

8 years agovendor: Update Cobra
Anthony Fok [Thu, 29 Dec 2016 12:19:37 +0000 (05:19 -0700)]
vendor: Update Cobra

Fixes #2695

8 years agoFix Dockerfile
Gilbert Gilb's [Wed, 28 Dec 2016 17:40:36 +0000 (18:40 +0100)]
Fix Dockerfile

8 years agodocs: Update GitLab depleyment in /themes/installing.md
Asif Mehedi [Tue, 20 Dec 2016 04:52:24 +0000 (10:52 +0600)]
docs: Update GitLab depleyment in /themes/installing.md

Deployment to Gitlab fails if the theme folder is a git submodule.

8 years agodocs: Hide next arrow in theme
Jean-Yves Gastaud [Tue, 20 Dec 2016 15:04:18 +0000 (16:04 +0100)]
docs: Hide next arrow in theme

8 years agodocs: Remove right padding in theme
Jean-Yves Gastaud [Tue, 20 Dec 2016 14:59:56 +0000 (15:59 +0100)]
docs: Remove right padding in theme

8 years agodocs: Fix h1 size on small breakpoint in theme
Jean-Yves Gastaud [Tue, 20 Dec 2016 14:53:29 +0000 (15:53 +0100)]
docs: Fix h1 size on small breakpoint in theme

8 years agodocs: Remove unuseful breakpoint in theme
Jean-Yves Gastaud [Tue, 20 Dec 2016 14:50:42 +0000 (15:50 +0100)]
docs: Remove unuseful breakpoint in theme

8 years agodocs: Fix menu arrows position on mobile devices
Jean-Yves Gastaud [Tue, 20 Dec 2016 14:27:12 +0000 (15:27 +0100)]
docs: Fix menu arrows position on mobile devices

8 years agohugolib: Fix preserveTaxonomyNames regressions
Bjørn Erik Pedersen [Mon, 26 Dec 2016 18:30:57 +0000 (19:30 +0100)]
hugolib: Fix preserveTaxonomyNames regressions

Fixes #2809

8 years agodocs: Add hugofy for VS Code to the tools section
digitalcraftsman [Wed, 28 Dec 2016 12:41:54 +0000 (13:41 +0100)]
docs: Add hugofy for VS Code to the tools section

8 years agolivereload: Simplify RefreshPath
Cameron Moore [Wed, 28 Dec 2016 03:14:43 +0000 (21:14 -0600)]
livereload: Simplify RefreshPath

8 years agohugolib: Fix IsTranslated for "old" node types
Bjørn Erik Pedersen [Fri, 23 Dec 2016 08:52:05 +0000 (09:52 +0100)]
hugolib: Fix IsTranslated for "old" node types

The new logic for creating Page objects from old node types
didn't include itself in the translation logic, so
`IsTranslated` returned falsely false for sites with only two languages.

The `AllTranslations` method also returned too few pages in that case.

This commit fixes that.

Fixes #2812

8 years agohugolib: Use reflect.DeepEqual in tests
Cameron Moore [Tue, 27 Dec 2016 01:42:43 +0000 (19:42 -0600)]
hugolib: Use reflect.DeepEqual in tests

8 years agohugolib: Fix redundant URL file extension on taxonomy terms pages
Cameron Moore [Tue, 27 Dec 2016 02:36:08 +0000 (20:36 -0600)]
hugolib: Fix redundant URL file extension on taxonomy terms pages

Fixes #2819

8 years agodocs: Enable ToC for extras/shortcodes
Bjørn Erik Pedersen [Mon, 26 Dec 2016 18:31:34 +0000 (19:31 +0100)]
docs: Enable ToC for extras/shortcodes

8 years agohugolib: Make template error messages more verbose
Bjørn Erik Pedersen [Mon, 26 Dec 2016 13:52:31 +0000 (14:52 +0100)]
hugolib: Make template error messages more verbose

Fixes #2820

8 years agohelpers: Add patch version
Bjørn Erik Pedersen [Mon, 26 Dec 2016 13:03:50 +0000 (14:03 +0100)]
helpers: Add patch version

Fixes #2832

8 years agovendor: Update Afero
Bjørn Erik Pedersen [Mon, 26 Dec 2016 09:53:52 +0000 (10:53 +0100)]
vendor: Update Afero

Fixes #2833

8 years agovendor: Temp roll back to an older Afero
Bjørn Erik Pedersen [Sun, 25 Dec 2016 14:20:29 +0000 (15:20 +0100)]
vendor: Temp roll back to an older Afero

See #2833

8 years agotpl: Update dateFormat test expectations for epoch values
Bjørn Erik Pedersen [Sun, 25 Dec 2016 13:53:34 +0000 (14:53 +0100)]
tpl: Update dateFormat test expectations for epoch values

As `Cast` now supports `int` inputs.

8 years agovendor: Update dependencies
Bjørn Erik Pedersen [Sun, 25 Dec 2016 13:53:24 +0000 (14:53 +0100)]
vendor: Update dependencies

8 years agotpl: Fix crash when using imageConfig
Tristan Rice [Sun, 25 Dec 2016 12:43:50 +0000 (04:43 -0800)]
tpl: Fix crash when using imageConfig

defaultImageConfigCache is now initialized statically instead of relying on it
being initialized in the reset function.

Fixes #2806

8 years agohelpers: Remove "no theme set" warning
Cameron Moore [Fri, 23 Dec 2016 04:44:35 +0000 (22:44 -0600)]
helpers: Remove "no theme set" warning

Fixes #2821

8 years agotpl: Update getenv to accept interface{} params
Cameron Moore [Fri, 23 Dec 2016 04:05:59 +0000 (22:05 -0600)]
tpl: Update getenv to accept interface{} params

Updates #2822

8 years agotpl: Update title to accept interface{} params
Cameron Moore [Fri, 23 Dec 2016 04:01:00 +0000 (22:01 -0600)]
tpl: Update title to accept interface{} params

Updates #2822

8 years agotpl: Update upper to accept interface{} params
Cameron Moore [Fri, 23 Dec 2016 03:54:08 +0000 (21:54 -0600)]
tpl: Update upper to accept interface{} params

Updates #2822

8 years agotpl: Update lower to accept interface{} params
Cameron Moore [Thu, 22 Dec 2016 23:39:38 +0000 (17:39 -0600)]
tpl: Update lower to accept interface{} params

Updates #2822

8 years agotpl: Update hasPrefix to accept interface{} params
Cameron Moore [Thu, 22 Dec 2016 23:29:31 +0000 (17:29 -0600)]
tpl: Update hasPrefix to accept interface{} params

Updates #2822

8 years agoUpdate Travis go versions
Cameron Moore [Fri, 23 Dec 2016 04:19:00 +0000 (22:19 -0600)]
Update Travis go versions

8 years agodocs: Convert code in multilingual.md to TOML
Asif Mehedi [Thu, 22 Dec 2016 16:19:10 +0000 (22:19 +0600)]
docs: Convert code in multilingual.md to TOML

There was a mix of TOML and YAML in the first example config.

8 years agodocs: Add neavey.net to the showcase.
patrick [Wed, 21 Dec 2016 21:34:46 +0000 (21:34 +0000)]
docs: Add neavey.net to the showcase.

8 years agodocs: Fix typo in templates/blocks
Emily Huynh [Thu, 22 Dec 2016 16:05:48 +0000 (10:05 -0600)]
docs: Fix typo in templates/blocks

Fixed typo in templates/blocks.md in the docs.

8 years agodocs: Add details about binary names for setup on Windows
Akilan Elango [Thu, 22 Dec 2016 16:03:33 +0000 (21:33 +0530)]
docs: Add details about binary names for setup on Windows

The tutorial for installing on windows didn't mention the exact name of the
hugo executable in windows which is generally hugo_<hugo-version>_windows_<arch>.exe.
The tutorial mentioned the windows executable's name as hugo.exe, which
can be confusing sometimes. So extra information has been added to
rename the executable to hugo.exe which would be easy to use.

Fixes #2656

8 years agocommand: Add `themesDir` command argument to specify themes directory
avi [Thu, 22 Dec 2016 07:39:58 +0000 (13:09 +0530)]
command: Add `themesDir` command argument to specify themes directory

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

8 years agohugolib: Add a test assertion for IsTranslated
Bjørn Erik Pedersen [Wed, 21 Dec 2016 09:17:05 +0000 (10:17 +0100)]
hugolib: Add a test assertion for IsTranslated

See #2812

8 years agodocs: Regenerate commands doc
Bjørn Erik Pedersen [Tue, 20 Dec 2016 08:39:12 +0000 (09:39 +0100)]
docs: Regenerate commands doc

8 years agoBump to 0.19-DEV
Bjørn Erik Pedersen [Mon, 19 Dec 2016 22:14:10 +0000 (23:14 +0100)]
Bump to 0.19-DEV

8 years agoAdd GoBuilds to .gitignore
Bjørn Erik Pedersen [Mon, 19 Dec 2016 16:12:11 +0000 (17:12 +0100)]
Add GoBuilds to .gitignore

8 years agodocs: Add new alias feature to release docs v0.18
Bjørn Erik Pedersen [Mon, 19 Dec 2016 14:37:01 +0000 (15:37 +0100)]
docs: Add new alias feature to release docs

8 years agoBump to 0.18 release version
Bjørn Erik Pedersen [Mon, 19 Dec 2016 14:35:20 +0000 (15:35 +0100)]
Bump to 0.18 release version

8 years agodocs: Add 0.18 release notes
Bjørn Erik Pedersen [Mon, 19 Dec 2016 13:42:01 +0000 (14:42 +0100)]
docs: Add 0.18 release notes

8 years agovendor: Update go-toml
Bjørn Erik Pedersen [Fri, 16 Dec 2016 19:18:20 +0000 (20:18 +0100)]
vendor: Update go-toml

Fixes #2800

8 years agodocs: Fix broken link to Content Types
Ashutosh Gangwar [Fri, 16 Dec 2016 10:10:14 +0000 (15:40 +0530)]
docs: Fix broken link to Content Types

8 years agodocs: Update layouts path name
Brian Shumate [Fri, 16 Dec 2016 00:09:51 +0000 (19:09 -0500)]
docs: Update layouts path name

8 years agodocs: Improve documentation for block templates
Bjørn Erik Pedersen [Thu, 15 Dec 2016 21:02:21 +0000 (22:02 +0100)]
docs: Improve documentation for block templates

Hopefully.

Fixes #2363

8 years agohugolib: Enable override of theme base template only
Bjørn Erik Pedersen [Wed, 14 Dec 2016 19:12:03 +0000 (20:12 +0100)]
hugolib: Enable override of theme base template only

This commit fixes the base template lookup order to match the behaviour of regular templates.

```
1. <current-path>/<template-name>-baseof.<suffix>, e.g. list-baseof.<suffix>.
2. <current-path>/baseof.<suffix>
3. _default/<template-name>-baseof.<suffix>, e.g. list-baseof.<suffix>.
4. _default/baseof.<suffix>

For each of the steps above, it will first look in the project, then, if theme is set,
in the theme's layouts folder.
```

Fixes #2783

8 years agodocs: Clarify single page template search path
Cameron Moore [Thu, 15 Dec 2016 17:06:25 +0000 (11:06 -0600)]
docs: Clarify single page template search path

Fixes #2791

8 years agodocs: Fix pipe examples
Cameron Moore [Thu, 15 Dec 2016 16:56:52 +0000 (10:56 -0600)]
docs: Fix pipe examples

Fixes #2787

8 years agodocs: Fix Ref and RelRef syntax
Cameron Moore [Thu, 15 Dec 2016 16:39:29 +0000 (10:39 -0600)]
docs: Fix Ref and RelRef syntax

Fixes #2793

8 years agodocs: Document partialCached func
Cameron Moore [Wed, 14 Dec 2016 02:37:34 +0000 (20:37 -0600)]
docs: Document partialCached func

Fixes #2779

8 years agodocs: Add .Site.RegularPages docs
Cameron Moore [Sun, 11 Dec 2016 23:44:14 +0000 (17:44 -0600)]
docs: Add .Site.RegularPages docs

Fixes #2775

8 years agodocs: Update GitInfo usage docs
Cameron Moore [Mon, 12 Dec 2016 02:29:07 +0000 (20:29 -0600)]
docs: Update GitInfo usage docs

8 years agodocs: Cleanup Extras menu ordering
Cameron Moore [Mon, 12 Dec 2016 00:55:36 +0000 (18:55 -0600)]
docs: Cleanup Extras menu ordering

8 years agodocs: Add Extras > GitInfo
Cameron Moore [Mon, 12 Dec 2016 00:40:45 +0000 (18:40 -0600)]
docs: Add Extras > GitInfo

Fixes #2670

8 years agocreate: Allow empty dates in archetype in new
Bjørn Erik Pedersen [Thu, 15 Dec 2016 08:27:30 +0000 (09:27 +0100)]
create: Allow empty dates in archetype in new

To make it behave the same as Hugo 0.17.

8 years agodocs: Fix querify example
madhead [Wed, 14 Dec 2016 10:01:11 +0000 (05:01 -0500)]
docs: Fix querify example