brevno-suite/hugo
6 years agoRelease 0.47.1
Bjørn Erik Pedersen [Mon, 20 Aug 2018 08:10:38 +0000 (10:10 +0200)]
Release 0.47.1

6 years agoreleaser: Add release notes draft for 0.47.1
hugoreleaser [Mon, 20 Aug 2018 08:06:27 +0000 (08:06 +0000)]
releaser: Add release notes draft for 0.47.1

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

6 years agotpl/tplimpl: Fix .Site.Params case regression
Bjørn Erik Pedersen [Sun, 19 Aug 2018 11:30:42 +0000 (13:30 +0200)]
tpl/tplimpl: Fix .Site.Params case regression

Fixes #5094

6 years agosnap: Remove unused files from Git, Perl, etc.
Anthony Fok [Sat, 18 Aug 2018 12:26:54 +0000 (06:26 -0600)]
snap: Remove unused files from Git, Perl, etc.

Snap size reduced from 46MB to 26MB.

6 years agosnap: Add nodejs to allow PostCSS to work
Anthony Fok [Sat, 18 Aug 2018 11:04:52 +0000 (05:04 -0600)]
snap: Add nodejs to allow PostCSS to work

See https://discourse.gohugo.io/t/snap-pipeline-error-with-postcss-environment-issue/13583

6 years agominifiers: Do not strip IE conditional statements
Bjørn Erik Pedersen [Sat, 18 Aug 2018 09:16:34 +0000 (11:16 +0200)]
minifiers: Do not strip IE conditional statements

Fixes #5089

6 years agoreleaser: Prepare repository for 0.48-DEV
hugoreleaser [Fri, 17 Aug 2018 09:17:44 +0000 (09:17 +0000)]
releaser: Prepare repository for 0.48-DEV

[ci skip]

6 years agoreleaser: Add release notes to /docs for release of 0.47 v0.47
hugoreleaser [Fri, 17 Aug 2018 09:15:18 +0000 (09:15 +0000)]
releaser: Add release notes to /docs for release of 0.47

[ci skip]

6 years agoreleaser: Bump versions for release of 0.47
hugoreleaser [Fri, 17 Aug 2018 09:15:18 +0000 (09:15 +0000)]
releaser: Bump versions for release of 0.47

[ci skip]

6 years agoreleaser: Work around a Goreleaser bug
Bjørn Erik Pedersen [Fri, 17 Aug 2018 08:58:18 +0000 (10:58 +0200)]
releaser: Work around a Goreleaser bug

Closes #4918

6 years agoRelease 0.47
Bjørn Erik Pedersen [Fri, 17 Aug 2018 08:27:18 +0000 (10:27 +0200)]
Release  0.47

6 years agoreleaser: Add release notes draft for 0.47
hugoreleaser [Fri, 17 Aug 2018 08:19:47 +0000 (08:19 +0000)]
releaser: Add release notes draft for 0.47

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

6 years agodocs: Regenerate CLI docs
Bjørn Erik Pedersen [Fri, 17 Aug 2018 08:12:19 +0000 (10:12 +0200)]
docs: Regenerate CLI docs

6 years agoMerge commit 'a95896878f4b4a79448b39ce93a4e0d3258b4a43'
Bjørn Erik Pedersen [Fri, 17 Aug 2018 08:09:42 +0000 (10:09 +0200)]
Merge commit 'a95896878f4b4a79448b39ce93a4e0d3258b4a43'

6 years agoSquashed 'docs/' changes from d88477eb3..9b494a58c
Bjørn Erik Pedersen [Fri, 17 Aug 2018 08:09:42 +0000 (10:09 +0200)]
Squashed 'docs/' changes from d88477eb3..9b494a58c

9b494a58c Add comma in example config
1c24f672d Update multilingual.md
8bf85bfe4 Cosmetic change to test GitInfo
3b53b54f9 Update installing.md
e3b8eb941 Get arolla-cocoon showcase ready for publishing
7b7931e59 Add  "Cocoon Arolla showcase"
c9cc7852c Add "scoop install hugo" for quick install on Windows
3037527fe Update Directory Structure following Hugo Pipes
dbecb967d Add `assetDir` key to config list
488d1d034 Remove alias.txt

git-subtree-dir: docs
git-subtree-split: 9b494a58cd96ec42a4fc63c389c01523d144e03f

6 years agotpl/tplimpl: Fix compiling Amber templates that import other templates
Steven Allen [Fri, 17 Aug 2018 08:04:07 +0000 (08:04 +0000)]
tpl/tplimpl: Fix compiling Amber templates that import other templates

Without this patch, amber would try to load templates from the OS filesystem
instead of the layouts virtual filesystem.

6 years agohugolib: Adjust tests for shortcode p-issue
Bjørn Erik Pedersen [Fri, 17 Aug 2018 07:01:02 +0000 (09:01 +0200)]
hugolib: Adjust tests for shortcode p-issue

See #1642

6 years agohugolib: Fix shortcode output wrapped in p
gllera [Fri, 17 Aug 2018 00:17:27 +0000 (02:17 +0200)]
hugolib: Fix shortcode output wrapped in p

Fixes #1642

6 years agoAdd configFile(s) back to the watch list after REMOVE event
Anthony Fok [Thu, 16 Aug 2018 02:51:27 +0000 (20:51 -0600)]
Add configFile(s) back to the watch list after REMOVE event

Fixes #4701

6 years agocommands: Gracefully handle typos in server config when running the server
Bjørn Erik Pedersen [Thu, 16 Aug 2018 10:30:03 +0000 (12:30 +0200)]
commands: Gracefully handle typos in server config when running the server

Fixes #5081

6 years agohugolib: Fix image cache-clearing for sub-languages
Bjørn Erik Pedersen [Thu, 16 Aug 2018 10:02:31 +0000 (12:02 +0200)]
hugolib: Fix image cache-clearing for sub-languages

Fixes #5084

6 years agohugolib: Force render of any changed page, even in Fast Render Mode
Bjørn Erik Pedersen [Thu, 16 Aug 2018 08:58:05 +0000 (10:58 +0200)]
hugolib: Force render of any changed page, even in Fast Render Mode

Fixes #5083

6 years agohugoblib: Fix "adding a bundle" in server mode
Bjørn Erik Pedersen [Wed, 15 Aug 2018 18:41:19 +0000 (20:41 +0200)]
hugoblib: Fix "adding a bundle" in server mode

Before this commit, the live reload logic in `hugo server` got confused when you dropped a new bundle into the project while the server was running. The workaround was to restart the server.

This commit fixes the "live reload bundle detection" in server mode, and also makes sure that the bundle headers are always processed first.

Fixes #5075

6 years agohugolib: Fix error when deleting a bundle in server mode
Bjørn Erik Pedersen [Wed, 15 Aug 2018 15:14:03 +0000 (17:14 +0200)]
hugolib: Fix error when deleting a bundle in server mode

Fixes #5077

6 years agoRevert "releaser: Revert to the old versions of the release pipeline"
Bjørn Erik Pedersen [Wed, 15 Aug 2018 07:32:17 +0000 (09:32 +0200)]
Revert "releaser: Revert to the old versions of the release pipeline"

This reverts commit 659917a002ebd3908dc46454881fa939b9e71a8e.

6 years agoreleaser: Fix goreleaser config
Carlos Alexandro Becker [Wed, 15 Aug 2018 07:31:56 +0000 (04:31 -0300)]
releaser: Fix goreleaser config

* fix: goreleaser nfpm artifact names
* fix: replacements
* fix: make both goreleaser yaml files more similar

Closes #5022

6 years agocommands: Include theme name in version mismatch error
Bjørn Erik Pedersen [Tue, 14 Aug 2018 19:21:39 +0000 (21:21 +0200)]
commands: Include theme name in version mismatch error

Fixes #5044

6 years agominifiers: Make the JS minifier matcher less specific
Bjørn Erik Pedersen [Tue, 14 Aug 2018 17:24:33 +0000 (19:24 +0200)]
minifiers: Make the JS minifier matcher less specific

Fixes #5073

6 years agohugolib: Use the interface value when doing Related search
Bjørn Erik Pedersen [Tue, 14 Aug 2018 16:19:45 +0000 (18:19 +0200)]
hugolib: Use the interface value when doing Related search

Currently it makes no practical difference, but this is more a protection if we in the future creates index from the content related fields. That will not work from a shortcode.

See #5071

6 years agohugolib: Fix Related when called from shortcode
Bjørn Erik Pedersen [Tue, 14 Aug 2018 16:11:36 +0000 (18:11 +0200)]
hugolib: Fix Related when called from shortcode

Fixes #5071

6 years agotpl/tplimpl: Reimplement the ".Params tolower" template transformer
Bjørn Erik Pedersen [Mon, 13 Aug 2018 18:50:07 +0000 (20:50 +0200)]
tpl/tplimpl: Reimplement the ".Params tolower" template transformer

All `.Params` are stored lowercase, but it should work to access them `.Page.camelCase` etc. There was, however, some holes in the logic with the old transformer.

This commit fixes that by applying a blacklist instead of the old whitelist logic. `.Param` is a very distinct key. The original case will be kept in `.Data.Params.myParam`, but other than that it will be lowercased.

Fixes #5068

6 years agoOnly duplicate resource output in multihost mode
Bjørn Erik Pedersen [Tue, 14 Aug 2018 10:04:17 +0000 (12:04 +0200)]
Only duplicate resource output in multihost mode

Yesterday's commit was a little too agressive.

This commit makes sure that the duplication of resources to public/en etc. is only performed in multihost mode.

See #5058

6 years agoFix Resource output in multihost setups
Bjørn Erik Pedersen [Mon, 13 Aug 2018 09:01:57 +0000 (11:01 +0200)]
Fix Resource output in multihost setups

In Hugo 0.46 we made the output of what you get from resources.Get and similar static, i.e. language agnostic. This makes total sense, as it is wasteful and time-consuming to do SASS/SCSS/PostCSS processing for lots of languages when the output is lots of duplicates with different filenames.

But since we now output the result once only, this had a negative side effect for multihost setups: We publish the resource once only to the root folder (i.e. not to the language "domain folder").

This commit removes the language code from the processed image keys. This creates less duplication in the file cache, but it means that you should do a `hugo --gc` to clean up stale files.

Fixes #5058

6 years agotpl: Suppress blank lines from opengraph internal template
Anthony Fok [Sun, 12 Aug 2018 18:25:41 +0000 (12:25 -0600)]
tpl: Suppress blank lines from opengraph internal template

6 years agopublisher: Close file when done
Bjørn Erik Pedersen [Sat, 11 Aug 2018 18:19:07 +0000 (20:19 +0200)]
publisher: Close file when done

Fixes #5062

6 years agohugolib: Fix GitInfo when multiple content dirs
Bjørn Erik Pedersen [Sat, 11 Aug 2018 14:37:00 +0000 (16:37 +0200)]
hugolib: Fix GitInfo when multiple content dirs

Fixes #5054

6 years agohugolib: Add multiple content dirs to GitInfo test site
Bjørn Erik Pedersen [Sat, 11 Aug 2018 10:56:26 +0000 (12:56 +0200)]
hugolib: Add multiple content dirs to GitInfo test site

See #5054

6 years agoFix broken tests
Bjørn Erik Pedersen [Thu, 9 Aug 2018 18:58:31 +0000 (20:58 +0200)]
Fix broken tests

6 years agoMerge commit '3a44bf182fed5f34621f450114083a6dd7e88a07'
Bjørn Erik Pedersen [Wed, 8 Aug 2018 11:54:42 +0000 (13:54 +0200)]
Merge commit '3a44bf182fed5f34621f450114083a6dd7e88a07'

6 years agoSquashed 'docs/' changes from 81847981f..d88477eb3
Bjørn Erik Pedersen [Wed, 8 Aug 2018 11:54:28 +0000 (13:54 +0200)]
Squashed 'docs/' changes from 81847981f..d88477eb3

d88477eb3 Fix some more redirect alias loops
209735670 Update features.md
d4ec6ef87 Remove redirect loop from functions/default
ce14da435 Fix the AlternativeOutputFormats/OutputFormats examples
f64a22469 Update cond.md
357a70a32 Remove redirect loop from templates/404
4ad7b01ba Remove some aliases that were causing infinite redirect loops
fd378e66a Fix alias redirect loop
ec3629f6f Revert "Set code background to white"
ffc56b880 Revert "Make inline code gray"
2a964e261 Make inline code gray
44069e09c Set code background to white
d39c790d0 Linked my own blog2md migration script
3e55267be Release 0.46
7b6cfdd8b releaser: Prepare repository for 0.47-DEV
d4cb54806 releaser: Add release notes to /docs for release of 0.46
6518ac7e7 releaser: Bump versions for release of 0.46
e54334d5c Merge commit '766085c2dc6fc95ac30fda2a9ebde2355fc12554'

git-subtree-dir: docs
git-subtree-split: d88477eb3a1959e2764d6025f5aa7a57a4a611e7

6 years agoreadme: https links to 3rd party sites
Christian Oliff [Wed, 8 Aug 2018 08:07:31 +0000 (17:07 +0900)]
readme: https links to 3rd party sites

6 years agoUpdate alias.go
Christian Oliff [Thu, 17 May 2018 11:51:11 +0000 (20:51 +0900)]
Update alias.go

less markup :-)

6 years agotpl/tmplimpl: Add MIME type to embedded JS
Bjørn Erik Pedersen [Mon, 6 Aug 2018 21:11:12 +0000 (23:11 +0200)]
tpl/tmplimpl: Add MIME type to embedded JS

So they get minified correctly.

See #5042

6 years agoresource: Remove test debug
Bjørn Erik Pedersen [Mon, 6 Aug 2018 20:51:30 +0000 (22:51 +0200)]
resource: Remove test debug

6 years agoUpdate dependencies
Bjørn Erik Pedersen [Mon, 6 Aug 2018 19:38:58 +0000 (21:38 +0200)]
Update dependencies

6 years agoUpdate Chroma
Bjørn Erik Pedersen [Mon, 6 Aug 2018 19:21:32 +0000 (21:21 +0200)]
Update Chroma

Fixes #5025

6 years agoAdd support for minification of final output
Bjørn Erik Pedersen [Sun, 5 Aug 2018 09:13:49 +0000 (11:13 +0200)]
Add support for minification of final output

Hugo Pipes added minification support for resources fetched via ´resources.Get` and similar.

This also adds support for minification of the final output for supported output formats: HTML, XML, SVG, CSS, JavaScript, JSON.

To enable, run Hugo with the `--minify` flag:

```bash
hugo --minify
```

This commit is also a major spring cleaning of the `transform` package to allow the new minification step fit into that processing chain.

Fixes #1251

6 years agoRemove alias of os.Stat
satotake [Sun, 5 Aug 2018 15:18:13 +0000 (00:18 +0900)]
Remove alias of os.Stat

6 years agoRenmae FileStat Stat
satotake [Sun, 5 Aug 2018 12:59:29 +0000 (21:59 +0900)]
Renmae FileStat Stat

6 years agoFix typo
satotake [Sun, 5 Aug 2018 05:29:07 +0000 (14:29 +0900)]
Fix typo

6 years agoAdd fileStat to tpl/os/os
satotake [Sun, 5 Aug 2018 03:37:20 +0000 (12:37 +0900)]
Add fileStat to tpl/os/os

6 years agotransform: Reduce allocation in the benchmark itself
Bjørn Erik Pedersen [Sun, 5 Aug 2018 15:27:16 +0000 (17:27 +0200)]
transform: Reduce allocation in the benchmark itself

6 years agotransform: Simplify the 0 transformer case
Bjørn Erik Pedersen [Sun, 5 Aug 2018 09:23:53 +0000 (11:23 +0200)]
transform: Simplify the 0 transformer case

6 years agoreleaser: Prepare repository for 0.47-DEV
hugoreleaser [Wed, 1 Aug 2018 09:03:22 +0000 (09:03 +0000)]
releaser: Prepare repository for 0.47-DEV

[ci skip]

6 years agoreleaser: Add release notes to /docs for release of 0.46 v0.46
hugoreleaser [Wed, 1 Aug 2018 09:00:52 +0000 (09:00 +0000)]
releaser: Add release notes to /docs for release of 0.46

[ci skip]

6 years agoreleaser: Bump versions for release of 0.46
hugoreleaser [Wed, 1 Aug 2018 09:00:52 +0000 (09:00 +0000)]
releaser: Bump versions for release of 0.46

[ci skip]

6 years agoRelease 0.46
Bjørn Erik Pedersen [Wed, 1 Aug 2018 08:36:37 +0000 (10:36 +0200)]
Release 0.46

6 years agoreleaser: Add release notes draft for 0.46
hugoreleaser [Wed, 1 Aug 2018 08:10:57 +0000 (08:10 +0000)]
releaser: Add release notes draft for 0.46

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

6 years agoMerge commit '766085c2dc6fc95ac30fda2a9ebde2355fc12554'
Bjørn Erik Pedersen [Wed, 1 Aug 2018 08:01:49 +0000 (10:01 +0200)]
Merge commit '766085c2dc6fc95ac30fda2a9ebde2355fc12554'

6 years agoSquashed 'docs/' changes from a4fa0d1d6..81847981f
Bjørn Erik Pedersen [Wed, 1 Aug 2018 08:01:05 +0000 (10:01 +0200)]
Squashed 'docs/' changes from a4fa0d1d6..81847981f

81847981f Add notes for installing "extended" Sass/SCSS version
02da3bb58 Include usage of disqus internal template
9b53380c4 Update sitemap-template.md
f3417dd52 Update sitemap-template.md
aae33d9a8 Update sitemap-template.md
834edc205 Release 0.45.1
fb93ab905 Merge branch 'temp451'
79f350906 releaser: Prepare repository for 0.46-DEV
25cd2352c releaser: Add release notes to /docs for release of 0.45.1
e60377c71 releaser: Bump versions for release of 0.45.1
873f6dce2 Update features.md
ecc116642 Update link for Azure
cb88c3185 Added .Site.Home to Site Variiables (#541)
975a88791 Document includePaths
56c4e332f Release Hugo 0.45
c22b25210 Merge branch 'temp45'
0ffad3ada releaser: Prepare repository for 0.46-DEV
08d494cc3 releaser: Add release notes to /docs for release of 0.45
ad546ba45 releaser: Bump versions for release of 0.45
971c46bb2 Fixed "Sratch" to become "Scratch" on line 44
a28255bf3 Clarify the meaning of .Pages vs .Site.Pages
127aeee09 docs: Update ref, relref, GetPage docs
350d674ec resources.Concat doesn't have an alias
1fd1219b0 docs: Document refLinksErrorLevel and refLinksNotFoundURL
af2252ff6 Merge commit 'a3535c8486b2ce762b1a8a9c30b03985c3e02cee'
a11486805 Merge commit 'b6b37a1f00f808f3c0d2715f65ca2d3091f36495'
1c8896cb1 Fix addkit link to account for i18n
468aef3fc releaser: Prepare repository for 0.45-DEV
c6f4b97a2 releaser: Add release notes to /docs for release of 0.44
d3985afb7 releaser: Bump versions for release of 0.44
2c59a330c Adjust release notes
83966769a releaser: Prepare repository for 0.44-DEV
e539613f7 releaser: Add release notes to /docs for release of 0.43
2bf648944 releaser: Bump versions for release of 0.43
d9d6e4bf7 Fix typos
d6798afda Merge commit '98293eaa1570b5aff4452021c8b6d6c8560b3f06'
37cc52261 Add a newScratch template func
1f7f09613 Merge branch 'release-0.42.2'
857b0b26a releaser: Prepare repository for 0.43-DEV

git-subtree-dir: docs
git-subtree-split: 81847981f1f2cb1ebc83d42d275a2afb2bb22df1

6 years agoUpdate Chroma
Bjørn Erik Pedersen [Wed, 1 Aug 2018 07:15:33 +0000 (09:15 +0200)]
Update Chroma

And since I have updated Dep locally, I get a bunch of other totally unrelated diffs. Which looks innocent enough.

Fixes #5019

6 years agoMake resources fetched via resources.Get and similar language agnostic
Bjørn Erik Pedersen [Tue, 31 Jul 2018 18:04:36 +0000 (20:04 +0200)]
Make resources fetched via resources.Get and similar language agnostic

With the newly released Hugo Pipes, resources fetched and processed via `resources.Get` and similar was published to the relevant language sub folder when in multilingual mode.

The thought behind that was maximum flexibility with support for `assetDir` per language.

In practice this was a bad idea:

* You get duplication of identical content, with added processing time
* You end up with path issues that seem to be hard to find a way around (`@fa-font-path` is one example)

This commit changes that. Now there is only one `assetDir` and if you, as one example, need to generate a CSS per langugage, you need to set the paths yourself.

Fixes #5017

6 years agotocss/scss: Improve _ prefix handling in SCSS imports
Bjørn Erik Pedersen [Tue, 31 Jul 2018 14:53:03 +0000 (16:53 +0200)]
tocss/scss: Improve _ prefix handling in SCSS imports

See #5008

6 years agoFix file paths for uncached transformed images
Rob Jackson [Tue, 31 Jul 2018 11:31:35 +0000 (12:31 +0100)]
Fix file paths for uncached transformed images

This commit also fixes an existing test to work according to the correct logic. The test was written based on erroneous behavior. We resize the image to 300x200px, and are now trying to fit it within a 50px square. The longest edge is 300 pixels, so we need to divide it by 6 (300 / 50 == 6). And then scale the shortest edge with the same proportion (200 / 6 == 33.33).

The original test was transforming the original source image, hence the previous values:

900 x 562
900 / 50 == 18
562 / 18 == 31.22

Fixes #5012

6 years agotpl/partials: Add templates.Exists
Bjørn Erik Pedersen [Tue, 31 Jul 2018 09:35:38 +0000 (11:35 +0200)]
tpl/partials: Add templates.Exists

Fixes #5010

6 years agotpl/partials: Remove superflous loop
Bjørn Erik Pedersen [Tue, 31 Jul 2018 09:27:50 +0000 (11:27 +0200)]
tpl/partials: Remove superflous loop

No need to check the themes template prefix.

6 years agotocss/scss: Improve SCSS project vs themes import resolution
Bjørn Erik Pedersen [Tue, 31 Jul 2018 07:34:56 +0000 (09:34 +0200)]
tocss/scss: Improve SCSS project vs themes import resolution

Before this commit, only SASS/SCSS  components imported from main.scss at first level can be overwritten by homonymous files in projects or over-preceding theme components.

This commit fixes that by implementing a custom import resolver which will be tried first. This resolver will make sure that the project/theme hierarchy is always respected.

Fixes #5008

6 years agoFix image cache eviction for sites with subdir in baseURL
Bjørn Erik Pedersen [Sun, 29 Jul 2018 12:26:45 +0000 (14:26 +0200)]
Fix image cache eviction for sites with subdir in baseURL

Fixes #5006

6 years agoreleaser: Prepare repository for 0.46-DEV
hugoreleaser [Wed, 25 Jul 2018 08:58:54 +0000 (08:58 +0000)]
releaser: Prepare repository for 0.46-DEV

[ci skip]

6 years agoreleaser: Add release notes to /docs for release of 0.45.1 v0.45.1
hugoreleaser [Wed, 25 Jul 2018 08:56:21 +0000 (08:56 +0000)]
releaser: Add release notes to /docs for release of 0.45.1

[ci skip]

6 years agoreleaser: Bump versions for release of 0.45.1
hugoreleaser [Wed, 25 Jul 2018 08:56:21 +0000 (08:56 +0000)]
releaser: Bump versions for release of 0.45.1

[ci skip]

6 years agoRelease 0.45.1
Bjørn Erik Pedersen [Wed, 25 Jul 2018 08:46:48 +0000 (10:46 +0200)]
Release 0.45.1

6 years agoreleaser: Add release notes draft for 0.45.1
hugoreleaser [Wed, 25 Jul 2018 08:37:50 +0000 (08:37 +0000)]
releaser: Add release notes draft for 0.45.1

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

6 years agohugolib: Fix .Site.GetPage regression
Bjørn Erik Pedersen [Tue, 24 Jul 2018 08:10:51 +0000 (10:10 +0200)]
hugolib: Fix .Site.GetPage regression

In Hugo 0.44 we simplified the `.Site.GetPage` API and added code to handle the old-style syntax in most cases.

This logic did not handle the lookup of the home page via `.Site.GetPage "section" ""` and similar. This commit fixes that.

Fixes #4989

6 years agoAdd Page.FirstSection
Bjørn Erik Pedersen [Mon, 23 Jul 2018 18:19:32 +0000 (20:19 +0200)]
Add Page.FirstSection

It was added and then removed by accident some time ago. Let us add it again, as it is useful.

6 years agohugolib: Fix "borrow content from another language" issue
Bjørn Erik Pedersen [Mon, 23 Jul 2018 13:40:04 +0000 (15:40 +0200)]
hugolib: Fix "borrow content from another language" issue

If a content file contains shortcode(s), we have logic in place to re-render it per output format.

We also have logic in place that avoids making a copy of the content used for this process if we don't need it.

This was before this commit limited to server mode and if the page should be output to multiple formats.

But there is a third case: If a site (language) borrows and renders `.Content` from another language. This would, before this commit, behave oddly for content with shortcodes.

Fixes #4986

6 years agoreleaser: Prepare repository for 0.46-DEV
hugoreleaser [Sun, 22 Jul 2018 12:12:08 +0000 (12:12 +0000)]
releaser: Prepare repository for 0.46-DEV

[ci skip]

6 years agoreleaser: Add release notes to /docs for release of 0.45 v0.45
hugoreleaser [Sun, 22 Jul 2018 12:09:26 +0000 (12:09 +0000)]
releaser: Add release notes to /docs for release of 0.45

[ci skip]

6 years agoreleaser: Bump versions for release of 0.45
hugoreleaser [Sun, 22 Jul 2018 12:09:26 +0000 (12:09 +0000)]
releaser: Bump versions for release of 0.45

[ci skip]

6 years agoUpdate release notes 0.45
Bjørn Erik Pedersen [Sun, 22 Jul 2018 10:12:01 +0000 (12:12 +0200)]
Update release notes 0.45

6 years agoreleaser: Add release notes draft for 0.45
hugoreleaser [Sun, 22 Jul 2018 10:07:03 +0000 (10:07 +0000)]
releaser: Add release notes draft for 0.45

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

6 years agoGet rid of the utils package
Bjørn Erik Pedersen [Sat, 21 Jul 2018 22:34:17 +0000 (00:34 +0200)]
Get rid of the utils package

6 years agoUpdate hugo_windows.go
Bjørn Erik Pedersen [Sat, 21 Jul 2018 22:09:46 +0000 (00:09 +0200)]
Update hugo_windows.go

6 years agohugolib: Print a WARNING about relative non-relative ref/relref matches
Bjørn Erik Pedersen [Thu, 19 Jul 2018 21:02:33 +0000 (23:02 +0200)]
hugolib: Print a WARNING about relative non-relative ref/relref matches

Fixes #4973

6 years agohugolib: Allow untyped nil to be merged in lang.Merge
Bjørn Erik Pedersen [Sat, 21 Jul 2018 09:41:23 +0000 (11:41 +0200)]
hugolib: Allow untyped nil to be merged in lang.Merge

Fixes #4977

6 years agoresource/scss: Add IncludePaths config option
Bjørn Erik Pedersen [Fri, 20 Jul 2018 13:02:35 +0000 (15:02 +0200)]
resource/scss: Add IncludePaths config option

Takes paths relative to the current working dir.

Fixes #4921

6 years agoresource/scss: Fix source maps on Windows
Bjørn Erik Pedersen [Fri, 20 Jul 2018 06:00:26 +0000 (08:00 +0200)]
resource/scss: Fix source maps on Windows

I have tested this OK on

* Windows 10 (it did not work before this commit)
* MacOS

Fixes #4968

6 years agoIncrease refLinker test coverage
Vas Sudanagunta [Thu, 19 Jul 2018 23:04:45 +0000 (19:04 -0400)]
Increase refLinker test coverage

6 years agohugolib: Avoid nilpointer in absoluteSourceRef
Bjørn Erik Pedersen [Thu, 19 Jul 2018 20:39:24 +0000 (22:39 +0200)]
hugolib: Avoid nilpointer in absoluteSourceRef

6 years agoFix typo-logic bug in GetPage
Vas Sudanagunta [Thu, 19 Jul 2018 18:55:16 +0000 (14:55 -0400)]
Fix typo-logic bug in GetPage

6 years agoEnable test case fixed by commit 501543d4
Vas Sudanagunta [Thu, 19 Jul 2018 17:53:39 +0000 (13:53 -0400)]
Enable test case fixed by commit 501543d4

6 years agoAdd test coverage for recent ref overhaul
Vas Sudanagunta [Thu, 19 Jul 2018 14:46:36 +0000 (10:46 -0400)]
Add test coverage for recent ref overhaul

Closes #4969

6 years agohugolib: Create an adapter from old to new getPage
Bjørn Erik Pedersen [Thu, 19 Jul 2018 16:26:10 +0000 (18:26 +0200)]
hugolib: Create an adapter from old to new getPage

To make sure we confirm that the existing tests run the correct code path.

Updates #4969

6 years agohugolib: Only do page-relative getPage for relative paths
Bjørn Erik Pedersen [Thu, 19 Jul 2018 15:47:05 +0000 (17:47 +0200)]
hugolib: Only do page-relative getPage for relative paths

Updates #4969

6 years agohugolib: Improve error handling in refLink
Bjørn Erik Pedersen [Thu, 19 Jul 2018 15:17:35 +0000 (17:17 +0200)]
hugolib: Improve error handling in refLink

6 years agodocs: Update ref, relref, GetPage docs
Bjørn Erik Pedersen [Thu, 19 Jul 2018 15:02:03 +0000 (17:02 +0200)]
docs: Update ref, relref, GetPage docs

6 years agodocs: Document refLinksErrorLevel and refLinksNotFoundURL
Bjørn Erik Pedersen [Thu, 19 Jul 2018 13:03:35 +0000 (15:03 +0200)]
docs: Document refLinksErrorLevel and refLinksNotFoundURL

See #4964

6 years agoAdd configurable ref/relref error handling and notFoundURL
Bjørn Erik Pedersen [Wed, 18 Jul 2018 17:58:39 +0000 (19:58 +0200)]
Add configurable ref/relref error handling and notFoundURL

Two new settings:

* refLinksErrorLevel: ERROR (default) or WARNING. ERROR will fail the build.
* refLinksNotFoundURL: Used as a placeholder when page references cannot be found.

Fixes #4964

6 years agohugolib: Mark shortcode changes as content changes in server mode
Bjørn Erik Pedersen [Thu, 19 Jul 2018 10:50:24 +0000 (12:50 +0200)]
hugolib: Mark shortcode changes as content changes in server mode

This is unfortunate, but is needed to re-create the taxonomies collections etc. that may be referenced from them.

Fixes #4965

6 years agoRevert "hugolib: Fix potential server panic with drafts/future enabled"
Bjørn Erik Pedersen [Thu, 19 Jul 2018 10:20:01 +0000 (12:20 +0200)]
Revert "hugolib: Fix potential server panic with drafts/future enabled"

This had a side-effect. I have understand this better to apply the correct fix. Will come soon.

This reverts commit 1ab4658c0d5ea2927f04bd748206e5b139a6326e.