Cameron Moore [Tue, 28 Aug 2018 20:45:51 +0000 (15:45 -0500)]
hugolib: Remove extraneous createStaticFs call
This looks like a copy+paste error. We have the same line a few lines
below this call and we actually handle the err value there.
Cameron Moore [Tue, 28 Aug 2018 20:44:42 +0000 (15:44 -0500)]
hugolib: Fix godoc comment
Cameron Moore [Tue, 28 Aug 2018 20:43:42 +0000 (15:43 -0500)]
hugolib: Fix typo in private func name
Michael Henderson [Thu, 30 Aug 2018 20:30:49 +0000 (14:30 -0600)]
Fix error message for go vet
Bjørn Erik Pedersen [Thu, 30 Aug 2018 10:28:29 +0000 (12:28 +0200)]
mage: Init packages once
`go list ./...` fails when run in parallel on Windows. This also applies to running `go test ./...` and `go list/...` so we serialize tests.
Bjørn Erik Pedersen [Thu, 30 Aug 2018 09:04:15 +0000 (11:04 +0200)]
appveyor: Update script to Go 1.11
Fixes #5127
Bjørn Erik Pedersen [Thu, 30 Aug 2018 09:10:25 +0000 (11:10 +0200)]
build: Remove the remains of Go Dep
Appveyor is now Go 1.11 ready, so we can go all "Go Modules".
Closes #5115
Bjørn Erik Pedersen [Wed, 29 Aug 2018 12:21:20 +0000 (14:21 +0200)]
Update CONTRIBUTING.md
Bjørn Erik Pedersen [Wed, 29 Aug 2018 12:17:47 +0000 (14:17 +0200)]
Update README.md
Bjørn Erik Pedersen [Wed, 29 Aug 2018 07:35:45 +0000 (09:35 +0200)]
snapcraft: Update to work with Go Modules
hugoreleaser [Wed, 29 Aug 2018 06:36:18 +0000 (06:36 +0000)]
releaser: Prepare repository for 0.49-DEV
[ci skip]
hugoreleaser [Wed, 29 Aug 2018 06:33:03 +0000 (06:33 +0000)]
releaser: Add release notes to /docs for release of 0.48
[ci skip]
hugoreleaser [Wed, 29 Aug 2018 06:33:03 +0000 (06:33 +0000)]
releaser: Bump versions for release of 0.48
[ci skip]
Bjørn Erik Pedersen [Tue, 28 Aug 2018 20:38:46 +0000 (22:38 +0200)]
Release 0.48
hugoreleaser [Tue, 28 Aug 2018 20:26:28 +0000 (20:26 +0000)]
releaser: Add release notes draft for 0.48
Rename to *-ready.md to continue. [ci skip]
Bjørn Erik Pedersen [Tue, 28 Aug 2018 16:36:30 +0000 (18:36 +0200)]
release: Fix CircleCI script
Bjørn Erik Pedersen [Tue, 28 Aug 2018 15:57:42 +0000 (17:57 +0200)]
hugolib: Only run variable variable overwrite test on Go 1.11
Bjørn Erik Pedersen [Tue, 28 Aug 2018 15:35:33 +0000 (17:35 +0200)]
hugolib: Add a test for template variable overwrite
New in Go 1.11.
Bjørn Erik Pedersen [Tue, 28 Aug 2018 15:08:52 +0000 (17:08 +0200)]
helpers: Fix permissions when creating new folders
This was mistakingly changed from 07777 (rwx, rw, r before umask) to 0755 in Hugo 0.37. This commit reverts to the old value.
Fixes #5128
Bjørn Erik Pedersen [Tue, 28 Aug 2018 12:18:12 +0000 (14:18 +0200)]
Improve minifier MIME type resolution
This commit also removes the deprecated `Suffix` from MediaType. Now use `Suffixes` and put the MIME type suffix in the type, e.g. `application/svg+xml`.
Fixes #5093
Bjørn Erik Pedersen [Tue, 28 Aug 2018 09:06:43 +0000 (11:06 +0200)]
circleci: Update to Go 1.11
See #5115
Bjørn Erik Pedersen [Tue, 28 Aug 2018 09:00:59 +0000 (11:00 +0200)]
travis: Set GO111MODULE=on for mage install
See #5115
Anthony Fok [Sat, 25 Aug 2018 05:06:23 +0000 (23:06 -0600)]
resource: Add instruction to install PostCSS when missing
Fixes #5111
Bjørn Erik Pedersen [Sun, 26 Aug 2018 08:43:53 +0000 (10:43 +0200)]
Update snapcraft build config to Go 1.11
See #5115
Bjørn Erik Pedersen [Sat, 25 Aug 2018 15:58:04 +0000 (17:58 +0200)]
Use Go 1.11 modules with Mage
See #5115
Bjørn Erik Pedersen [Sat, 25 Aug 2018 15:51:57 +0000 (17:51 +0200)]
Add go.mod
See #5115
Bjørn Erik Pedersen [Sat, 25 Aug 2018 09:26:19 +0000 (11:26 +0200)]
Update Travis to Go 1.11 and Go 1.10.4
See #5115
vsopvsop [Sat, 25 Aug 2018 08:49:15 +0000 (14:19 +0530)]
minfiers: Keep end tags
Fixes #5112
Anthony Fok [Fri, 24 Aug 2018 16:08:56 +0000 (10:08 -0600)]
snap: Skip installing postcss due to failure on build server
npm running on fails to fetch postcss-cli on build.snapcraft.io
due to network proxy issue.
See https://forum.snapcraft.io/t/build-fails-behind-proxy-on-build-snapcraft-io/6951/3
Anthony Fok [Fri, 24 Aug 2018 15:35:07 +0000 (09:35 -0600)]
snap: Refactor, fix bin/node, and add bin/postcss
Bjørn Erik Pedersen [Fri, 24 Aug 2018 07:23:01 +0000 (09:23 +0200)]
hugolib: Include language code in REF_NOT_FOUND errors
Fixes #5110
Bjørn Erik Pedersen [Thu, 23 Aug 2018 20:03:43 +0000 (22:03 +0200)]
tpl/tplimpl: Make the autogenerated templates collapsed in PRs
Cameron Moore [Wed, 22 Aug 2018 05:18:37 +0000 (00:18 -0500)]
Fix handling of taxonomy terms containing slashes
Fixes #4090
Carlos Alexandro Becker [Mon, 20 Aug 2018 17:44:00 +0000 (14:44 -0300)]
Fix build on armv7
Closes #5101
hugoreleaser [Mon, 20 Aug 2018 08:19:37 +0000 (08:19 +0000)]
releaser: Prepare repository for 0.48-DEV
[ci skip]
hugoreleaser [Mon, 20 Aug 2018 08:16:49 +0000 (08:16 +0000)]
releaser: Add release notes to /docs for release of 0.47.1
[ci skip]
hugoreleaser [Mon, 20 Aug 2018 08:16:49 +0000 (08:16 +0000)]
releaser: Bump versions for release of 0.47.1
[ci skip]
Bjørn Erik Pedersen [Mon, 20 Aug 2018 08:10:38 +0000 (10:10 +0200)]
Release 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]
Bjørn Erik Pedersen [Sun, 19 Aug 2018 11:30:42 +0000 (13:30 +0200)]
tpl/tplimpl: Fix .Site.Params case regression
Fixes #5094
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.
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
Bjørn Erik Pedersen [Sat, 18 Aug 2018 09:16:34 +0000 (11:16 +0200)]
minifiers: Do not strip IE conditional statements
Fixes #5089
hugoreleaser [Fri, 17 Aug 2018 09:17:44 +0000 (09:17 +0000)]
releaser: Prepare repository for 0.48-DEV
[ci skip]
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]
hugoreleaser [Fri, 17 Aug 2018 09:15:18 +0000 (09:15 +0000)]
releaser: Bump versions for release of 0.47
[ci skip]
Bjørn Erik Pedersen [Fri, 17 Aug 2018 08:58:18 +0000 (10:58 +0200)]
releaser: Work around a Goreleaser bug
Closes #4918
Bjørn Erik Pedersen [Fri, 17 Aug 2018 08:27:18 +0000 (10:27 +0200)]
Release 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]
Bjørn Erik Pedersen [Fri, 17 Aug 2018 08:12:19 +0000 (10:12 +0200)]
docs: Regenerate CLI docs
Bjørn Erik Pedersen [Fri, 17 Aug 2018 08:09:42 +0000 (10:09 +0200)]
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
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.
Bjørn Erik Pedersen [Fri, 17 Aug 2018 07:01:02 +0000 (09:01 +0200)]
hugolib: Adjust tests for shortcode p-issue
See #1642
gllera [Fri, 17 Aug 2018 00:17:27 +0000 (02:17 +0200)]
hugolib: Fix shortcode output wrapped in p
Fixes #1642
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
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
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
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
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
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
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.
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
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
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
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
Bjørn Erik Pedersen [Tue, 14 Aug 2018 16:11:36 +0000 (18:11 +0200)]
hugolib: Fix Related when called from shortcode
Fixes #5071
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
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
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
Anthony Fok [Sun, 12 Aug 2018 18:25:41 +0000 (12:25 -0600)]
tpl: Suppress blank lines from opengraph internal template
Bjørn Erik Pedersen [Sat, 11 Aug 2018 18:19:07 +0000 (20:19 +0200)]
publisher: Close file when done
Fixes #5062
Bjørn Erik Pedersen [Sat, 11 Aug 2018 14:37:00 +0000 (16:37 +0200)]
hugolib: Fix GitInfo when multiple content dirs
Fixes #5054
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
Bjørn Erik Pedersen [Thu, 9 Aug 2018 18:58:31 +0000 (20:58 +0200)]
Fix broken tests
Bjørn Erik Pedersen [Wed, 8 Aug 2018 11:54:42 +0000 (13:54 +0200)]
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
Christian Oliff [Wed, 8 Aug 2018 08:07:31 +0000 (17:07 +0900)]
readme: https links to 3rd party sites
Christian Oliff [Thu, 17 May 2018 11:51:11 +0000 (20:51 +0900)]
Update alias.go
less markup :-)
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
Bjørn Erik Pedersen [Mon, 6 Aug 2018 20:51:30 +0000 (22:51 +0200)]
resource: Remove test debug
Bjørn Erik Pedersen [Mon, 6 Aug 2018 19:38:58 +0000 (21:38 +0200)]
Update dependencies
Bjørn Erik Pedersen [Mon, 6 Aug 2018 19:21:32 +0000 (21:21 +0200)]
Update Chroma
Fixes #5025
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
satotake [Sun, 5 Aug 2018 15:18:13 +0000 (00:18 +0900)]
Remove alias of os.Stat
satotake [Sun, 5 Aug 2018 12:59:29 +0000 (21:59 +0900)]
Renmae FileStat Stat
satotake [Sun, 5 Aug 2018 05:29:07 +0000 (14:29 +0900)]
Fix typo
satotake [Sun, 5 Aug 2018 03:37:20 +0000 (12:37 +0900)]
Add fileStat to tpl/os/os
Bjørn Erik Pedersen [Sun, 5 Aug 2018 15:27:16 +0000 (17:27 +0200)]
transform: Reduce allocation in the benchmark itself
Bjørn Erik Pedersen [Sun, 5 Aug 2018 09:23:53 +0000 (11:23 +0200)]
transform: Simplify the 0 transformer case
hugoreleaser [Wed, 1 Aug 2018 09:03:22 +0000 (09:03 +0000)]
releaser: Prepare repository for 0.47-DEV
[ci skip]
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]
hugoreleaser [Wed, 1 Aug 2018 09:00:52 +0000 (09:00 +0000)]
releaser: Bump versions for release of 0.46
[ci skip]
Bjørn Erik Pedersen [Wed, 1 Aug 2018 08:36:37 +0000 (10:36 +0200)]
Release 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]
Bjørn Erik Pedersen [Wed, 1 Aug 2018 08:01:49 +0000 (10:01 +0200)]
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
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
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
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