brevno-suite/hugo
7 years agoAdd a way to disable one or more languages
Bjørn Erik Pedersen [Thu, 25 Jan 2018 16:03:29 +0000 (17:03 +0100)]
Add a way to disable one or more languages

This commit adds a new config setting:

```toml
disableLanguages = ["fr"]
```

If this is a multilingual site:

* No site for the French language will be created
* French content pages will be ignored/not read
* The French language configuration (menus etc.) will also be ignored

This makes it possible to start translating new languages and turn it on when you're happy etc.

Fixes #4297
Fixed #4329

7 years agoFix "date" page param
Vas Sudanagunta [Fri, 26 Jan 2018 04:03:55 +0000 (23:03 -0500)]
Fix "date" page param

Add test coverage for all date type page params that shadow date type page variables.

Fixes #4323

7 years agoSupport pages without front matter
Vas Sudanagunta [Fri, 26 Jan 2018 03:54:15 +0000 (22:54 -0500)]
Support pages without front matter

* Page without front matter now treated same as a page with empty front matter.
* Test cases added to cover this and repro issue #4320.
* Type safety of front matter code improved.

Fixes #4320

7 years agoAdd page metadata dates tests
Vas Sudanagunta [Wed, 24 Jan 2018 14:21:55 +0000 (09:21 -0500)]
Add page metadata dates tests

7 years agohugolib: Remove unused code
Bjørn Erik Pedersen [Thu, 25 Jan 2018 16:08:18 +0000 (17:08 +0100)]
hugolib: Remove unused code

7 years agohugolib, output: Fix robots.txt in multihost mode
Bjørn Erik Pedersen [Thu, 25 Jan 2018 09:36:53 +0000 (10:36 +0100)]
hugolib, output: Fix robots.txt in multihost mode

Fixes #4193

7 years agodocs: Re-generate CLI docs
Bjørn Erik Pedersen [Thu, 25 Jan 2018 09:24:59 +0000 (10:24 +0100)]
docs: Re-generate CLI docs

7 years agoRemove and update deprecation status
Bjørn Erik Pedersen [Thu, 25 Jan 2018 08:58:55 +0000 (09:58 +0100)]
Remove and update deprecation status

7 years agooutput: Remove duplicate layout lookup layouts
Bjørn Erik Pedersen [Thu, 25 Jan 2018 08:37:05 +0000 (09:37 +0100)]
output: Remove duplicate layout lookup layouts

This can happen for sections if Type and Section are equal.

Of no real practical difference, but it makes the docs less confusing.

Fixes #4319

7 years agohugolib: Add the last lookup variant for the GetPage index
Bjørn Erik Pedersen [Wed, 24 Jan 2018 12:36:06 +0000 (13:36 +0100)]
hugolib: Add the last lookup variant for the GetPage index

Now, even for nun-bundles it is possible to do lookup without path or extension.

So, given `blog/my-blog-post.en.md` these lookups will succeed:

* `blog/my-blog-post.en.md`
* `blog/my-blog-post`
* `my-blog-post.en.md`
* `my-blog-post`

See #4312
See https://github.com/gohugoio/hugoDocs/issues/307

7 years agogithub: Shorten the stale setup
Bjørn Erik Pedersen [Wed, 24 Jan 2018 09:41:37 +0000 (10:41 +0100)]
github: Shorten the stale setup

7 years agoresource: Fix typo in comment
Alexey Grachov [Wed, 24 Jan 2018 09:24:21 +0000 (11:24 +0200)]
resource: Fix typo in comment

7 years agohugolib: Simplify bundle lookup via .Site.GetPage, ref, relref
Bjørn Erik Pedersen [Wed, 24 Jan 2018 08:47:30 +0000 (09:47 +0100)]
hugolib: Simplify bundle lookup via .Site.GetPage, ref, relref

Given a bundle in `blog/my-bundle/index.en.md` all of these will now worK:

* `blog/my-bundle/index.en.md`
* `blog/my-bundle/index`
* `blog/my-bundle`
* `my-bundle`

The last one is potentially ambigous.

Fixes #4312

7 years agoAdd a GetPage to the site benchmarks
Bjørn Erik Pedersen [Wed, 24 Jan 2018 08:08:26 +0000 (09:08 +0100)]
Add a GetPage to the site benchmarks

7 years agoAdd headless bundle support
Bjørn Erik Pedersen [Tue, 23 Jan 2018 13:02:54 +0000 (14:02 +0100)]
Add headless bundle support

This commit adds  support for `headless bundles` for the `index` bundle type.

So:

```toml
headless = true
```

In front matter means that

* It will have no `Permalink` and no rendered HTML in /public
* It will not be part of `.Site.RegularPages` etc.

But you can get it by:

* `.Site.GetPage ...`

The use cases are many:

* Shared media galleries
* Reusable page content "snippets"
* ...

Fixes #4311

7 years agoMerge matching resources params maps
Bjørn Erik Pedersen [Tue, 23 Jan 2018 09:02:44 +0000 (10:02 +0100)]
Merge matching resources params maps

This allows setting default params values in the more general resource matchers. I also allows override with more specific values if needed.

```toml
[[resources]]
src = "documents/photo_specs.pdf"
title = "Photo Specifications"
[resources.params]
ref = 90564687
icon = "photo"
[[resources]]
src = "documents/guide.pdf"
title = "Instruction Guide"
[resources.params]
ref = 90564568
[[resources]]
src = "documents/checklist.pdf"
title = "Document Checklist"
[resources.params]
ref = 90564572
[[resources]]
src = "documents/payment.docx"
title = "Proof of Payment"
[[resources]]
src = "documents/*.pdf"
title = "PDF file"
[resources.params]
icon = "pdf"
[[resources]]
src = "documents/*.docx"
title = "Word document"
[resources.params]
icon = "word"

```

In the above `TOML` example, `photo_specs.pdf` will get the `photo` icon, the other pdf files will get the default `pdf` icon.

Note that in the example above, the order matters: It will take the first value for a given params key, title or name that it finds.

Fixes #4315

7 years agoAdd some general code contribution criterias
Bjørn Erik Pedersen [Tue, 23 Jan 2018 12:33:51 +0000 (13:33 +0100)]
Add some general code contribution criterias

7 years agotravis: Disable macOS builds for now
Bjørn Erik Pedersen [Tue, 23 Jan 2018 11:59:40 +0000 (12:59 +0100)]
travis: Disable macOS builds for now

Travis have not been able to build those the last week or so.

7 years agohelpers: Avoid unescape in highlight
Bjørn Erik Pedersen [Tue, 23 Jan 2018 08:48:04 +0000 (09:48 +0100)]
helpers: Avoid unescape in highlight

Fixes #4219

7 years agoTighten page kind logic, introduce tests
Vas Sudanagunta [Sun, 21 Jan 2018 19:40:58 +0000 (14:40 -0500)]
Tighten page kind logic, introduce tests

7 years agoreleaser: Prepare repository for 0.35-DEV
hugoreleaser [Mon, 22 Jan 2018 12:08:54 +0000 (12:08 +0000)]
releaser: Prepare repository for 0.35-DEV

[ci skip]

7 years agoreleaser: Add release notes to /docs for release of 0.34 v0.34
hugoreleaser [Mon, 22 Jan 2018 12:06:38 +0000 (12:06 +0000)]
releaser: Add release notes to /docs for release of 0.34

[ci skip]

7 years agoreleaser: Bump versions for release of 0.34
hugoreleaser [Mon, 22 Jan 2018 12:06:38 +0000 (12:06 +0000)]
releaser: Bump versions for release of 0.34

[ci skip]

7 years agoRelease 0.34
Bjørn Erik Pedersen [Mon, 22 Jan 2018 11:58:55 +0000 (12:58 +0100)]
Release 0.34

7 years agoreleaser: Add release notes draft for 0.34
hugoreleaser [Mon, 22 Jan 2018 10:40:52 +0000 (10:40 +0000)]
releaser: Add release notes draft for 0.34

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

7 years agoresource: Avoid some strings.ToLower in globbing
Bjørn Erik Pedersen [Mon, 22 Jan 2018 10:29:02 +0000 (11:29 +0100)]
resource: Avoid some strings.ToLower in globbing

See #4301

7 years agoreleaser: Fix BuildDate in release binaries
Bjørn Erik Pedersen [Mon, 22 Jan 2018 10:21:58 +0000 (11:21 +0100)]
releaser: Fix BuildDate in release binaries

Fixes #4299

7 years agoresource: Add Match and GetMatch
Bjørn Erik Pedersen [Sat, 20 Jan 2018 17:07:41 +0000 (18:07 +0100)]
resource: Add Match and GetMatch

These methods takes a glob pattern as argument:

* by default matching from the bundle root
* matching is case insensitive and the separator is Unix style slashes: "/"
* the bundle root does (by default) not start with a leading slash
* if you renames the `Name` for the rsource in front matter (`src=...`), then that is the value used in `Match`.
* double asterisk matches beyond directory borders, so "**.jpg" will match any JPEG image in the bundle

See https://github.com/gobwas/glob

This commit also deprecates `ByPrefix` and `GetByPrefix`.

This should also be more effective, given a fair amount of reuse of the glob patterns:

```bash
BenchmarkResourcesByPrefix-4         300000          4284 ns/op        1130 B/op           7 allocs/op
BenchmarkResourcesMatch-4            300000          5220 ns/op         505 B/op           3 allocs/op
```

Fixes #4301

7 years agohugolib: Fix handling of pages bundled in sub-folders in ByPrefix etc.
Bjørn Erik Pedersen [Sat, 20 Jan 2018 16:11:03 +0000 (17:11 +0100)]
hugolib: Fix handling of pages bundled in sub-folders in ByPrefix etc.

Fixes #4295

7 years agooutput: Add some more layout docshelper variants
Bjørn Erik Pedersen [Fri, 19 Jan 2018 10:39:34 +0000 (11:39 +0100)]
output: Add some more layout docshelper variants

7 years agohugolib: Add validation for defaultContentLanguage
Bjørn Erik Pedersen [Fri, 19 Jan 2018 07:24:10 +0000 (08:24 +0100)]
hugolib: Add validation for defaultContentLanguage

When `languages` are defined, then `defaultContentLanguage` must match one of those.

Fixes #4298

7 years agoreleaser: Prepare repository for 0.34-DEV
hugoreleaser [Thu, 18 Jan 2018 10:16:12 +0000 (10:16 +0000)]
releaser: Prepare repository for 0.34-DEV

[ci skip]

7 years agoreleaser: Add release notes to /docs for release of 0.33 v0.33
hugoreleaser [Thu, 18 Jan 2018 10:13:30 +0000 (10:13 +0000)]
releaser: Add release notes to /docs for release of 0.33

[ci skip]

7 years agoreleaser: Bump versions for release of 0.33
hugoreleaser [Thu, 18 Jan 2018 10:13:30 +0000 (10:13 +0000)]
releaser: Bump versions for release of 0.33

[ci skip]

7 years agoRelease 0.33
Bjørn Erik Pedersen [Thu, 18 Jan 2018 09:56:35 +0000 (10:56 +0100)]
Release 0.33

7 years agoreleaser: Add release notes draft for 0.33
hugoreleaser [Thu, 18 Jan 2018 09:24:11 +0000 (09:24 +0000)]
releaser: Add release notes draft for 0.33

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

7 years agooutput: Redo the docshelper layouts examples
Bjørn Erik Pedersen [Thu, 18 Jan 2018 09:16:21 +0000 (10:16 +0100)]
output: Redo the docshelper layouts examples

7 years agoMerge commit '3cf4300097610bb8b5bd0686d96d1df5db641895'
Bjørn Erik Pedersen [Wed, 17 Jan 2018 21:33:07 +0000 (22:33 +0100)]
Merge commit '3cf4300097610bb8b5bd0686d96d1df5db641895'

7 years agoSquashed 'docs/' changes from ddb7d8fae..56c34962c
Bjørn Erik Pedersen [Wed, 17 Jan 2018 21:31:25 +0000 (22:31 +0100)]
Squashed 'docs/' changes from ddb7d8fae..56c34962c

56c34962c Fix multilingual config examples
14fa0b4ed Release 0.32.4
18779d54a releaser: Add release notes to /docs for release of 0.32.4
0d47d0673 releaser: Bump versions for release of 0.32.4
424acf02e Release 0.32.3
f6f04e084 releaser: Prepare repository for 0.33-DEV
1a9b36286 releaser: Add release notes to /docs for release of 0.32.3
9284c3284 releaser: Bump versions for release of 0.32.3
796082289 Fix min Go version in installing
74625a654 Add alias to multilingual.md
bf65732b4 Add some new tweets to the front page
7f263353e Bump Netlify to 0.32.2
cbb3a4f1c Update 0.32.2 release notes
e90ae4b4e releaser: Prepare repository for 0.33-DEV
ee74a8f4f releaser: Add release notes to /docs for release of 0.32.2
d889c4fa4 releaser: Bump versions for release of 0.32.2
4a46d3aca Merge commit 'eb738cd35cca1ffc68c5ed688dbe2a19108e8761'
b98d95ff2 releaser: Prepare repository for 0.33-DEV

git-subtree-dir: docs
git-subtree-split: 56c34962c92706792231fd5056d33186b11c4e33

7 years agoImprove .Site.GetPage for regular translated pages
Bjørn Erik Pedersen [Wed, 17 Jan 2018 18:26:34 +0000 (19:26 +0100)]
Improve .Site.GetPage for regular translated pages

You can still use the full path with extensions, but to get the current language version:

* If the content file lives in `/content/blog/mypost.en.md`
* Use `.Site.GetPage "page" "blog/mypost"`

Fixes #4285

7 years agoresource: Use path.Match instead of filepath.Match
Bjørn Erik Pedersen [Wed, 17 Jan 2018 19:47:35 +0000 (20:47 +0100)]
resource: Use path.Match instead of filepath.Match

They behave similar, but it is a path we're matching.

See #4244

7 years agoresource: Add front matter metadata to Resource
Bjørn Erik Pedersen [Mon, 15 Jan 2018 19:40:39 +0000 (20:40 +0100)]
resource: Add front matter metadata to Resource

This commit expands the Resource interface with 3 new methods:

* Name
* Title
* Params

All of these can be set in the Page front matter. `Name` will get its default value from the base filename, and is the value used in the ByPrefix and GetByPrefix lookup methods.

Fixes #4244

7 years agoUpdate Afero to avoid panic on "file name is too long"
Bjørn Erik Pedersen [Mon, 15 Jan 2018 19:33:03 +0000 (20:33 +0100)]
Update Afero to avoid panic on "file name is too long"

Fixes #4240

7 years agoresource: Fix handling of very long image file names
Bjørn Erik Pedersen [Mon, 15 Jan 2018 19:22:14 +0000 (20:22 +0100)]
resource: Fix handling of very long image file names

Fixes #4261

7 years agocommands: And now really fix the server watch logic
Bjørn Erik Pedersen [Mon, 15 Jan 2018 09:02:17 +0000 (10:02 +0100)]
commands: And now really fix the server watch logic

See #4275

7 years agocommands: Fix server without watch
Bjørn Erik Pedersen [Sun, 14 Jan 2018 19:58:52 +0000 (20:58 +0100)]
commands: Fix server without watch

This was broken in Hugo 0.30.

Fixes #4275

7 years agoUpdate Chroma and other third-party deps
Bjørn Erik Pedersen [Sun, 14 Jan 2018 19:32:42 +0000 (20:32 +0100)]
Update Chroma and other third-party deps

Fixes #4267

7 years agocommands: Remove superflous BuildDate logic
Bjørn Erik Pedersen [Sun, 14 Jan 2018 19:08:28 +0000 (20:08 +0100)]
commands: Remove superflous BuildDate logic

Fixes #4272

7 years agolayout: Respect Type and Layout for list template selection
Bjørn Erik Pedersen [Sat, 13 Jan 2018 16:21:42 +0000 (17:21 +0100)]
layout: Respect Type and Layout for list template selection

This commit also has some other nice side-effects:

* The layout logic is unified for all page types, which should make it less surprising
* Page.Render now supports all types
* The legacy "indexes" type is removed from the template lookup order. This is an undocumented type from early Hugo days. This means that having a template in, say, `/layouts/indexes/list.html` will no longer work.
* The theme override logic is improved. As an example, an `index.html` in theme will now wn over a `_default/list.html` in the project, which most will expect.

Fixes #3005
Fixes #3245

7 years agoRun benchmarks 3 times
Bjørn Erik Pedersen [Sat, 13 Jan 2018 23:49:01 +0000 (00:49 +0100)]
Run benchmarks 3 times

7 years agoresource: Add some GoDoc
Bjørn Erik Pedersen [Fri, 12 Jan 2018 23:08:21 +0000 (00:08 +0100)]
resource: Add some GoDoc

7 years agohugolib: Allow url in front matter for list type pages
Bjørn Erik Pedersen [Fri, 12 Jan 2018 16:17:10 +0000 (17:17 +0100)]
hugolib: Allow url in front matter for list type pages

This enables some potential foot-shooting, but is needed for some special URL requirements.

Fixes #4263

7 years agoresource: Implement Resources.ByPrefix
Bjørn Erik Pedersen [Fri, 12 Jan 2018 17:06:35 +0000 (18:06 +0100)]
resource: Implement Resources.ByPrefix

Fixes #4266

7 years agoresource: Make GetByPrefix work for Page resources
Bjørn Erik Pedersen [Fri, 12 Jan 2018 16:46:50 +0000 (17:46 +0100)]
resource: Make GetByPrefix work for Page resources

Fixes #4264

7 years agoSupport uglyURLs per section
Bjørn Erik Pedersen [Thu, 11 Jan 2018 16:46:43 +0000 (17:46 +0100)]
Support uglyURLs per section

Fixes #4256

7 years agoresource: Make .Resources.GetByPrefix case insensitive
Bjørn Erik Pedersen [Thu, 11 Jan 2018 17:58:53 +0000 (18:58 +0100)]
resource: Make .Resources.GetByPrefix case insensitive

Fixes #4258

7 years agoUpdate CONTRIBUTING.md
Vas Sudanagunta [Wed, 3 Jan 2018 01:22:37 +0000 (20:22 -0500)]
Update CONTRIBUTING.md

7 years agoSupport offline builds
Vas Sudanagunta [Wed, 3 Jan 2018 01:19:16 +0000 (20:19 -0500)]
Support offline builds

7 years agoreleaser: Prepare repository for 0.33-DEV
hugoreleaser [Thu, 11 Jan 2018 09:00:51 +0000 (09:00 +0000)]
releaser: Prepare repository for 0.33-DEV

[ci skip]

7 years agoreleaser: Add release notes to /docs for release of 0.32.4 v0.32.4
hugoreleaser [Thu, 11 Jan 2018 08:58:01 +0000 (08:58 +0000)]
releaser: Add release notes to /docs for release of 0.32.4

[ci skip]

7 years agoreleaser: Bump versions for release of 0.32.4
hugoreleaser [Thu, 11 Jan 2018 08:58:01 +0000 (08:58 +0000)]
releaser: Bump versions for release of 0.32.4

[ci skip]

7 years agoRelease 0.32.4
Bjørn Erik Pedersen [Thu, 11 Jan 2018 08:52:32 +0000 (09:52 +0100)]
Release 0.32.4

7 years agoreleaser: Add release notes draft for 0.32.4
hugoreleaser [Thu, 11 Jan 2018 08:48:10 +0000 (08:48 +0000)]
releaser: Add release notes draft for 0.32.4

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

7 years agoreleaser: Git info bounds checking
Bjørn Erik Pedersen [Thu, 11 Jan 2018 08:39:42 +0000 (09:39 +0100)]
releaser: Git info bounds checking

7 years agoresource: Remove superflous comment
Bjørn Erik Pedersen [Thu, 11 Jan 2018 08:17:48 +0000 (09:17 +0100)]
resource: Remove superflous comment

7 years agoCorrect fix for --cleanDestinationDir flag
Alexander Borsuk [Wed, 10 Jan 2018 15:55:22 +0000 (18:55 +0300)]
Correct fix for --cleanDestinationDir flag

Fixes #4246
Fixes #4248

7 years agoRevert "Remove the --cleanDestinationDir flag", there is a better fix.
Alexander Borsuk [Wed, 10 Jan 2018 15:53:40 +0000 (18:53 +0300)]
Revert "Remove the --cleanDestinationDir flag", there is a better fix.

This reverts commit 768ec5df9fa8f91610ee80a9e6194f94a7dbe117.

7 years agoFix non-ASCII path handling for Page resources
Bjørn Erik Pedersen [Wed, 10 Jan 2018 09:20:08 +0000 (10:20 +0100)]
Fix non-ASCII path handling for Page resources

Fixes #4241

7 years agoRemove the --cleanDestinationDir flag
Bjørn Erik Pedersen [Wed, 10 Jan 2018 08:34:40 +0000 (09:34 +0100)]
Remove the --cleanDestinationDir flag

This is no longer supported. Since Hugo 0.32 we do static sync and build in parallel.

Closes #4246

7 years agoreleaser: Prepare repository for 0.33-DEV
hugoreleaser [Mon, 8 Jan 2018 11:12:41 +0000 (11:12 +0000)]
releaser: Prepare repository for 0.33-DEV

[ci skip]

7 years agoreleaser: Add release notes to /docs for release of 0.32.3 v0.32.3
hugoreleaser [Mon, 8 Jan 2018 11:10:08 +0000 (11:10 +0000)]
releaser: Add release notes to /docs for release of 0.32.3

[ci skip]

7 years agoreleaser: Bump versions for release of 0.32.3
hugoreleaser [Mon, 8 Jan 2018 11:10:08 +0000 (11:10 +0000)]
releaser: Bump versions for release of 0.32.3

[ci skip]

7 years agoRelease 0.32.2
Bjørn Erik Pedersen [Mon, 8 Jan 2018 11:05:52 +0000 (12:05 +0100)]
Release 0.32.2

7 years agoreleaser: Add release notes draft for 0.32.3
hugoreleaser [Mon, 8 Jan 2018 10:57:07 +0000 (10:57 +0000)]
releaser: Add release notes draft for 0.32.3

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

7 years agohugolib: Fix handling of mixed-case taxonomy folders with content file
Bjørn Erik Pedersen [Mon, 8 Jan 2018 09:03:07 +0000 (10:03 +0100)]
hugolib: Fix handling of mixed-case taxonomy folders with content file

* We match by path vs taxonomy to determine if we have a content page for that taxonomy
* The taxonomy name is (if `preserveTaxonomyNames` is not set) normalized to `maxmustermann` while you have the disk folder called `MaxMustermann`.
* This isn't a new issue, but I suspect most people will just name the folder `authors/maxmustermann` and it will just work.
* The inconsistent behaviour you see here is that you will end up with two pages with the same target filename, so it is a little random who will win.

This fixes that by also normalizing the taxonomy path when doing the comparison.

Fixes #4238

7 years agoresource: Avoid processing and storing same image for each language
Bjørn Erik Pedersen [Sun, 7 Jan 2018 10:29:02 +0000 (11:29 +0100)]
resource: Avoid processing and storing same image for each language

Fixes #4231

7 years agoresource: Resources.ByType should return Resources
Bjørn Erik Pedersen [Sun, 7 Jan 2018 09:53:45 +0000 (10:53 +0100)]
resource: Resources.ByType should return Resources

Currently it returns []Resource.

This way the invocations can be nested.

Fixes #4234

7 years agoFix multihost detection for sites without language definition
Bjørn Erik Pedersen [Sat, 6 Jan 2018 17:42:32 +0000 (18:42 +0100)]
Fix multihost detection for sites without language definition

Static content was wrongly put into the lang-code subfolder.

Fixes #4221

7 years agocommands: Report build time on config.toml change
Bjørn Erik Pedersen [Sat, 6 Jan 2018 09:54:16 +0000 (10:54 +0100)]
commands: Report build time on config.toml change

Fixes #4232
See #4224

7 years agoFix hugo benchmark --renderToMemory
Bjørn Erik Pedersen [Sat, 6 Jan 2018 09:37:04 +0000 (10:37 +0100)]
Fix hugo benchmark --renderToMemory

Fixes #4218

7 years agoFix URLs for bundle resources in multihost mode
Bjørn Erik Pedersen [Fri, 5 Jan 2018 11:01:13 +0000 (12:01 +0100)]
Fix URLs for bundle resources in multihost mode

Fixes #4217

7 years agoFix sub-folder baseURL handling for Page resources
Bjørn Erik Pedersen [Fri, 5 Jan 2018 10:07:50 +0000 (11:07 +0100)]
Fix sub-folder baseURL handling for Page resources

I.e. images etc.

Fixes #4228

7 years agoreleaser: Prepare repository for 0.33-DEV
hugoreleaser [Wed, 3 Jan 2018 09:56:18 +0000 (09:56 +0000)]
releaser: Prepare repository for 0.33-DEV

[ci skip]

7 years agoreleaser: Add release notes to /docs for release of 0.32.2 v0.32.2
hugoreleaser [Wed, 3 Jan 2018 09:54:04 +0000 (09:54 +0000)]
releaser: Add release notes to /docs for release of 0.32.2

[ci skip]

7 years agoreleaser: Bump versions for release of 0.32.2
hugoreleaser [Wed, 3 Jan 2018 09:54:04 +0000 (09:54 +0000)]
releaser: Bump versions for release of 0.32.2

[ci skip]

7 years agoRelease 0.32.2
Bjørn Erik Pedersen [Wed, 3 Jan 2018 09:50:57 +0000 (10:50 +0100)]
Release 0.32.2

7 years agoreleaser: Add release notes draft for 0.32.2
hugoreleaser [Wed, 3 Jan 2018 09:49:11 +0000 (09:49 +0000)]
releaser: Add release notes draft for 0.32.2

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

7 years agoresource: Handle publish to /public on fresh build
Bjørn Erik Pedersen [Wed, 3 Jan 2018 09:28:16 +0000 (10:28 +0100)]
resource: Handle publish to /public on fresh build

Fixes #4213

7 years agoMerge commit 'eb738cd35cca1ffc68c5ed688dbe2a19108e8761'
Bjørn Erik Pedersen [Wed, 3 Jan 2018 09:19:56 +0000 (10:19 +0100)]
Merge commit 'eb738cd35cca1ffc68c5ed688dbe2a19108e8761'

7 years agoSquashed 'docs/' changes from fc61378a3..ddb7d8fae
Bjørn Erik Pedersen [Wed, 3 Jan 2018 09:16:56 +0000 (10:16 +0100)]
Squashed 'docs/' changes from fc61378a3..ddb7d8fae

ddb7d8fae Fix spelling in error message
84f7e09ff Add an "sharing image" to the 0.32 doc
a6d39884c Add image processing examples
717e25400 Release 0.32.1
07a4fc1c1 Merge branch 'temp321'
401ed894b releaser: Add release notes to /docs for release of 0.32.1
aa040d965 releaser: Bump versions for release of 0.32.1
6d22558ec Close shortcode
442afa7f5 Add a link to the 0.32 HOWTO with a searchable title
9a9a7e475 Add a note about the shortcode issue
76d731ce2 Add title etc. to release notes
eac596de8 Release v0.32
ede3e25dc Merge branch 'tmp32'
c92f1701b releaser: Prepare repository for 0.33-DEV
e498e97f9 releaser: Add release notes to /docs for release of 0.32
1d476fc59 Fix typo
9bac78a2f Merge commit 'f3cd083961f36dc96d05e98aaf67f650102bc757'
7d8c78391 Add Pandoc support, refactor external helpers

git-subtree-dir: docs
git-subtree-split: ddb7d8fae07ee8813652d20829d606dd6637f0a9

7 years agoreleaser: Prepare repository for 0.33-DEV
hugoreleaser [Tue, 2 Jan 2018 09:10:11 +0000 (09:10 +0000)]
releaser: Prepare repository for 0.33-DEV

[ci skip]

7 years agoreleaser: Add release notes to /docs for release of 0.32.1 v0.32.1
hugoreleaser [Tue, 2 Jan 2018 09:07:55 +0000 (09:07 +0000)]
releaser: Add release notes to /docs for release of 0.32.1

[ci skip]

7 years agoreleaser: Bump versions for release of 0.32.1
hugoreleaser [Tue, 2 Jan 2018 09:07:55 +0000 (09:07 +0000)]
releaser: Bump versions for release of 0.32.1

[ci skip]

7 years agoRelease Hugo 0.32.1
Bjørn Erik Pedersen [Tue, 2 Jan 2018 09:04:21 +0000 (10:04 +0100)]
Release Hugo 0.32.1

7 years agoreleaser: Add release notes draft for 0.32.1
hugoreleaser [Tue, 2 Jan 2018 08:59:40 +0000 (08:59 +0000)]
releaser: Add release notes draft for 0.32.1

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

7 years agocommands: Fix broken hugo --renderToMemory
Bjørn Erik Pedersen [Tue, 2 Jan 2018 08:40:58 +0000 (09:40 +0100)]
commands: Fix broken hugo --renderToMemory

The `--renderToMemory` flag stopped working on `hugo` in 0.32.

Note that this is only useful for benchmark testing, as there is no easy way to actually view the result.

Fixes #4212

7 years agoresource: Use the correct Destination FS
Bjørn Erik Pedersen [Mon, 1 Jan 2018 13:28:19 +0000 (14:28 +0100)]
resource: Use the correct Destination FS

Source and destination will be the same when this happens, but it should be correct.

See #4202

7 years agoresource: Create target dir if not exists
Bjørn Erik Pedersen [Mon, 1 Jan 2018 13:23:51 +0000 (14:23 +0100)]
resource: Create target dir if not exists

This is the case where image processing is triggered from shortcodes, i.e. before the target page's folder in /public is created.

Fixes #4202

7 years agohugolib: Add test for image processing from shortcodes
Bjørn Erik Pedersen [Mon, 1 Jan 2018 10:07:23 +0000 (11:07 +0100)]
hugolib: Add test for image processing from shortcodes

See #4202

7 years agoreleaser: Prepare repository for 0.33-DEV
hugoreleaser [Sun, 31 Dec 2017 09:26:48 +0000 (09:26 +0000)]
releaser: Prepare repository for 0.33-DEV

[ci skip]