brevno-suite/hugo
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

8 years agotpl: Add a querify test case that is actually and URL
Bjørn Erik Pedersen [Mon, 12 Dec 2016 23:15:21 +0000 (00:15 +0100)]
tpl: Add a querify test case that is actually and URL

See #2780

8 years agoFix menu URL for node type pages
Bjørn Erik Pedersen [Sun, 11 Dec 2016 12:01:11 +0000 (13:01 +0100)]
Fix menu URL for node type pages

By delaying the menu assembly.

Fixes #2770

8 years agodocs: Clarify usage of archetypes provided by themes
Eugene Brodsky [Sat, 10 Dec 2016 06:59:42 +0000 (01:59 -0500)]
docs: Clarify usage of archetypes provided by themes

8 years agodocs: Update File variables
Cameron Moore [Fri, 9 Dec 2016 22:27:20 +0000 (16:27 -0600)]
docs: Update File variables

8 years agodocs: Fix prev/next links in content section
Cipto Hadi [Fri, 9 Dec 2016 01:31:50 +0000 (08:31 +0700)]
docs: Fix prev/next links in content section

8 years agohugolib: Fix comment
Bjørn Erik Pedersen [Tue, 6 Dec 2016 08:57:05 +0000 (09:57 +0100)]
hugolib: Fix comment

8 years agohugolib: Respect disableRSS
Bjørn Erik Pedersen [Tue, 6 Dec 2016 08:32:14 +0000 (09:32 +0100)]
hugolib: Respect disableRSS

Fixes #2764

8 years agotpl: Avoid repeating the same test case in TestMD5 and TesSHA*
Bjørn Erik Pedersen [Sun, 4 Dec 2016 23:27:49 +0000 (00:27 +0100)]
tpl: Avoid repeating the same test case in TestMD5 and TesSHA*

8 years agodocs: Fix linebreaks in templates/variables.md
digitalcraftsman [Sun, 4 Dec 2016 17:20:56 +0000 (18:20 +0100)]
docs: Fix linebreaks in templates/variables.md

8 years agotpl: Add sha256 template function
digitalcraftsman [Sun, 4 Dec 2016 12:35:31 +0000 (13:35 +0100)]
tpl: Add sha256 template function

Fixes #2742

8 years agodocs: Update description of querify
digitalcraftsman [Sat, 3 Dec 2016 19:23:41 +0000 (20:23 +0100)]
docs: Update description of querify

8 years agodocs: Document querify template func
digitalcraftsman [Sat, 3 Dec 2016 19:12:12 +0000 (20:12 +0100)]
docs: Document querify template func

Closes #2733

8 years agohugolib: Add regular content page count in publish summary
Bjørn Erik Pedersen [Sat, 3 Dec 2016 16:42:45 +0000 (17:42 +0100)]
hugolib: Add regular content page count in publish summary

Fixes #2759

8 years agohugolib: Remove superfluous assignment
Bjørn Erik Pedersen [Fri, 2 Dec 2016 15:09:18 +0000 (16:09 +0100)]
hugolib: Remove superfluous assignment

8 years agohugolib: Make RawContent raw again
Bjørn Erik Pedersen [Thu, 1 Dec 2016 09:21:49 +0000 (10:21 +0100)]
hugolib: Make RawContent raw again

This was a regression introduced in Hugo 0.17.

Fixes #2601

8 years agocommands: Add noChmod option to disable perm sync
Cameron Moore [Wed, 30 Nov 2016 04:52:52 +0000 (22:52 -0600)]
commands: Add noChmod option to disable perm sync

Includes updates to docs.

Fixes #2749

8 years agovendor: Update fsync
Bjørn Erik Pedersen [Wed, 30 Nov 2016 07:32:49 +0000 (08:32 +0100)]
vendor: Update fsync

8 years agocreate: Run all the test variants in TestNewContent
Bjørn Erik Pedersen [Wed, 30 Nov 2016 07:29:08 +0000 (08:29 +0100)]
create: Run all the test variants in TestNewContent

See #2750

8 years agohugolib: Fix rendered empty msg
Chase Adams [Tue, 29 Nov 2016 23:03:47 +0000 (15:03 -0800)]
hugolib: Fix rendered empty msg

Changes `%q` to `%s`. `%q` was safely escaping the `\` in windows so that it was printing `\\`.

8 years agocreate: Simplify archetype logic
Bjørn Erik Pedersen [Tue, 29 Nov 2016 19:32:26 +0000 (20:32 +0100)]
create: Simplify archetype logic

See ##2750

8 years agocreate: Fix archetype title and date handling
Bjørn Erik Pedersen [Tue, 29 Nov 2016 19:18:09 +0000 (20:18 +0100)]
create: Fix archetype title and date handling

Fixes #2750

8 years agovendor: Update go-toml
Bjørn Erik Pedersen [Mon, 28 Nov 2016 15:10:16 +0000 (16:10 +0100)]
vendor: Update go-toml

See #2745

8 years agomakefile: Add test-cover-html
Bjørn Erik Pedersen [Sun, 27 Nov 2016 22:21:10 +0000 (23:21 +0100)]
makefile: Add test-cover-html

8 years agohugolib: Create the permalink once only
Bjørn Erik Pedersen [Sun, 27 Nov 2016 18:25:28 +0000 (19:25 +0100)]
hugolib: Create the permalink once only

8 years agotpl: Fix params case issue with nested template funcs
Bjørn Erik Pedersen [Sun, 27 Nov 2016 17:01:43 +0000 (18:01 +0100)]
tpl: Fix params case issue with nested template funcs

Fixes #2740

8 years agohugolib: Fix regressions with uglyURLs
Bjørn Erik Pedersen [Sat, 26 Nov 2016 14:50:32 +0000 (15:50 +0100)]
hugolib: Fix regressions with uglyURLs

Fixes #2734

8 years agohugolib: Avoid repeated Viper loads of sectionPagesMenu
Bjørn Erik Pedersen [Wed, 23 Nov 2016 21:06:15 +0000 (22:06 +0100)]
hugolib: Avoid repeated Viper loads of sectionPagesMenu

See #2728

8 years agohugolib: Add shortcode for Instagram
Victor Kropp [Sun, 13 Nov 2016 23:04:28 +0000 (00:04 +0100)]
hugolib: Add shortcode for Instagram

8 years agodocs: Set correct default archetype directory in overview
digitalcraftsman [Wed, 23 Nov 2016 18:53:24 +0000 (19:53 +0100)]
docs: Set correct default archetype directory in overview

Fixes #2719.

8 years agoexamples: Update blog example
bogem [Wed, 23 Nov 2016 09:30:57 +0000 (10:30 +0100)]
examples: Update blog example

Use RSSLink instead of deprecated RSSlink

8 years agoexamples: Update multilingual example
bogem [Mon, 21 Nov 2016 15:35:52 +0000 (16:35 +0100)]
examples: Update multilingual example

Use new i18n concept

Fixes #2417

8 years agocommands: Simplify
Bjørn Erik Pedersen [Wed, 23 Nov 2016 17:55:51 +0000 (18:55 +0100)]
commands: Simplify