brevno-suite/hugo
5 years agoRelease 0.55.2
Bjørn Erik Pedersen [Wed, 17 Apr 2019 12:13:46 +0000 (14:13 +0200)]
Release 0.55.2

5 years agoreleaser: Add release notes draft for 0.55.2
hugoreleaser [Wed, 17 Apr 2019 12:10:37 +0000 (12:10 +0000)]
releaser: Add release notes draft for 0.55.2

Rename to *-ready.md to continue. [ci skip]

5 years agohugolib: Add more tests for Permalinkable
Bjørn Erik Pedersen [Wed, 17 Apr 2019 11:17:26 +0000 (13:17 +0200)]
hugolib: Add more tests for Permalinkable

See #5849

5 years agohugolib: Fix Pages reinitialization on rebuilds
Bjørn Erik Pedersen [Wed, 17 Apr 2019 08:36:36 +0000 (10:36 +0200)]
hugolib: Fix Pages reinitialization on rebuilds

Which had some unpredictable behaviour when using `.Pages` on home page etc. that had a content page.

Fixes #5833

5 years agotpl/tplimpl: Handle late transformation of templates
Bjørn Erik Pedersen [Tue, 16 Apr 2019 07:13:55 +0000 (09:13 +0200)]
tpl/tplimpl: Handle late transformation of templates

Fixes #5865

5 years agohugolib: Fix shortcode namespace issue
Bjørn Erik Pedersen [Mon, 15 Apr 2019 13:17:46 +0000 (15:17 +0200)]
hugolib: Fix shortcode namespace issue

Fixes #5863

5 years agohugolib: Fix false WARNINGs in lang prefix check
Bjørn Erik Pedersen [Mon, 15 Apr 2019 15:09:27 +0000 (17:09 +0200)]
hugolib: Fix false WARNINGs in lang prefix check

Add a slash to the check to make it less likely to match a valid value.

Fixes #5860

5 years agohugolib: Fix bundle resource publishing when multiple output formats
Bjørn Erik Pedersen [Mon, 15 Apr 2019 10:06:12 +0000 (12:06 +0200)]
hugolib: Fix bundle resource publishing when multiple output formats

The faulty logic published the bundled resources for the "first output" format.

This worked most of the time, but since the output formats list is sorted,
any output format only used for some of the pages (e.g. CSS) would not work properly.

Fixes #5858

5 years agohugolib: Fix panic for unused taxonomy content files
Bjørn Erik Pedersen [Mon, 15 Apr 2019 07:38:14 +0000 (09:38 +0200)]
hugolib: Fix panic for unused taxonomy content files

In Hugo 0.55 we connected the taxonomy nodes with their owning Page.

This failed if you had, say, a content file for a author that did not author anything in the site:

```
content/authors/silent-persin/_index.md
```

Fixes #5847

6 years agohugolib: Fix dates for sections with dates in front matter
Bjørn Erik Pedersen [Sat, 13 Apr 2019 16:58:06 +0000 (18:58 +0200)]
hugolib: Fix dates for sections with dates in front matter

Fixes #5854

6 years agoFix WeightedPages in union etc.
Bjørn Erik Pedersen [Sat, 13 Apr 2019 09:40:51 +0000 (11:40 +0200)]
Fix WeightedPages in union etc.

We introduced a callback func() to get the owner Page in 0.55.0.

Sadly, funcs is  not comparable type in Go.

This commit replaces the func with a struct pointer that wraps the Page.

Fixes #5850

6 years agoreleaser: Prepare repository for 0.56.0-DEV
hugoreleaser [Fri, 12 Apr 2019 09:58:35 +0000 (09:58 +0000)]
releaser: Prepare repository for 0.56.0-DEV

[ci skip]

6 years agoreleaser: Add release notes to /docs for release of 0.55.1 v0.55.1
hugoreleaser [Fri, 12 Apr 2019 09:56:13 +0000 (09:56 +0000)]
releaser: Add release notes to /docs for release of 0.55.1

[ci skip]

6 years agoreleaser: Bump versions for release of 0.55.1
hugoreleaser [Fri, 12 Apr 2019 09:56:13 +0000 (09:56 +0000)]
releaser: Bump versions for release of 0.55.1

[ci skip]

6 years agoRelease 0.55.1
Bjørn Erik Pedersen [Fri, 12 Apr 2019 09:30:04 +0000 (11:30 +0200)]
Release 0.55.1

6 years agoreleaser: Add release notes draft for 0.55.1
hugoreleaser [Fri, 12 Apr 2019 09:29:27 +0000 (09:29 +0000)]
releaser: Add release notes draft for 0.55.1

Rename to *-ready.md to continue. [ci skip]

6 years agohugolib: Add a test for parent's resources in shortcode
Bjørn Erik Pedersen [Fri, 12 Apr 2019 08:44:21 +0000 (10:44 +0200)]
hugolib: Add a test for parent's resources in shortcode

See #5833

6 years agoFix
Bjørn Erik Pedersen [Fri, 12 Apr 2019 08:26:10 +0000 (10:26 +0200)]
Fix

6 years agohugolib: Fix simple menu config
Bjørn Erik Pedersen [Fri, 12 Apr 2019 07:50:36 +0000 (09:50 +0200)]
hugolib: Fix simple menu config

This stopped working in Hugo 0.55:

```bash
---
menu: "main"
---
```

This was also the case for using a slice of menu entries.

This still worked:

---
menu:
  main:
    weight: 30
---

6 years agoFix paginator refresh on server change
Bjørn Erik Pedersen [Wed, 10 Apr 2019 08:11:51 +0000 (10:11 +0200)]
Fix paginator refresh on server change

Fixes #5838

6 years agoRemove the space in `. RelPermalink`
Yihui Xie [Wed, 10 Apr 2019 18:50:51 +0000 (13:50 -0500)]
Remove the space in `. RelPermalink`

The same fix as 3b86b4a9f5ce010c9714d813d5b8ecddda22c69f, applied to doc.

6 years agoMerge commit '8b73644d81a81e82851b7f7c90aa8ab5524fbe93'
Bjørn Erik Pedersen [Tue, 9 Apr 2019 21:59:59 +0000 (23:59 +0200)]
Merge commit '8b73644d81a81e82851b7f7c90aa8ab5524fbe93'

6 years agoSquashed 'docs/' changes from acf70cdd9..0f2bf195e
Bjørn Erik Pedersen [Tue, 9 Apr 2019 21:59:13 +0000 (23:59 +0200)]
Squashed 'docs/' changes from acf70cdd9..0f2bf195e

0f2bf195e Adjust shortcodes for 0.55
48c577121 Fix deprecation warnings
ed95a341a Update index.md
e4bc8981f Release 0.55.0
25acacb91 Merge branch 'temp55'
b240e321a releaser: Add release notes to /docs for release of 0.55.0
86a190c92 docs: Add information about summary front matter variable
9d94f4340 integrity: Add support for sha384
dd3fe9f92 Add HUGO_NUMWORKERMULTIPLIER
968372d86 Add trace.out to .gitignore
660772713 Add the Fireship images to cache
41a3e19cb hugolib: Allow page-relative aliases
4497e4b12 Update faq.md
b0ee3dccc output: Add missing JSON tag
173dac0b7 docs: Regenerate docshelper data
e30473062 docs: Regenerate CLI docs
8cb775be2 Merge commit 'c2037f0c9a3a35b9db9c404f6b5f94ec8b690a53'
5bc64bf44 Make Page an interface
371ff6c12 Add skipHTML option to blackfriday config

git-subtree-dir: docs
git-subtree-split: 0f2bf195ef549013cc843199fb50317b0d1a5e85

6 years agoresources/page: Fix .RSSLinke deprecation message
Bjørn Erik Pedersen [Tue, 9 Apr 2019 14:47:29 +0000 (16:47 +0200)]
resources/page: Fix .RSSLinke deprecation message

Closes #4427

6 years agotpl/tplimpl: Replace deprecated .GetParam usage
Bjørn Erik Pedersen [Tue, 9 Apr 2019 14:39:12 +0000 (16:39 +0200)]
tpl/tplimpl: Replace deprecated .GetParam usage

Fixes #5834

6 years agoreleaser: Prepare repository for 0.56.0-DEV
hugoreleaser [Mon, 8 Apr 2019 16:42:12 +0000 (16:42 +0000)]
releaser: Prepare repository for 0.56.0-DEV

[ci skip]

6 years agoreleaser: Add release notes to /docs for release of 0.55.0 v0.55.0
hugoreleaser [Mon, 8 Apr 2019 16:39:45 +0000 (16:39 +0000)]
releaser: Add release notes to /docs for release of 0.55.0

[ci skip]

6 years agoreleaser: Bump versions for release of 0.55.0
hugoreleaser [Mon, 8 Apr 2019 16:39:45 +0000 (16:39 +0000)]
releaser: Bump versions for release of 0.55.0

[ci skip]

6 years agoRelease 0.55.0
Bjørn Erik Pedersen [Mon, 8 Apr 2019 16:34:48 +0000 (18:34 +0200)]
Release 0.55.0

6 years agoreleaser: Add release notes draft for 0.55.0
hugoreleaser [Mon, 8 Apr 2019 09:27:25 +0000 (09:27 +0000)]
releaser: Add release notes draft for 0.55.0

Rename to *-ready.md to continue. [ci skip]

6 years agoMisc paginator adjustments
Bjørn Erik Pedersen [Sun, 7 Apr 2019 19:59:37 +0000 (21:59 +0200)]
Misc paginator adjustments

* Rewind paginator for server mode
* Add some more related tests.
* Replace the clumsy scratch constructs in internal paginator template with variables

See #5825

6 years agoUpdate to Go 1.12.2 and Go 1.11.7
Bjørn Erik Pedersen [Sun, 7 Apr 2019 11:16:01 +0000 (13:16 +0200)]
Update to Go 1.12.2 and Go 1.11.7

Fixes #5819

6 years agohugolib: Log warning on relative front matter url with lang
Bjørn Erik Pedersen [Sun, 7 Apr 2019 08:22:19 +0000 (10:22 +0200)]
hugolib: Log warning on relative front matter url with lang

Will do this for one version only, as there may be situations where this is the correct thing.

Also add some more related test cases.

Fixes #5818

6 years agoAdjust rlimit logic
Bjørn Erik Pedersen [Sat, 6 Apr 2019 15:40:35 +0000 (17:40 +0200)]
Adjust rlimit logic

Closes #5821

6 years agodocs: Add information about summary front matter variable
Jim McDonald [Fri, 5 Apr 2019 22:17:54 +0000 (23:17 +0100)]
docs: Add information about summary front matter variable

6 years agohugolib: Consider summary in front matter for .Summary
Jim McDonald [Fri, 5 Apr 2019 17:11:04 +0000 (18:11 +0100)]
hugolib: Consider summary in front matter for .Summary

Add the ability to have a `summary` page variable that overrides
the auto-generated summary.  Logic for obtaining summary becomes:

  * if summary divider is present in content, use the text above it
  * if summary variables is present in page metadata, use that
  * auto-generate summary from first _x_ words of the content

Fixes #5800

6 years agoresources/page: Regenerate JSON wrapper
Bjørn Erik Pedersen [Fri, 5 Apr 2019 14:58:52 +0000 (16:58 +0200)]
resources/page: Regenerate JSON wrapper

6 years agoresources/page: Add missing GitInfo to Page
Bjørn Erik Pedersen [Fri, 5 Apr 2019 14:52:37 +0000 (16:52 +0200)]
resources/page: Add missing GitInfo to Page

6 years agointegrity: Add support for sha384
Bjørn Erik Pedersen [Fri, 5 Apr 2019 09:40:02 +0000 (11:40 +0200)]
integrity: Add support for sha384

Fixes #5815

6 years agohugolib: Fix default date assignment for sections
Bjørn Erik Pedersen [Fri, 5 Apr 2019 09:05:25 +0000 (11:05 +0200)]
hugolib: Fix default date assignment for sections

See #5784

6 years agoAdd HUGO_NUMWORKERMULTIPLIER
Bjørn Erik Pedersen [Fri, 5 Apr 2019 08:09:22 +0000 (10:09 +0200)]
Add HUGO_NUMWORKERMULTIPLIER

And use that to calculate number of workers, if set, else fall back to number of logical CPUs.

Also tweak the relevant related settings to match the new setup.

Also remove the setting of `runtime.GOMAXPROCS` as this has been the default behaviour since Go 1.5.

Fixes #5814

6 years agohugolib: Fix the GOMAXPROCS env get
Bjørn Erik Pedersen [Fri, 5 Apr 2019 07:31:16 +0000 (09:31 +0200)]
hugolib: Fix the GOMAXPROCS env get

Fixes #5813

6 years agoUse YAML for the benchmark compare
Bjørn Erik Pedersen [Fri, 5 Apr 2019 06:55:39 +0000 (08:55 +0200)]
Use YAML for the benchmark compare

6 years agohugolib: Fix benchmark for YAML front matter
Bjørn Erik Pedersen [Fri, 5 Apr 2019 06:44:14 +0000 (08:44 +0200)]
hugolib: Fix benchmark for YAML front matter

6 years agohugolib: Buffer the render pages chan
Bjørn Erik Pedersen [Thu, 4 Apr 2019 14:50:10 +0000 (16:50 +0200)]
hugolib: Buffer the render pages chan

6 years agodeps: Update to imaging v1.6.0
Bjørn Erik Pedersen [Thu, 4 Apr 2019 12:39:39 +0000 (14:39 +0200)]
deps: Update to imaging v1.6.0

Closes #5812

6 years agohugolib: Re-work "fast render" logic in the new flow
Bjørn Erik Pedersen [Thu, 4 Apr 2019 10:37:55 +0000 (12:37 +0200)]
hugolib: Re-work "fast render" logic in the new flow

Note that this fixes some "live reload" issues recently introduced in non-released code.

Closes #5811
See #5784

6 years agometrics: Adjust the howSimilar logic vs strings
Bjørn Erik Pedersen [Tue, 2 Apr 2019 18:43:58 +0000 (20:43 +0200)]
metrics: Adjust the howSimilar logic vs strings

Also add a test.

6 years agoresources/page: Implement compare.ProbablyEqer for the core slices
Bjørn Erik Pedersen [Tue, 2 Apr 2019 08:52:43 +0000 (10:52 +0200)]
resources/page: Implement compare.ProbablyEqer for the core slices

Fixes #5808

6 years agohugolib: Allow relative URLs in front matter
Bjørn Erik Pedersen [Sun, 31 Mar 2019 10:08:15 +0000 (12:08 +0200)]
hugolib: Allow relative URLs in front matter

Before this commit you would have to do this in multilingual setups:

```
---
title: "Custom!"
url: "/jp/custom/foo"
---
```

This commit allows for relative URLs, e.g:

```
---
title: "Custom!"
url: "custom/foo"
---
```

Which is obviously easier and more portable.

The meaning of relative may change to include more in the future (e.g. role based access).

Fixes #5704

6 years agohugolib: Allow page-relative aliases
Bjørn Erik Pedersen [Sat, 30 Mar 2019 16:08:25 +0000 (17:08 +0100)]
hugolib: Allow page-relative aliases

Fixes #5757

6 years agotpl: Allow the partial template func to return any type
Bjørn Erik Pedersen [Tue, 2 Apr 2019 08:30:24 +0000 (10:30 +0200)]
tpl: Allow the partial template func to return any type

This commit adds support for return values in partials.

This means that you can now do this and similar:

    {{ $v := add . 42 }}
    {{ return $v }}

Partials without a `return` statement will be rendered as before.

This works for both `partial` and `partialCached`.

Fixes #5783

6 years agoreleaser: Remove version replacement in docs config
Bjørn Erik Pedersen [Mon, 1 Apr 2019 07:11:36 +0000 (09:11 +0200)]
releaser: Remove version replacement in docs config

Fixes #5665

6 years agoreleaser: Adjust patch vs images logic
Bjørn Erik Pedersen [Mon, 1 Apr 2019 07:07:19 +0000 (09:07 +0200)]
releaser: Adjust patch vs images logic

Fixes #5664

6 years agohugolib: Fix alias path for AMP and similar
Bjørn Erik Pedersen [Sat, 30 Mar 2019 15:46:18 +0000 (16:46 +0100)]
hugolib: Fix alias path for AMP and similar

Fixes #5760

6 years agoresources: Fix image publish ordering issue
Bjørn Erik Pedersen [Sat, 30 Mar 2019 08:12:49 +0000 (09:12 +0100)]
resources: Fix image publish ordering issue

Fixes #5730

6 years agooutput: Add missing JSON tag
Bjørn Erik Pedersen [Thu, 28 Mar 2019 19:59:09 +0000 (20:59 +0100)]
output: Add missing JSON tag

6 years agodocs: Regenerate docshelper data
Bjørn Erik Pedersen [Thu, 28 Mar 2019 08:49:54 +0000 (09:49 +0100)]
docs: Regenerate docshelper data

Closes #5799

6 years agodeps: Update Chroma
Bjørn Erik Pedersen [Thu, 28 Mar 2019 08:46:55 +0000 (09:46 +0100)]
deps: Update Chroma

Closes #5780

6 years agohugolib: Add a simple test for jsonify of Site
Bjørn Erik Pedersen [Thu, 28 Mar 2019 08:45:25 +0000 (09:45 +0100)]
hugolib: Add a simple test for jsonify of Site

Closes #5780

6 years agodocs: Regenerate CLI docs
Bjørn Erik Pedersen [Tue, 26 Mar 2019 17:46:01 +0000 (18:46 +0100)]
docs: Regenerate CLI docs

Fixes #5779

6 years agoMerge commit 'c2037f0c9a3a35b9db9c404f6b5f94ec8b690a53'
Bjørn Erik Pedersen [Tue, 26 Mar 2019 17:41:36 +0000 (18:41 +0100)]
Merge commit 'c2037f0c9a3a35b9db9c404f6b5f94ec8b690a53'

6 years agoSquashed 'docs/' changes from 4f4d1f48c..acf70cdd9
Bjørn Erik Pedersen [Tue, 26 Mar 2019 17:41:09 +0000 (18:41 +0100)]
Squashed 'docs/' changes from 4f4d1f48c..acf70cdd9

acf70cdd9 Update CSS after removing Purge
74c0bb7f2 Remove purge from Webpack, temporarily
397b7284f Merge commit 'ccb1e38f3822e9b5e4fb89a296324daf3400f23b'
ccb1e38f3 Squashed 'themes/gohugoioTheme/' changes from 042112e2d..b7853ae70
bca84e914 Fix search box text being invisible in Safari
3f21d0957 FAQ: "this feature is not available in your current Hugo version"
d8b318f90 Remove Gulp from Victor Hugo description
09d9b4c24 Update contribute/development.md
4d0f6ba47 Theme Components Support on the Hugo Themes Site (#769)
f2ec3f2a6 Fix broken link 404
af82c56c5 config: Remove superflous param
8dc14f563 Update theme total on homepage (#765)
7838fd7e2 Update description of Atlas to reflect new changes
6abab23c6 update: total of hugo themes
1dba24fde Clarify: summaryLength uses words not characters
8c54f45d6 Add missing punctuation
d17000481 Remove Hugo Frontend caddy-plugin
a7094ae62 remove unneeded meta tags
f8b0f31c6 Fix typo in cross references
61781bab9 Fix: use gh shortcode correctly
357bfca43 Update files.md
d1d2406cc Updated Hugo convert to clarify for and not ..
86850f3c3 Fix typos in multilingual.md
b68d0d892 Fix typo
8cba70e28 Document disableAliases
00e440260 Remove extra whitespace
212d63e4c Update with latest Theme Submission Guidelines (#744)
c24ea638f Update frontends.md
942bc1972 Add one more video
2e1e1091d Update the rest of the videos
a7dc70f2b Add new installation video
1a78f8487 Hosting on AWS amplify
112420c46 Fix typo
f723425e4 Add fireship.io bio to showcase
574f43503 Fixed typo
88e0e0cb7 Release 0.54.0
303edf19e Merge branch 'temp54'
c38debebd releaser: Prepare repository for 0.55.0-DEV
5c6c56fa1 releaser: Add release notes to /docs for release of 0.54.0
f86e05950 releaser: Bump versions for release of 0.54.0
6a2684fe4 Add the default cache configuration
f75c0125a Merge commit 'f27faf9afd0a8db768a21954b8755f1bf1a14f1b'
e440dc6a4 Merge commit '5e078383a787e8b5ec3ba73f05ea4130840afbe2'
981bf53f8 Update _index.md
b54aea066 tpl: Fix reflect
41f8af5a6 Merge commit '978856e2ad12d2bcaf37bb9e31f806b30a4c42f4'

git-subtree-dir: docs
git-subtree-split: acf70cdd9fe2a89413e13db29466e45629372343

6 years agohugolib: Do not fall back to site title if not set in content file
Bjørn Erik Pedersen [Tue, 26 Mar 2019 13:33:09 +0000 (14:33 +0100)]
hugolib: Do not fall back to site title if not set in content file

See #5784

6 years agodeps: Update Afero
Bjørn Erik Pedersen [Tue, 26 Mar 2019 12:12:58 +0000 (13:12 +0100)]
deps: Update Afero

Closes #5673

6 years agohugolib: Add a test for home page with no title
Bjørn Erik Pedersen [Tue, 26 Mar 2019 09:28:02 +0000 (10:28 +0100)]
hugolib: Add a test for home page with no title

See #5784

6 years agoAvoid nilpointer on no File on Page
Bjørn Erik Pedersen [Mon, 25 Mar 2019 17:18:34 +0000 (18:18 +0100)]
Avoid nilpointer on no File on Page

Fixes #5781

6 years agoherrors/errors: Improve the "feature not available" error
Bjørn Erik Pedersen [Tue, 26 Mar 2019 09:15:57 +0000 (10:15 +0100)]
herrors/errors: Improve the "feature not available" error

6 years agohugolib: Add String() to fileInfo
Bjørn Erik Pedersen [Mon, 25 Mar 2019 07:25:29 +0000 (08:25 +0100)]
hugolib: Add String() to fileInfo

See #5784

6 years agoresources/page: Re-introduce .Page.Page
Bjørn Erik Pedersen [Mon, 25 Mar 2019 06:54:10 +0000 (07:54 +0100)]
resources/page: Re-introduce .Page.Page

It was removed in 597e418cb02883418f2cebb41400e8e61413f651 -- it's not documented, but it's used in too many real sites on the web.

See #5784

6 years agoall: Apply staticcheck recommendations
Bjørn Erik Pedersen [Sun, 24 Mar 2019 09:11:16 +0000 (10:11 +0100)]
all: Apply staticcheck recommendations

6 years agohugolib: Remove unused slice
Bjørn Erik Pedersen [Sun, 24 Mar 2019 09:08:19 +0000 (10:08 +0100)]
hugolib: Remove unused slice

6 years agoRun gofmt -s
Bjørn Erik Pedersen [Sat, 23 Mar 2019 19:15:06 +0000 (20:15 +0100)]
Run gofmt -s

6 years agoMake Page an interface
Bjørn Erik Pedersen [Wed, 2 Jan 2019 11:33:26 +0000 (12:33 +0100)]
Make Page an interface

The main motivation of this commit is to add a `page.Page` interface to replace the very file-oriented `hugolib.Page` struct.
This is all a preparation step for issue  #5074, "pages from other data sources".

But this also fixes a set of annoying limitations, especially related to custom output formats, and shortcodes.

Most notable changes:

* The inner content of shortcodes using the `{{%` as the outer-most delimiter will now be sent to the content renderer, e.g. Blackfriday.
  This means that any markdown will partake in the global ToC and footnote context etc.
* The Custom Output formats are now "fully virtualized". This removes many of the current limitations.
* The taxonomy list type now has a reference to the `Page` object.
  This improves the taxonomy template `.Title` situation and make common template constructs much simpler.

See #5074
Fixes #5763
Fixes #5758
Fixes #5090
Fixes #5204
Fixes #4695
Fixes #5607
Fixes #5707
Fixes #5719
Fixes #3113
Fixes #5706
Fixes #5767
Fixes #5723
Fixes #5769
Fixes #5770
Fixes #5771
Fixes #5759
Fixes #5776
Fixes #5777
Fixes #5778

6 years agoList future and expired dates in CSV format
Daniel Compton [Thu, 21 Feb 2019 01:34:32 +0000 (14:34 +1300)]
List future and expired dates in CSV format

It is useful to see the date that a post will be published, or the date
that it has expired, to build tooling around it. This commit writes
posts and their publish/expired date as CSV.

Fixes #5610

6 years agoUpdate to Go 1.12.1 and Go 1.11.6
Bjørn Erik Pedersen [Sun, 17 Mar 2019 07:37:42 +0000 (08:37 +0100)]
Update to Go 1.12.1 and Go 1.11.6

Fixes #5755

6 years agotpl/tplimpl: Fix mutex unlock
Bjørn Erik Pedersen [Sat, 16 Mar 2019 08:40:27 +0000 (09:40 +0100)]
tpl/tplimpl: Fix mutex unlock

6 years agocommands: Fix doLiveReload logic
Bjørn Erik Pedersen [Thu, 14 Mar 2019 20:39:00 +0000 (21:39 +0100)]
commands: Fix doLiveReload logic

Fixes #5754

6 years agodeps: Update Viper
Bjørn Erik Pedersen [Wed, 13 Mar 2019 09:42:43 +0000 (10:42 +0100)]
deps: Update Viper

6 years agohugolib: Adjust site benchmark
Bjørn Erik Pedersen [Tue, 12 Mar 2019 19:27:50 +0000 (20:27 +0100)]
hugolib: Adjust site benchmark

Having all the pages with shortcodes isn't realistic.

6 years agoUpdate to Go 1.12
Bjørn Erik Pedersen [Thu, 7 Mar 2019 09:26:26 +0000 (10:26 +0100)]
Update to Go 1.12

Fixes #5716

6 years agoRemove Gitter dev chat link
Bjørn Erik Pedersen [Wed, 6 Mar 2019 23:37:50 +0000 (00:37 +0100)]
Remove Gitter dev chat link

Almost every question we get there belong on https://discourse.gohugo.io/

6 years agotpl/tplimpl: Fix template truth logic
Bjørn Erik Pedersen [Wed, 6 Mar 2019 08:07:49 +0000 (09:07 +0100)]
tpl/tplimpl: Fix template truth logic

Before this commit, due to a bug in Go's `text/template` package, this would print different output for typed nil interface values:

```
{{ if .AuthenticatedUser }}User is authenticated!{{ else }}{{ end }}
{{ if not .AuthenticatedUser }}{{ else }}}User is authenticated!{{ end }}
```

This commit works around this by wrapping every `if` and `with` with a custom `getif` template func with truth logic that matches `not`, `and` and `or`.

Those 3 template funcs from Go's stdlib are now pulled into Hugo's source tree and adjusted to support custom zero values, e.g. types that implement `IsZero`.

This means that you can now do:

```
{{ with .Date }}{{ . }}{{ end }}
```

And it would work as expected.

Fixes #5738

6 years agoUpdate Travis config to work for forked builds
grahamjamesaddis [Tue, 5 Mar 2019 13:26:49 +0000 (13:26 +0000)]
Update Travis config to work for forked builds

6 years agoAdd skipHTML option to blackfriday config
arrtchiu [Mon, 4 Mar 2019 10:27:18 +0000 (18:27 +0800)]
Add skipHTML option to blackfriday config

6 years agoUpdate stretchr/testify to 1.3.0.
Elliott Sales de Andrade [Sat, 2 Mar 2019 06:21:48 +0000 (01:21 -0500)]
Update stretchr/testify to 1.3.0.

6 years agoRewrite relative action URLS
Berin Larson [Tue, 26 Feb 2019 08:11:06 +0000 (13:41 +0530)]
Rewrite relative action URLS

Fixes #5701

6 years agoSupport Docker args TAGS, WORKDIR, CGO; speed up repetitive builds
Anthony Metzidis [Thu, 7 Feb 2019 01:01:26 +0000 (17:01 -0800)]
Support Docker args TAGS, WORKDIR, CGO; speed up repetitive builds

6 years agohugolib: Adjust test for Go 1.12
Bjørn Erik Pedersen [Tue, 19 Feb 2019 20:47:03 +0000 (21:47 +0100)]
hugolib: Adjust test for Go 1.12

6 years agoSupport nested keys/fields with missing values with the `where` function
Anton Harniakou [Sun, 3 Feb 2019 11:03:44 +0000 (14:03 +0300)]
Support nested keys/fields with missing values with the `where` function

Before this commit `where` would produce an error and bail building the
site. Now, `where` simply skips an element of a collection and does not
add it to the final result.

Closes #5637
Closes #5416

6 years agocommands: Update debouncer version
Bjørn Erik Pedersen [Sat, 2 Feb 2019 11:04:42 +0000 (12:04 +0100)]
commands: Update debouncer version

6 years agocommon/herrors: Fix args order in strings.TrimPrefix
Iskander (Alex) Sharipov [Sat, 2 Feb 2019 07:19:12 +0000 (10:19 +0300)]
common/herrors: Fix args order in strings.TrimPrefix

Old code always returned "." or "" (if filepath.Ext(filename) returned ".").
Now it properly trims the prefix.

Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
6 years agotpl: Fix strings.HasPrefix args order
Iskander (Alex) Sharipov [Sat, 2 Feb 2019 00:26:05 +0000 (03:26 +0300)]
tpl: Fix strings.HasPrefix args order

6 years agoreleaser: Prepare repository for 0.55.0-DEV
hugoreleaser [Fri, 1 Feb 2019 09:42:55 +0000 (09:42 +0000)]
releaser: Prepare repository for 0.55.0-DEV

[ci skip]

6 years agoreleaser: Add release notes to /docs for release of 0.54.0 v0.54.0
hugoreleaser [Fri, 1 Feb 2019 09:40:32 +0000 (09:40 +0000)]
releaser: Add release notes to /docs for release of 0.54.0

[ci skip]

6 years agoreleaser: Bump versions for release of 0.54.0
hugoreleaser [Fri, 1 Feb 2019 09:40:32 +0000 (09:40 +0000)]
releaser: Bump versions for release of 0.54.0

[ci skip]

6 years agoRelease 0.54.0
Bjørn Erik Pedersen [Fri, 1 Feb 2019 09:34:37 +0000 (10:34 +0100)]
Release 0.54.0

6 years agoreleaser: Add release notes draft for 0.54.0
hugoreleaser [Fri, 1 Feb 2019 09:31:43 +0000 (09:31 +0000)]
releaser: Add release notes draft for 0.54.0

Rename to *-ready.md to continue. [ci skip]

6 years agoreleaser: Adjust patch logic
Bjørn Erik Pedersen [Fri, 1 Feb 2019 09:09:14 +0000 (10:09 +0100)]
releaser: Adjust patch logic

See #5639

6 years agocommon/hugo: Use official semver even for main releases
Bjørn Erik Pedersen [Fri, 1 Feb 2019 08:44:12 +0000 (09:44 +0100)]
common/hugo: Use official semver even for main releases

Closes #5639