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
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
Bjørn Erik Pedersen [Tue, 31 Jul 2018 09:35:38 +0000 (11:35 +0200)]
tpl/partials: Add templates.Exists
Fixes #5010
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.
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
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
hugoreleaser [Wed, 25 Jul 2018 08:58:54 +0000 (08:58 +0000)]
releaser: Prepare repository for 0.46-DEV
[ci skip]
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]
hugoreleaser [Wed, 25 Jul 2018 08:56:21 +0000 (08:56 +0000)]
releaser: Bump versions for release of 0.45.1
[ci skip]
Bjørn Erik Pedersen [Wed, 25 Jul 2018 08:46:48 +0000 (10:46 +0200)]
Release 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]
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
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.
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
hugoreleaser [Sun, 22 Jul 2018 12:12:08 +0000 (12:12 +0000)]
releaser: Prepare repository for 0.46-DEV
[ci skip]
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]
hugoreleaser [Sun, 22 Jul 2018 12:09:26 +0000 (12:09 +0000)]
releaser: Bump versions for release of 0.45
[ci skip]
Bjørn Erik Pedersen [Sun, 22 Jul 2018 10:12:01 +0000 (12:12 +0200)]
Update release notes 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]
Bjørn Erik Pedersen [Sat, 21 Jul 2018 22:34:17 +0000 (00:34 +0200)]
Get rid of the utils package
Bjørn Erik Pedersen [Sat, 21 Jul 2018 22:09:46 +0000 (00:09 +0200)]
Update hugo_windows.go
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
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
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
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
Vas Sudanagunta [Thu, 19 Jul 2018 23:04:45 +0000 (19:04 -0400)]
Increase refLinker test coverage
Bjørn Erik Pedersen [Thu, 19 Jul 2018 20:39:24 +0000 (22:39 +0200)]
hugolib: Avoid nilpointer in absoluteSourceRef
Vas Sudanagunta [Thu, 19 Jul 2018 18:55:16 +0000 (14:55 -0400)]
Fix typo-logic bug in GetPage
Vas Sudanagunta [Thu, 19 Jul 2018 17:53:39 +0000 (13:53 -0400)]
Enable test case fixed by commit
501543d4
Vas Sudanagunta [Thu, 19 Jul 2018 14:46:36 +0000 (10:46 -0400)]
Add test coverage for recent ref overhaul
Closes #4969
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
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
Bjørn Erik Pedersen [Thu, 19 Jul 2018 15:17:35 +0000 (17:17 +0200)]
hugolib: Improve error handling in refLink
Bjørn Erik Pedersen [Thu, 19 Jul 2018 15:02:03 +0000 (17:02 +0200)]
docs: Update ref, relref, GetPage docs
Bjørn Erik Pedersen [Thu, 19 Jul 2018 13:03:35 +0000 (15:03 +0200)]
docs: Document refLinksErrorLevel and refLinksNotFoundURL
See #4964
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
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
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.
Bjørn Erik Pedersen [Thu, 19 Jul 2018 07:18:11 +0000 (09:18 +0200)]
Squashed 'docs/' changes from
cfe89ecbc..
a4fa0d1d6
a4fa0d1d6 Typos and grammatical changes
513884600 Add hugo pipes documentation
git-subtree-dir: docs
git-subtree-split:
a4fa0d1d641b2b3e27a91ae8b1a0a29be3c42ddf
Bjørn Erik Pedersen [Thu, 19 Jul 2018 07:18:11 +0000 (09:18 +0200)]
Bjørn Erik Pedersen [Wed, 18 Jul 2018 15:01:50 +0000 (17:01 +0200)]
hugolib: Fix potential server panic with drafts/future enabled
Fixes #4965
Bjørn Erik Pedersen [Wed, 18 Jul 2018 09:53:04 +0000 (11:53 +0200)]
hugolib: Avoid server panic on TOML mistake in i18n
Fixes #4942
Bjørn Erik Pedersen [Wed, 18 Jul 2018 09:02:21 +0000 (11:02 +0200)]
hugolib/filesystems: Fix theme config for Work Fs
Which was the reason why `PostCSS´ from theme(s) was not picked up.
Fixes #4951
Bjørn Erik Pedersen [Wed, 18 Jul 2018 09:05:58 +0000 (11:05 +0200)]
Bjørn Erik Pedersen [Wed, 18 Jul 2018 09:04:57 +0000 (11:04 +0200)]
Squashed 'docs/' changes from
f59b3ab06..
cfe89ecbc
cfe89ecbc Set all *.png files under static/images to mode 0644
d847ccd8b More spelling error fixes
bf1405d92 Correction: .Pages on homepage is same as .Site.RegularPages
7efa41ff5 Merge commit '
d137efe0222269e09b427325176f0044558e3cc5'
d137efe02 Squashed 'themes/gohugoioTheme/' changes from
f31a3dc8..
66249819
50df8bfb8 Replace .Data.Pages with .Pages
85d3712d0 Mention the newScratch template func
1c234db1b Release 0.44
a51cb3e36 Merge branch 'temp44'
ec424a5e2 releaser: Prepare repository for 0.45-DEV
425e85574 releaser: Add release notes to /docs for release of 0.44
e6f9c65a2 releaser: Bump versions for release of 0.44
45548a5c9 Arch Linux: Partial upgrades are unsupported
c0430f8f9 Update MenuEntry properties documentation
79109b685 Refresh the documentation on staticDir config parameter
80ed4592b Remove duplicate links; also sort them alphabetically
f00a4e232 HTTPS links to third-party sites
2f6f682ba Fixed a typo
4be105202 add openbsd howto install
39808f50a Fix typo
b55c0f3a0 Fix URL to hugotest
2fb157237 Release Hugo 0.43
e8af6a970 Merge branch 'temp43'
563dd4173 Adjust release notes
50aed2e52 releaser: Prepare repository for 0.44-DEV
363b363ff releaser: Add release notes to /docs for release of 0.43
93bfbef62 releaser: Bump versions for release of 0.43
893a27d33 Fix typos
fe5908257 Celebrate: a few typo and grammar fixes
bb20442df Merge commit '
98293eaa1570b5aff4452021c8b6d6c8560b3f06'
ef3d63936 Add a newScratch template func
bf100a3cd Merge branch 'release-0.42.2'
f1133c544 releaser: Prepare repository for 0.43-DEV
2ce058057 releaser: Add release notes to /docs for release of 0.42.2
6073927c6 releaser: Bump versions for release of 0.42.2
3bafddd52 releaser: Prepare repository for 0.43-DEV
8b9f805bd releaser: Add release notes to /docs for release of 0.42.1
efb6638ba releaser: Bump versions for release of 0.42.1
1e74ffbe0 releaser: Prepare repository for 0.43-DEV
2d2d0f8ab releaser: Add release notes to /docs for release of 0.42
17f685813 releaser: Bump versions for release of 0.42
67ef1a0e1 docs: Update theme documentation
d74874e1e docs: Remove some files now moved
771d50cf3 Merge commit '
b239595af5a9fc1fc9a1ccc666c3ab06ccc32f04'
f9b5fd2d2 tplimpl: Remove speakerdeck shortcode
523206579 tpl/strings: strings.RuneCount
b389efc88 tpl: Add strings.Repeat
a41ad0254 Add a BlackFriday option for rel="noreferrer" on external links
a6e279362 Add a BlackFriday option for rel="nofollow" on external links
7e2c9846e releaser: Prepare repository for 0.42-DEV
b4f81c38a releaser: Add release notes to /docs for release of 0.41
55667b3a1 releaser: Bump versions for release of 0.41
afceb02d3 docs: Document the GDPR Privacy Config
8b8289027 Merge commit '
d2b1030060d3c91d5f9ffa3456418da16bd74f1d'
be04a8886 Merge branch 'release-0.40.3'
33ca0b8da releaser: Prepare repository for 0.41-DEV
8c9a5a850 releaser: Add release notes to /docs for release of 0.40.3
85845a4fd releaser: Bump versions for release of 0.40.3
9af79e531 Merge commit '
83bef6955e014d40c0f00db9cebe09113154e999'
c4200dd0e Fix typo
8f8323336 releaser: Prepare repository for 0.41-DEV
9fab87505 releaser: Add release notes to /docs for release of 0.40.2
83648c666 releaser: Bump versions for release of 0.40.2
e6434d104 releaser: Prepare repository for 0.41-DEV
9389b2973 releaser: Add release notes to /docs for release of 0.40.1
32979e28a releaser: Bump versions for release of 0.40.1
196174a76 releaser: Prepare repository for 0.41-DEV
490a997bb releaser: Add release notes to /docs for release of 0.40
018aa6471 releaser: Bump versions for release of 0.40
92221934c Merge commit '
a215abf70e018f4bf40d6c09d8bd148d8684b33d'
0a58ef56e Merge commit '
d2ec1a06df8ab6b17ad05cb008d5701b40327d47'
312ab58c6 Improve .Get docs
e43e8cee3 .Get function: fix syntax signature
bb16150bc releaser: Prepare repository for 0.40-DEV
8cc80fed9 releaser: Add release notes to /docs for release of 0.39
f7aa0d1c5 releaser: Bump versions for release of 0.39
42e48706a Merge commit '
047c4188dfc854f658d16f1e4a9501f9c97a31c7'
76acab68b releaser: Prepare repository for 0.39-DEV
d270600b0 releaser: Add release notes to /docs for release of 0.38.2
97be36992 releaser: Bump versions for release of 0.38.2
cd29b8b79 releaser: Prepare repository for 0.39-DEV
9983a4bdf releaser: Add release notes to /docs for release of 0.38.1
7774afd01 releaser: Bump versions for release of 0.38.1
b89157f20 releaser: Prepare repository for 0.39-DEV
af4d0bf62 releaser: Add release notes to /docs for release of 0.38
ca98e7d4f releaser: Bump versions for release of 0.38
8b773833a Merge commit '
ed8bf081fdbf336e026517b7e1b123c039014ab5'
24202bb71 docs: Generate docshelper data
43d15975d Add .Site.IsServer
6f99d3d65 Merge commit '
0a23baa6a90901f772c234107c4f12c16c76f4aa'
17487ccdd hugolib: Add Reset method to delete key from Scratch
ccbf7a05c docs: Add docs for lang.Merge
5ad46d78e Merge commit '
3886fc1fef6ac19d58b9ba1bb642d0c6c9a54031'
ac403c280 docs: Add docs on the new front matter configuration
6066c60e6 Merge commit '
c0290655825e7bb36e13fb39f89d85b392cf1adc'
ee605c7ae releaser: Prepare repository for 0.38-DEV
31a4de966 releaser: Add release notes to /docs for release of 0.37.1
9dd3dafe1 releaser: Bump versions for release of 0.37.1
141750aec releaser: Prepare repository for 0.38-DEV
c9bb39bc3 releaser: Add release notes to /docs for release of 0.37
c7009f064 releaser: Bump versions for release of 0.37
9f727d916 Merge commit '
900b5f6cfe5a377ef369d26cd700201be4cf6b06'
87fd97853 Merge commit '
374d184e6747678364fd61f5faf328ec9205eb6b'
244deafc2 Fix typos in development contribution doc
608c80f72 Merge branch 'release-0.36.1'
0f8ffbd5c releaser: Prepare repository for 0.37-DEV
5028ee849 releaser: Add release notes to /docs for release of 0.36.1
9ccc7cb11 releaser: Bump versions for release of 0.36.1
3db31be07 Merge commit '
9cc9bab46288d8d5f9fda7009c5f746258cec1b4'
9468246c5 Add "target" and "rel" parameters to figure shortcode
6d7fa89f9 releaser: Prepare repository for 0.37-DEV
1aec7ad81 releaser: Add release notes to /docs for release of 0.36
b522da389 releaser: Bump versions for release of 0.36
bb78bea13 docs: Add documentation for smart cropping etc.
930f16cae Merge commit '
c305e44f5f081e4436195923a4593e396f07cd49'
0e4c80ab9 releaser: Prepare repository for 0.36-DEV
e0d4c6bcd releaser: Add release notes to /docs for release of 0.35
f4ac67eb3 releaser: Bump versions for release of 0.35
229a50b1f docs: Regenerate CLI docs
72958eb9c Merge commit '
337d0c5f516ee085205e8abefdb7f87e6d33ca05'
d998ca4c0 command: Remove undraft command
34a0052ef docs: Re-generate CLI docs
fa04ff331 releaser: Prepare repository for 0.35-DEV
55e595720 releaser: Add release notes to /docs for release of 0.34
bf4d0e8fb releaser: Bump versions for release of 0.34
07673370e releaser: Prepare repository for 0.34-DEV
921ea8920 releaser: Add release notes to /docs for release of 0.33
3307f61bd releaser: Bump versions for release of 0.33
792a4410d Merge commit '
3cf4300097610bb8b5bd0686d96d1df5db641895'
6d8a9f657 releaser: Prepare repository for 0.33-DEV
e3afccf6f releaser: Add release notes to /docs for release of 0.32.4
7f29cb196 releaser: Bump versions for release of 0.32.4
baa364436 releaser: Prepare repository for 0.33-DEV
60c775166 releaser: Add release notes to /docs for release of 0.32.3
9cbab1803 releaser: Bump versions for release of 0.32.3
51823efee releaser: Prepare repository for 0.33-DEV
71e03684c releaser: Add release notes to /docs for release of 0.32.2
e18bf56fb releaser: Bump versions for release of 0.32.2
54aa93927 Merge commit '
eb738cd35cca1ffc68c5ed688dbe2a19108e8761'
5e8123994 releaser: Prepare repository for 0.33-DEV
a55b78124 releaser: Add release notes to /docs for release of 0.32.1
7de53ff41 releaser: Bump versions for release of 0.32.1
e6e58785d releaser: Prepare repository for 0.33-DEV
58cf5009d releaser: Add release notes to /docs for release of 0.32
031719821 Merge commit '
f3cd083961f36dc96d05e98aaf67f650102bc757'
b9183604b Add Pandoc support, refactor external helpers
3f9b9474c releaser: Prepare repository for 0.32-DEV
11e4ce514 releaser: Add release notes to /docs for release of 0.31.1
aebb1504b releaser: Bump versions for release of 0.31.1
d70b54d4a releaser: Prepare repository for 0.32-DEV
cdc10468e releaser: Add release notes to /docs for release of 0.31
38bd41cab releaser: Bump versions for release of 0.31
1c581a11d Merge commit '
30c0d485eaff6d70df1be0353911ddca485d52bf'
b88e46d02 Merge commit '
05e42bc643f1840ed2ad9c2eff82a269d1381683'
a45ab174e Handle Taxonomy permalinks
9f27354f6 Add support for height argument to figure shortcode
acc8e49c1 releaser: Prepare repository for 0.31-DEV
977266b19 releaser: Add release notes to /docs for release of 0.30.2
31b672844 releaser: Bump versions for release of 0.30.2
b8f6b72a8 Merge commit '
325009c3fd4ac90021897b7e3e025c14e70ce162'
c6e3dae71 releaser: Prepare repository for 0.31-DEV
2a3c7c7d9 releaser: Add release notes to /docs for release of 0.30.1
4c014117a releaser: Bump versions for release of 0.30.1
1da61da06 releaser: Prepare repository for 0.31-DEV
24864a46b releaser: Add release notes to /docs for release of 0.30
3011aa44a releaser: Bump versions for release of 0.30
bcbf3237b Merge commit '
ecf5e081b5540e69f4af330233f39a07baf53846'
ab68b99ed Merge commit '
dae5a7c61cceeb0de59f2d755f63e453f71dd9b2'
0ae435725 tpl: Add errorf template function
ac3fb3808 Change SummaryLength to be configurable (#3924)
3c0e4fa70 tpl: Add os.fileExists template function
9290f3983 Merge commit '
9d68f695e782c6a83c77aff13317c7a22c694c98'
394e8b3f6 tpl: Add float template function
c0c48c2ea releaser: Prepare repository for 0.30-DEV
0806d910b releaser: Add release notes to /docs for release of 0.29
0d1101836 releaser: Bump versions for release of 0.29
5d92b552b releaser: Prepare repository for 0.29-DEV
1ef521182 releaser: Add release notes to /docs for release of 0.28
c5441cff1 releaser: Bump versions for release of 0.28
46c2786f1 Merge commit '
61c27b58b353c73772aae572c7d822fdfdf7791b'
6fed4008f Merge commit '
30694a133a88d5f76a51d0372646e10cbeca7691'
595752e2f Merge commit '
7a89dce53bfbd67a17442a8f9be8fa895fc4f9b1'
af14cae0c Merge commit '
ba45da9d03056447e4873de13d4e0f8d658a769b'
d0bb30963 releaser: Prepare repository for 0.28-DEV
469bf26aa releaser: Add release notes to /docs for release of 0.27.1
06ea00c12 releaser: Bump versions for release of 0.27.1
0668af58e releaser: Prepare repository for 0.28-DEV
4ce00c84d releaser: Add release notes to /docs for release of 0.27
68f318d0b releaser: Bump versions for release of 0.27
509ad6cc0 docs: Merge commit '
1b4319be62ba071f79e90ef32dbe92eb893429f7'
c625ae1ce docs: Document Related Content
ecd5c24f5 docs: Merge commit '
7d63a23b0c68d9cd7c7c09c2755619237bc03485'
b97b84f9d Update docs versiona and README
2238f7a4a Merge commit '
ec4e6f9df2ab9ffdc62a3f59675369096e0d3f77' as 'docs'
git-subtree-dir: docs
git-subtree-split:
cfe89ecbc2288a7270c23dbcc179733c8d978c4c
Bjørn Erik Pedersen [Wed, 18 Jul 2018 08:00:50 +0000 (10:00 +0200)]
resource/postcss: Try node_modules/postcss-cli/bin/postcss first
Fixes #4952
Bjørn Erik Pedersen [Wed, 18 Jul 2018 07:43:31 +0000 (09:43 +0200)]
commands: Disable flaky server tests on Windows CI
Bjørn Erik Pedersen [Tue, 17 Jul 2018 22:35:42 +0000 (00:35 +0200)]
commands: Increase sleep in server teset to make it less shaky on Windows
Bjørn Erik Pedersen [Tue, 17 Jul 2018 19:44:08 +0000 (21:44 +0200)]
Add optional lang as argument to rel/relref
Fixes #4956
Bjørn Erik Pedersen [Tue, 17 Jul 2018 09:18:29 +0000 (11:18 +0200)]
Simplify .Site.GetPage etc.
This commit is a follow up to a recent overhaul of the GetPage/ref/relref implemenation.
The most important change in this commit is the update to `.Site.GetPage`:
* To reduce the amount of breakage in the wild to its minimum, I have reworked .Site.GetPage with some rules:
* We cannot support more than 2 arguments, i.e. .Site.GetPage "page" "posts" "mypage.md" will now throw an error. I think this is the most uncommon syntax and should be OK. It is an easy fix to change the above to .Site.GetPage "/posts/mypage.md" or similar.
* .Site.GetPage "home", .Site.GetPage "home" "" and .Site.GetPage "home" "/" will give you the home page. This means that if you have page in root with the name home.md you need to do .Site.GetPage "/home.md" or similar
This commit also fixes some multilingual issues, most notable it is now possible to do cross-language ref/relref lookups by prepending the language code to the path, e.g. `/jp/posts/mypage.md`.
This commit also reverts the site building tests related to this to "Hugo 0.44 state", to get better control of the changes made.
Closes #4147
Closes #4727
Closes #4728
Closes #4728
Closes #4726
Closes #4652
Vas Sudanagunta [Wed, 30 May 2018 01:35:27 +0000 (21:35 -0400)]
Unify page lookups
This commit unifies the core internal page index for all page kinds.
This enables the `ref` and `relref` shortcodes to support all pages kinds, and adds a new page-relative `.GetPage` method with simplified signature.
See #4147
See #4727
See #4728
See #4728
See #4726
See #4652
Lucas Bickel [Mon, 16 Jul 2018 19:15:05 +0000 (21:15 +0200)]
Fix addkit link to account for i18n
Bjørn Erik Pedersen [Mon, 16 Jul 2018 08:42:07 +0000 (10:42 +0200)]
resource/bundler: Improve error message
Garry McNulty [Sun, 15 Jul 2018 13:35:41 +0000 (14:35 +0100)]
hugolib: Only set 'allThemes' if there are themes in the config file
When the 'allThemes' configuration setting is read, it will panic if
there are no themes. This was a regression introduced in Hugo 0.42.
Also updated a unit test to check for this.
Fixes #4851
Bjørn Erik Pedersen [Sat, 14 Jul 2018 09:17:48 +0000 (11:17 +0200)]
resource/integrity: Remove unused code
Bjørn Erik Pedersen [Fri, 13 Jul 2018 06:40:09 +0000 (08:40 +0200)]
releaser: Remove flag on Windows build
hugoreleaser [Fri, 13 Jul 2018 06:05:41 +0000 (06:05 +0000)]
releaser: Prepare repository for 0.45-DEV
[ci skip]
hugoreleaser [Fri, 13 Jul 2018 06:03:09 +0000 (06:03 +0000)]
releaser: Add release notes to /docs for release of 0.44
[ci skip]
hugoreleaser [Fri, 13 Jul 2018 06:03:09 +0000 (06:03 +0000)]
releaser: Bump versions for release of 0.44
[ci skip]
Bjørn Erik Pedersen [Fri, 13 Jul 2018 05:50:59 +0000 (07:50 +0200)]
Finish release notes 0.44
hugoreleaser [Fri, 13 Jul 2018 05:27:58 +0000 (05:27 +0000)]
releaser: Add release notes draft for 0.44
Rename to *-ready.md to continue. [ci skip]
Bjørn Erik Pedersen [Thu, 12 Jul 2018 19:06:48 +0000 (21:06 +0200)]
resource: Clean up the in-memory Resource reader usage
Turns out `strings.Reader` implements both `io.Reader` and `io.Seeker`, so we don't need anything special.
Updates #4936
Bjørn Erik Pedersen [Thu, 12 Jul 2018 16:59:39 +0000 (18:59 +0200)]
resource: Move opening of the transformed resources after cache check
The old version should be functionally the same, but opening up these readers (potentially files) every time is wasteful if we don't read from them.
Bjørn Erik Pedersen [Thu, 12 Jul 2018 13:19:54 +0000 (15:19 +0200)]
resource: Fix resources.Concat for transformed resources
Fixes #4936
Bjørn Erik Pedersen [Thu, 12 Jul 2018 09:26:51 +0000 (11:26 +0200)]
Improve type support in resources.Concat
This allows the result of `.Resources.Match` and similar to be concatenated.
Fixes #4934
Bjørn Erik Pedersen [Thu, 12 Jul 2018 08:09:32 +0000 (10:09 +0200)]
hugolib: Fix static filesystem for themed multihost sites
Multihost is where each language has its own `baseURL`. In this configuration, static files from the theme was not picked up.
This was a regression in Hugo `0.42`. This commit also adds proper tests for this, so that does not happen again.
Fixes #4929
Bjørn Erik Pedersen [Wed, 11 Jul 2018 17:23:22 +0000 (19:23 +0200)]
Flush partialCached cache on rebuilds
Fixes #4931
Bjørn Erik Pedersen [Wed, 11 Jul 2018 09:03:15 +0000 (11:03 +0200)]
resource: Include the transformation step in the error message
Fixes #4924
Bjørn Erik Pedersen [Tue, 10 Jul 2018 21:21:48 +0000 (23:21 +0200)]
media: Only show deprecation warning when needed
Fixes #4927
Bjørn Erik Pedersen [Tue, 10 Jul 2018 09:55:22 +0000 (11:55 +0200)]
media: Allow multiple file suffixes per media type
Before this commit, `Suffix` on `MediaType` was used both to set a custom file suffix and as a way to augment the mediatype definition (what you see after the "+", e.g. "image/svg+xml").
This had its limitations. For one, it was only possible with one file extension per MIME type.
Now you can specify multiple file suffixes using "suffixes", but you need to specify the full MIME type
identifier:
[mediaTypes]
[mediaTypes."image/svg+xml"]
suffixes = ["svg", "abc ]
In most cases, it will be enough to just change:
[mediaTypes]
[mediaTypes."my/custom-mediatype"]
suffix = "txt"
To:
[mediaTypes]
[mediaTypes."my/custom-mediatype"]
suffixes = ["txt"]
Hugo will still respect values set in "suffix" if no value for "suffixes" is provided, but this will be removed in a future release.
Note that you can still get the Media Type's suffix from a template: {{ $mediaType.Suffix }}. But this will now map to the MIME type filename.
Fixes #4920