brevno-suite/hugo
5 years agoreleaser: Add release notes to /docs for release of 0.65.3 v0.65.3
hugoreleaser [Sun, 23 Feb 2020 09:58:31 +0000 (09:58 +0000)]
releaser: Add release notes to /docs for release of 0.65.3

[ci skip]

5 years agoreleaser: Bump versions for release of 0.65.3
hugoreleaser [Sun, 23 Feb 2020 09:58:31 +0000 (09:58 +0000)]
releaser: Bump versions for release of 0.65.3

[ci skip]

5 years agoreleaser: Add release notes for 0.65.3
hugoreleaser [Sun, 23 Feb 2020 09:58:31 +0000 (09:58 +0000)]
releaser: Add release notes for 0.65.3
[ci skip]

5 years agoFix panic when home page is drafted
Bjørn Erik Pedersen [Sat, 22 Feb 2020 17:22:40 +0000 (18:22 +0100)]
Fix panic when home page is drafted

Fixes #6927

5 years agoFix goldmark toc rendering
satotake [Sat, 22 Feb 2020 17:06:30 +0000 (02:06 +0900)]
Fix goldmark toc rendering

Previously gordmark-based TOC renderes only `KindText` and `KindString`

This commit expands target node with Goldmark's renderer

I am not sure of what are expected results as TOC contents in some (rare) cases
but Blackfriday's behaviours are fundamentally respected.

For example,
- image `[image text](link)` is rendered as `<img>` tag
- GFM AutoLink `gohugo.io` is rendered as text

* Render AutoLink as <a> tag as Blackfriday does

Fixes #6736
Fixes #6809

5 years agoFix crashes for 404 in IsAncestor etc.
Bjørn Erik Pedersen [Sat, 22 Feb 2020 09:57:43 +0000 (10:57 +0100)]
Fix crashes for 404 in IsAncestor etc.

Fixes #6931

5 years agoreleaser: Add release notes to /docs for release of 0.65.2 v0.65.2
hugoreleaser [Fri, 21 Feb 2020 10:10:11 +0000 (10:10 +0000)]
releaser: Add release notes to /docs for release of 0.65.2

[ci skip]

5 years agoreleaser: Bump versions for release of 0.65.2
hugoreleaser [Fri, 21 Feb 2020 10:10:11 +0000 (10:10 +0000)]
releaser: Bump versions for release of 0.65.2

[ci skip]

5 years agoreleaser: Add release notes for 0.65.2
hugoreleaser [Fri, 21 Feb 2020 10:10:11 +0000 (10:10 +0000)]
releaser: Add release notes for 0.65.2
[ci skip]

5 years agoApply missing go fmt
Bjørn Erik Pedersen [Fri, 21 Feb 2020 09:12:33 +0000 (10:12 +0100)]
Apply missing go fmt

5 years agoFix panic on no output formats
Bjørn Erik Pedersen [Fri, 21 Feb 2020 08:02:07 +0000 (09:02 +0100)]
Fix panic on no output formats

A page needs its output formats even if it should not be rendered or its resources should not be published.

Fixes #6924

5 years agoFix panic in 404.Parent
Bjørn Erik Pedersen [Fri, 21 Feb 2020 07:06:38 +0000 (08:06 +0100)]
Fix panic in 404.Parent

Fixes #6924

5 years agoreleaser: Add release notes to /docs for release of 0.65.1 v0.65.1
hugoreleaser [Thu, 20 Feb 2020 13:42:26 +0000 (13:42 +0000)]
releaser: Add release notes to /docs for release of 0.65.1

[ci skip]

5 years agoreleaser: Bump versions for release of 0.65.1
hugoreleaser [Thu, 20 Feb 2020 13:42:26 +0000 (13:42 +0000)]
releaser: Bump versions for release of 0.65.1

[ci skip]

5 years agoreleaser: Add release notes for 0.65.1
hugoreleaser [Thu, 20 Feb 2020 13:42:26 +0000 (13:42 +0000)]
releaser: Add release notes for 0.65.1
[ci skip]

5 years agohugolib: Fix 2 Paginator.Pages taxonomy regressions
Bjørn Erik Pedersen [Thu, 20 Feb 2020 13:03:56 +0000 (14:03 +0100)]
hugolib: Fix 2 Paginator.Pages taxonomy regressions

Fixes #6921
Fixes #6918

5 years agohugolib: Fix deletion of orphaned sections
Bjørn Erik Pedersen [Thu, 20 Feb 2020 12:40:16 +0000 (13:40 +0100)]
hugolib: Fix deletion of orphaned sections

Avoid deleting inside the recursive walk.

Fixes #6920

5 years agoreleaser: Add release notes to /docs for release of 0.65.0 v0.65.0
hugoreleaser [Thu, 20 Feb 2020 08:11:06 +0000 (08:11 +0000)]
releaser: Add release notes to /docs for release of 0.65.0

[ci skip]

5 years agoreleaser: Bump versions for release of 0.65.0
hugoreleaser [Thu, 20 Feb 2020 08:11:06 +0000 (08:11 +0000)]
releaser: Bump versions for release of 0.65.0

[ci skip]

5 years agoreleaser: Add release notes for 0.65.0
hugoreleaser [Thu, 20 Feb 2020 06:59:58 +0000 (06:59 +0000)]
releaser: Add release notes for 0.65.0

5 years agodocs: Regenerate CLI docs
Bjørn Erik Pedersen [Wed, 19 Feb 2020 21:28:06 +0000 (22:28 +0100)]
docs: Regenerate CLI docs

5 years agoFix lazy publishing with publishResources=false
Bjørn Erik Pedersen [Wed, 19 Feb 2020 16:37:20 +0000 (17:37 +0100)]
Fix lazy publishing with publishResources=false

Fixes #6914

5 years agomodules: Improve "hugo mod clean"
Bjørn Erik Pedersen [Wed, 19 Feb 2020 15:59:54 +0000 (16:59 +0100)]
modules: Improve "hugo mod clean"

* Only clean project modules
* Optional glob pattern of module paths to clean

Closes #6907

5 years agocommands: Add "hugo mod verify"
Bjørn Erik Pedersen [Wed, 19 Feb 2020 09:39:36 +0000 (10:39 +0100)]
commands: Add "hugo mod verify"

See #6907

5 years agoAdd Page.GetTerms
Bjørn Erik Pedersen [Wed, 19 Feb 2020 08:16:27 +0000 (09:16 +0100)]
Add Page.GetTerms

Fixes #6905

5 years agoMerge commit '4b670bc8cc38103c2c60e5090c2f56bf30832b8d'
Bjørn Erik Pedersen [Wed, 19 Feb 2020 08:16:56 +0000 (09:16 +0100)]
Merge commit '4b670bc8cc38103c2c60e5090c2f56bf30832b8d'

5 years agoSquashed 'docs/' changes from 16753a78d..341ecabb2
Bjørn Erik Pedersen [Wed, 19 Feb 2020 08:16:56 +0000 (09:16 +0100)]
Squashed 'docs/' changes from 16753a78d..341ecabb2

341ecabb2 Update lookup-order.md
bfabd8ce8 Update homepage.md
7a1e0b742 Update shortcodes.md
e8bf22497 HTTPS links to Vimeo embeds
a9d0e7c68 Revise the wildly inaccurate types doc
af33bb724 netlify: Bump version
f4251583e Merge branch 'temp641'
4dcda861d releaser: Add release notes to /docs for release of 0.64.1
92bd0b1f5 Update errorf.md

git-subtree-dir: docs
git-subtree-split: 341ecabb29abb9a9626d52309ce0650311607b81

5 years agoAdd a list terms benchmark
Bjørn Erik Pedersen [Wed, 19 Feb 2020 08:01:02 +0000 (09:01 +0100)]
Add a list terms benchmark

See #6905

5 years agoHandle disabled RSS even if it's defined in outputs
Bjørn Erik Pedersen [Wed, 19 Feb 2020 07:38:46 +0000 (08:38 +0100)]
Handle disabled RSS even if it's defined in outputs

See https://github.com/gohugoio/hugo/issues/6897#issuecomment-587947078

5 years agoFix goMinorVersion on non-final Go releases
Elliott Sales de Andrade [Wed, 19 Feb 2020 07:46:21 +0000 (02:46 -0500)]
Fix goMinorVersion on non-final Go releases

This should work for alpha/beta/rc releases.

5 years agoUse the tree for taxonomy.Pages()
Bjørn Erik Pedersen [Tue, 18 Feb 2020 17:49:11 +0000 (18:49 +0100)]
Use the tree for taxonomy.Pages()

5 years agoAdd some cagegories to the site collections benchmarks
Bjørn Erik Pedersen [Tue, 18 Feb 2020 17:52:35 +0000 (18:52 +0100)]
Add some cagegories to the site collections benchmarks

5 years agotpl: Adjust the RSS taxonomy logic
Bjørn Erik Pedersen [Tue, 18 Feb 2020 16:29:46 +0000 (17:29 +0100)]
tpl: Adjust the RSS taxonomy logic

See #6909

5 years agotpl: Fix RSS template for the terms listing
Bjørn Erik Pedersen [Tue, 18 Feb 2020 15:55:30 +0000 (16:55 +0100)]
tpl: Fix RSS template for the terms listing

Fixes #6909

5 years agoFix taxonomy
Bjørn Erik Pedersen [Tue, 18 Feb 2020 15:16:09 +0000 (16:16 +0100)]
Fix taxonomy

Recently introduced in master.

See https://github.com/gohugoio/hugo/issues/6897#issuecomment-587499907

5 years agoFix RenderString for pages without content
Bjørn Erik Pedersen [Tue, 18 Feb 2020 13:00:58 +0000 (14:00 +0100)]
Fix RenderString for pages without content

Fixes #6882

5 years agomodules: Do not try to get local themes in "hugo mod get"
Bjørn Erik Pedersen [Tue, 18 Feb 2020 12:35:29 +0000 (13:35 +0100)]
modules: Do not try to get local themes in "hugo mod get"

Fixes #6893

5 years agodeps: Update goldmark-highlighting
satotake [Tue, 18 Feb 2020 13:08:46 +0000 (22:08 +0900)]
deps: Update goldmark-highlighting

See  #6901

5 years agocommands: Support "hugo mod get -u ./..."
Bjørn Erik Pedersen [Tue, 18 Feb 2020 11:17:16 +0000 (12:17 +0100)]
commands: Support "hugo mod get -u ./..."

Fixes #6828

5 years agoIntroduce a tree map for all content
Bjørn Erik Pedersen [Tue, 10 Sep 2019 09:26:34 +0000 (11:26 +0200)]
Introduce a tree map for all content

This commit introduces a new data structure to store pages and their resources.

This data structure is backed by radix trees.

This simplies tree operations, makes all pages a bundle,  and paves the way for #6310.

It also solves a set of annoying issues (see list below).

Not a motivation behind this, but this commit also makes Hugo in general a little bit faster and more memory effective (see benchmarks). Especially for partial rebuilds on content edits, but also when taxonomies is in use.

```
name                                   old time/op    new time/op    delta
SiteNew/Bundle_with_image/Edit-16        1.32ms ± 8%    1.00ms ± 9%  -24.42%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file/Edit-16    1.28ms ± 0%    0.94ms ± 0%  -26.26%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories/Edit-16      33.9ms ± 2%    21.8ms ± 1%  -35.67%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs/Edit-16            40.6ms ± 1%    37.7ms ± 3%   -7.20%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree/Edit-16        56.7ms ± 0%    51.7ms ± 1%   -8.82%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates/Edit-16      19.9ms ± 2%    18.3ms ± 3%   -7.64%  (p=0.029 n=4+4)
SiteNew/Page_collections/Edit-16         37.9ms ± 4%    34.0ms ± 2%  -10.28%  (p=0.029 n=4+4)
SiteNew/Bundle_with_image-16             10.7ms ± 0%    10.6ms ± 0%   -1.15%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16         10.8ms ± 0%    10.7ms ± 0%   -1.05%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16           43.2ms ± 1%    39.6ms ± 1%   -8.35%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16                 47.6ms ± 1%    47.3ms ± 0%     ~     (p=0.057 n=4+4)
SiteNew/Deep_content_tree-16             73.0ms ± 1%    74.2ms ± 1%     ~     (p=0.114 n=4+4)
SiteNew/Many_HTML_templates-16           37.9ms ± 0%    38.1ms ± 1%     ~     (p=0.114 n=4+4)
SiteNew/Page_collections-16              53.6ms ± 1%    54.7ms ± 1%   +2.09%  (p=0.029 n=4+4)

name                                   old alloc/op   new alloc/op   delta
SiteNew/Bundle_with_image/Edit-16         486kB ± 0%     430kB ± 0%  -11.47%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file/Edit-16     265kB ± 0%     209kB ± 0%  -21.06%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories/Edit-16      13.6MB ± 0%     8.8MB ± 0%  -34.93%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs/Edit-16            66.5MB ± 0%    63.9MB ± 0%   -3.95%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree/Edit-16        28.8MB ± 0%    25.8MB ± 0%  -10.55%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates/Edit-16      6.16MB ± 0%    5.56MB ± 0%   -9.86%  (p=0.029 n=4+4)
SiteNew/Page_collections/Edit-16         16.9MB ± 0%    16.0MB ± 0%   -5.19%  (p=0.029 n=4+4)
SiteNew/Bundle_with_image-16             2.28MB ± 0%    2.29MB ± 0%   +0.35%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16         2.07MB ± 0%    2.07MB ± 0%     ~     (p=0.114 n=4+4)
SiteNew/Tags_and_categories-16           14.3MB ± 0%    13.2MB ± 0%   -7.30%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16                 69.1MB ± 0%    69.0MB ± 0%     ~     (p=0.343 n=4+4)
SiteNew/Deep_content_tree-16             31.3MB ± 0%    31.8MB ± 0%   +1.49%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16           10.8MB ± 0%    10.9MB ± 0%   +1.11%  (p=0.029 n=4+4)
SiteNew/Page_collections-16              21.4MB ± 0%    21.6MB ± 0%   +1.15%  (p=0.029 n=4+4)

name                                   old allocs/op  new allocs/op  delta
SiteNew/Bundle_with_image/Edit-16         4.74k ± 0%     3.86k ± 0%  -18.57%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file/Edit-16     4.73k ± 0%     3.85k ± 0%  -18.58%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories/Edit-16        301k ± 0%      198k ± 0%  -34.14%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs/Edit-16              389k ± 0%      373k ± 0%   -4.07%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree/Edit-16          338k ± 0%      262k ± 0%  -22.63%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates/Edit-16        102k ± 0%       88k ± 0%  -13.81%  (p=0.029 n=4+4)
SiteNew/Page_collections/Edit-16           176k ± 0%      152k ± 0%  -13.32%  (p=0.029 n=4+4)
SiteNew/Bundle_with_image-16              26.8k ± 0%     26.8k ± 0%   +0.05%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16          26.8k ± 0%     26.8k ± 0%   +0.05%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16             273k ± 0%      245k ± 0%  -10.36%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16                   396k ± 0%      398k ± 0%   +0.39%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16               317k ± 0%      325k ± 0%   +2.53%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16             146k ± 0%      147k ± 0%   +0.98%  (p=0.029 n=4+4)
SiteNew/Page_collections-16                210k ± 0%      215k ± 0%   +2.44%  (p=0.029 n=4+4)
```

Fixes #6312
Fixes #6087
Fixes #6738
Fixes #6412
Fixes #6743
Fixes #6875
Fixes #6034
Fixes #6902
Fixes #6173
Fixes #6590

5 years agoAnother benchmark rename
Bjørn Erik Pedersen [Tue, 18 Feb 2020 08:48:36 +0000 (09:48 +0100)]
Another benchmark rename

5 years agoRename the Edit benchmarks
Bjørn Erik Pedersen [Tue, 18 Feb 2020 08:44:55 +0000 (09:44 +0100)]
Rename the Edit benchmarks

To make them easier to filter out.

5 years agomarkup/highlight: Fix chroma highlight
satotake [Mon, 17 Feb 2020 13:59:26 +0000 (22:59 +0900)]
markup/highlight: Fix chroma highlight

* Use chroma.Coalesce
* Escape code strings if lexer is nil

Fixes #6877
Fixes #6856

5 years agoRefactor a benchmark to make it runnable as test
Bjørn Erik Pedersen [Mon, 17 Feb 2020 08:24:15 +0000 (09:24 +0100)]
Refactor a benchmark to make it runnable as test

5 years agoAdd benchmark for content edits
Bjørn Erik Pedersen [Mon, 17 Feb 2020 07:45:14 +0000 (08:45 +0100)]
Add benchmark for content edits

5 years agoAdd "go mod verify" to build scripts
Bjørn Erik Pedersen [Sat, 15 Feb 2020 20:00:15 +0000 (21:00 +0100)]
Add "go mod verify" to build scripts

5 years agoAdd git to Dockerfile
Jaymo Kang [Fri, 14 Feb 2020 15:49:20 +0000 (07:49 -0800)]
Add git to Dockerfile

Needed for GitInfo.

5 years agodeps: Update go.sum
Bjørn Erik Pedersen [Fri, 14 Feb 2020 09:18:56 +0000 (10:18 +0100)]
deps: Update go.sum

5 years agocommands: Rename doWithCommandeer to cfgInit/cfgSetAndInit
Mark Rosemaker [Wed, 12 Feb 2020 23:37:49 +0000 (00:37 +0100)]
commands: Rename doWithCommandeer to cfgInit/cfgSetAndInit

This will make it clearer what it does and make the code more consistent.

5 years agodeps: Update golibsass
Bjørn Erik Pedersen [Wed, 12 Feb 2020 15:02:16 +0000 (16:02 +0100)]
deps: Update golibsass

Fixes #6885

5 years agoShuffle test files before insertion
Bjørn Erik Pedersen [Mon, 10 Feb 2020 11:03:41 +0000 (12:03 +0100)]
Shuffle test files before insertion

5 years agoUpdate to LibSass v3.6.3
Bjørn Erik Pedersen [Sat, 8 Feb 2020 18:57:23 +0000 (19:57 +0100)]
Update to LibSass v3.6.3

Fixes #6862

5 years agoreleaser: Prepare repository for 0.65.0-DEV
hugoreleaser [Sun, 9 Feb 2020 20:53:18 +0000 (20:53 +0000)]
releaser: Prepare repository for 0.65.0-DEV

[ci skip]

5 years agoreleaser: Add release notes to /docs for release of 0.64.1 v0.64.1
hugoreleaser [Sun, 9 Feb 2020 20:44:34 +0000 (20:44 +0000)]
releaser: Add release notes to /docs for release of 0.64.1

[ci skip]

5 years agoreleaser: Bump versions for release of 0.64.1
hugoreleaser [Sun, 9 Feb 2020 20:44:34 +0000 (20:44 +0000)]
releaser: Bump versions for release of 0.64.1

[ci skip]

5 years agoreleaser: Add release notes for 0.64.1
hugoreleaser [Sun, 9 Feb 2020 20:44:34 +0000 (20:44 +0000)]
releaser: Add release notes for 0.64.1
[ci skip]

5 years agohugofs: Fix mount with hole regression
Bjørn Erik Pedersen [Sun, 9 Feb 2020 16:58:55 +0000 (17:58 +0100)]
hugofs: Fix mount with hole regression

Fixes #6854

5 years agoFix bundle resource ordering regression
Bjørn Erik Pedersen [Sun, 9 Feb 2020 13:17:47 +0000 (14:17 +0100)]
Fix bundle resource ordering regression

Introduced in Hugo 0.64.0

Fixes #6851

5 years agoMerge commit '3c0036805d64fdd8290f1c4a31371780ff3ea365'
Bjørn Erik Pedersen [Thu, 6 Feb 2020 12:03:30 +0000 (13:03 +0100)]
Merge commit '3c0036805d64fdd8290f1c4a31371780ff3ea365'

5 years agoSquashed 'docs/' changes from bd0e15bb6..16753a78d
Bjørn Erik Pedersen [Thu, 6 Feb 2020 12:02:49 +0000 (13:02 +0100)]
Squashed 'docs/' changes from bd0e15bb6..16753a78d

16753a78d remove kaiju from comments.md
25906f6ad Hugo 0.64.0
aacc7a130 releaser: Add release notes to /docs for release of 0.64.0
2243afe90 Explain Ace/Amber support has been removed
293c9496a Document the hugo function
479890f9b Update comments.md
ceab41097 Update theme
9a95876c7 Remove note
696543e13 Update usage.md
a04bab2b9 Release 0.63.2
ccaed74b5 Merge branch 'temp632'
623b363c5 releaser: Add release notes to /docs for release of 0.63.2
39ce6f50e releaser: Add release notes to /docs for release of 0.63.2
9175ac2ca Another theme fix
88c264251 Rebuild _vendor
e739dc3a8 Release 0.63.1
129ecac84 Merge branch 'temp631'
bcd7c1154 releaser: Add release notes to /docs for release of 0.63.1
e4f0d9285 releaser: Add release notes to /docs for release of 0.63.1
6a40124d6 Update theme
c486747de Params cleanup
c408c4334 netlify: Bump to 0.63.0
7e8a48be8 Adjust base template docs
a5920e9aa Adjust release notes
d4d25c524 Merge branch 'temp63'
16d981721 releaser: Add release notes to /docs for release of 0.63.0
08ab681d1 releaser: Add release notes to /docs for release of 0.63.0
90feaac39 docs, output: Add base template lookup variant to docs.json
afe2b4399 docs, output: Add base template lookup variant to docs.json
1f7466a76 docs: Regen docs helper
7ceefb94a docs: Regen docs helper
ee14087cd Remove typo from RenderString.md
6daf333d3 Remove the calibreapp action
682f710d7 docs: Updating 'submodule add' command in "Host on GitHub" to use https instead of ssh.
ef57b2dae Improve documentation on slug behavior
835ddd9c2 Fix broken link
137a32f90 Fixed typo in content-management/page-resources
936633e25 Fixed spelling error, "wich" -> "which"
a559d41e3 Using a Different Version of Hugo in AWS Amplify
2ee83402d Update rss.md
f900a2ce0 Add render-image code example and edit wording
bd0a0207c Change wording on Page Resources documentation
d213b4599 linuxbrew was renamed to homebrew (#1004)
dcb0925f8 Update index.md
789416a08 Release 0.62.2
2dc66f13c releaser: Add release notes to /docs for release of 0.62.2
813fbc865 releaser: Add release notes to /docs for release of 0.62.2
ed5b07df3 docs: Document the new autoHeadingIDType setting
02d4747e5 docs: Document the new autoHeadingIDType setting
406a8a9a6 docs: Regenerate docshelper
065319786 docs: Regenerate docshelper
61d540021 Merge commit '26f1458a2df6b55eee3a5de46f5fec23a43a7c7d'
7cac5909b releaser: Add release notes to /docs for release of 0.62.1
6e30e01a2 releaser: Add release notes to /docs for release of 0.62.0
2694dcdd8 Merge commit '8a4005cf2b0ef34265ff8051a6b76226685fc226'
115dd6782 docs: More on hooks
f4460fd54 tpl: Do not return any value in errorf
3587d2998 tpl: Add a warnf template func
7c9b02e30 docs: Regen docshelper
a7bfdeb24 Fix incorrect MIME type from image/jpg to image/jpeg
1a6089cfe Preserve HTML Text for link render hooks
4544a998c docs: Footnote
c42733258 Add render template hooks for links and images
0d8bec78a Merge commit '2e711a28c71e8667258e5ab824f9b9a71c261b0a'
3974c326c markup/tableofcontents: Add config option for ordered list
8c2bd1a62 releaser: Add release notes to /docs for release of 0.61.0
f00b2d507 releaser: Add release notes to /docs for release of 0.60.1
9a5109838 releaser: Add release notes to /docs for release of 0.60.0
d2c222f71 Add Goldmark as the new default markdown handler
df96f9efa Update homepage.md
f17e67b4b tpl/collections: Allow dict to create nested structures
5f923768a Merge commit 'efc0b1bb6c6564f54d596467dbc6a18cb206954e'
8a861bf16 Support Go time format strings in permalinks
bbb8c4fea releaser: Add release notes to /docs for release of 0.59.1
9d9070dda releaser: Add release notes to /docs for release of 0.59.0
98716176b Merge commit '5ac0f751aa47e52625662215f66efa99a6abfc2e'
2057ba4c5 Merge commit '5070ba6c9e6c492deade3c30cfe769b9dbf7151d'
c98bcff07 Merge commit 'b9bd35d72e14932fb6588ff62b90cddef0a060fc' as 'docs'

git-subtree-dir: docs
git-subtree-split: 16753a78d85e05c4a2cea94e263dda2e0047d155

5 years agoCONTRIBUTING: Fix note about CGO
Cameron Moore [Thu, 6 Feb 2020 02:29:22 +0000 (20:29 -0600)]
CONTRIBUTING: Fix note about CGO

5 years agoUpdate Go version requirement
Bjørn Erik Pedersen [Tue, 4 Feb 2020 22:48:31 +0000 (23:48 +0100)]
Update Go version requirement

We run tests on current + (current -1) (we also test on the latest Go source), which means that the current supported Go versions are Go 1.12 and 1.13.

Closes #6853

5 years agoreleaser: Prepare repository for 0.65.0-DEV
hugoreleaser [Tue, 4 Feb 2020 09:16:38 +0000 (09:16 +0000)]
releaser: Prepare repository for 0.65.0-DEV

[ci skip]

5 years agoreleaser: Add release notes to /docs for release of 0.64.0 v0.64.0
hugoreleaser [Tue, 4 Feb 2020 09:07:21 +0000 (09:07 +0000)]
releaser: Add release notes to /docs for release of 0.64.0

[ci skip]

5 years agoreleaser: Bump versions for release of 0.64.0
hugoreleaser [Tue, 4 Feb 2020 09:07:21 +0000 (09:07 +0000)]
releaser: Bump versions for release of 0.64.0

[ci skip]

5 years agoUpdate 0.64.0-relnotes.md
Bjørn Erik Pedersen [Tue, 4 Feb 2020 08:57:29 +0000 (09:57 +0100)]
Update 0.64.0-relnotes.md

5 years agoreleaser: Add release notes for 0.64.0
hugoreleaser [Tue, 4 Feb 2020 08:45:30 +0000 (08:45 +0000)]
releaser: Add release notes for 0.64.0

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

5 years agoFix module mount in sub folder
Bjørn Erik Pedersen [Fri, 31 Jan 2020 16:15:14 +0000 (17:15 +0100)]
Fix module mount in sub folder

This addresses a specific issue, but is a also a major simplification of the filesystem file mounts.

Fixes #6730

5 years agoMention a "no CGO rule"
Bjørn Erik Pedersen [Sat, 1 Feb 2020 09:27:26 +0000 (10:27 +0100)]
Mention a "no CGO rule"

See #6842

5 years agocommands: Fix config environment handling
Bjørn Erik Pedersen [Fri, 31 Jan 2020 08:09:11 +0000 (09:09 +0100)]
commands: Fix config environment handling

Fixes #6503
Fixes #6824

5 years agoUpdate to Go 1.13.7 and Go 1.12.16
Bjørn Erik Pedersen [Fri, 31 Jan 2020 12:22:29 +0000 (13:22 +0100)]
Update to Go 1.13.7 and Go 1.12.16

Fixes #6830

5 years agotransform/livereloadinject: Add defer to livereload script tag
Bjørn Erik Pedersen [Fri, 31 Jan 2020 07:15:22 +0000 (08:15 +0100)]
transform/livereloadinject: Add defer to livereload script tag

In #6821 we moved the loading from end of body to head to make Turbolinks and similar work.

This commit adds a defer attribute to avoid page parse blocking.

5 years agotransform/livereloadinject: Don't use document.write to inject livereload
Bjørn Erik Pedersen [Fri, 31 Jan 2020 07:02:53 +0000 (08:02 +0100)]
transform/livereloadinject: Don't use document.write to inject livereload

I suspect the person who originally implemented it saw examples using location.host etc. to build the URL.

We have all that information ready at build (static) time.

Fixes #6507

5 years agohubolig: Add a render hook whitespace test
Bjørn Erik Pedersen [Fri, 31 Jan 2020 06:49:00 +0000 (07:49 +0100)]
hubolig: Add a render hook whitespace test

See #6832

5 years agoDo not render alias paginator pages for non-HTML outputs
Bjørn Erik Pedersen [Thu, 30 Jan 2020 17:35:40 +0000 (18:35 +0100)]
Do not render alias paginator pages for non-HTML outputs

Update #6797

5 years agoFix base template handling with preceding comments
Bjørn Erik Pedersen [Thu, 30 Jan 2020 19:02:26 +0000 (20:02 +0100)]
Fix base template handling with preceding comments

Fixes #6816

5 years agomodules: Fix "hugo mod get -u" with no arguments
Bjørn Erik Pedersen [Thu, 30 Jan 2020 08:08:49 +0000 (09:08 +0100)]
modules: Fix "hugo mod get -u" with no arguments

Fixes #6826
Closes #6825

5 years agotransform/livereloadinject: Inject livereload script right after head if possible
Bjørn Erik Pedersen [Wed, 29 Jan 2020 11:46:18 +0000 (12:46 +0100)]
transform/livereloadinject: Inject livereload script right after head if possible

We used to insert the livereload script right before the closing body.

This dord  not work when combined with tools such as Turbolinks.

This commit changes it So we try to inject the script as early as possible.

Fixes #6821

5 years agodeps: Update goldmark to v1.1.22
Bhavin Gandhi [Tue, 28 Jan 2020 15:53:17 +0000 (21:23 +0530)]
deps: Update goldmark to v1.1.22

v1.1.22 has a fix for issue where links with newline in the title
don't get parsed correctly. Reference:
https://github.com/yuin/goldmark/issues/94

Signed-off-by: Bhavin Gandhi <bhavin7392@gmail.com>
5 years agoreleaser: Prepare repository for 0.64.0-DEV
hugoreleaser [Mon, 27 Jan 2020 12:22:47 +0000 (12:22 +0000)]
releaser: Prepare repository for 0.64.0-DEV

[ci skip]

5 years agoreleaser: Add release notes to /docs for release of 0.63.2 v0.63.2
hugoreleaser [Mon, 27 Jan 2020 12:13:04 +0000 (12:13 +0000)]
releaser: Add release notes to /docs for release of 0.63.2

[ci skip]

5 years agoreleaser: Bump versions for release of 0.63.2
hugoreleaser [Mon, 27 Jan 2020 12:13:04 +0000 (12:13 +0000)]
releaser: Bump versions for release of 0.63.2

[ci skip]

5 years agoreleaser: Add release notes for 0.63.2
hugoreleaser [Mon, 27 Jan 2020 12:13:04 +0000 (12:13 +0000)]
releaser: Add release notes for 0.63.2
[ci skip]

5 years agohubolib: Revert to .Type = "page" when empty
Bjørn Erik Pedersen [Sun, 26 Jan 2020 14:53:42 +0000 (15:53 +0100)]
hubolib: Revert to .Type = "page" when empty

This was changed with good intentions in 0.63.0.

This behaviour was not documented, but it was of course in use.

This commit rolls back to how it behaved before:

For `Page.Type` you will get:

* `type` from front matter if set.
* `.Section`
* If none of the above returns anything, return "page"

Fixes #6805

5 years agoAnd now finally fix the 404 templates
Bjørn Erik Pedersen [Mon, 27 Jan 2020 11:30:31 +0000 (12:30 +0100)]
And now finally fix the 404 templates

Fixes #6795

5 years agoFix 404 with base template regression
Bjørn Erik Pedersen [Sun, 26 Jan 2020 12:14:08 +0000 (13:14 +0100)]
Fix 404 with base template regression

Fixes #6795

5 years agoreleaser: Prepare repository for 0.64.0-DEV
hugoreleaser [Thu, 23 Jan 2020 20:17:44 +0000 (20:17 +0000)]
releaser: Prepare repository for 0.64.0-DEV

[ci skip]

5 years agoreleaser: Add release notes to /docs for release of 0.63.1 v0.63.1
hugoreleaser [Thu, 23 Jan 2020 20:08:10 +0000 (20:08 +0000)]
releaser: Add release notes to /docs for release of 0.63.1

[ci skip]

5 years agoreleaser: Bump versions for release of 0.63.1
hugoreleaser [Thu, 23 Jan 2020 20:08:10 +0000 (20:08 +0000)]
releaser: Bump versions for release of 0.63.1

[ci skip]

5 years agoreleaser: Add release notes for 0.63.1
hugoreleaser [Thu, 23 Jan 2020 20:08:10 +0000 (20:08 +0000)]
releaser: Add release notes for 0.63.1
[ci skip]

5 years agodeps: Make the build flags shared between sites
Bjørn Erik Pedersen [Thu, 23 Jan 2020 19:11:53 +0000 (20:11 +0100)]
deps: Make the build flags shared between sites

Updates #6789

5 years agoFix baseof with regular define regression
Bjørn Erik Pedersen [Thu, 23 Jan 2020 16:34:19 +0000 (17:34 +0100)]
Fix baseof with regular define regression

Fixes #6790

5 years agoRevert to minify v2.6.1
Bjørn Erik Pedersen [Thu, 23 Jan 2020 16:03:23 +0000 (17:03 +0100)]
Revert to minify v2.6.1

Closes #6791

5 years agoreleaser: Prepare repository for 0.64.0-DEV
hugoreleaser [Thu, 23 Jan 2020 12:48:39 +0000 (12:48 +0000)]
releaser: Prepare repository for 0.64.0-DEV

[ci skip]

5 years agoreleaser: Add release notes to /docs for release of 0.63.0 v0.63.0
hugoreleaser [Thu, 23 Jan 2020 12:39:31 +0000 (12:39 +0000)]
releaser: Add release notes to /docs for release of 0.63.0

[ci skip]

5 years agoreleaser: Bump versions for release of 0.63.0
hugoreleaser [Thu, 23 Jan 2020 12:39:31 +0000 (12:39 +0000)]
releaser: Bump versions for release of 0.63.0

[ci skip]

5 years agoRelease 0.63.0
Bjørn Erik Pedersen [Thu, 23 Jan 2020 12:12:31 +0000 (13:12 +0100)]
Release 0.63.0

5 years agoreleaser: Add release notes for 0.63.0
hugoreleaser [Thu, 23 Jan 2020 11:12:11 +0000 (11:12 +0000)]
releaser: Add release notes for 0.63.0

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

5 years agodocs, output: Add base template lookup variant to docs.json
Bjørn Erik Pedersen [Thu, 23 Jan 2020 10:59:52 +0000 (11:59 +0100)]
docs, output: Add base template lookup variant to docs.json

5 years agodocs: Regen docs helper
Bjørn Erik Pedersen [Thu, 23 Jan 2020 10:55:08 +0000 (11:55 +0100)]
docs: Regen docs helper