brevno-suite/hugo
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

5 years agoFix 0.62.1 server rebuild slowdown regression
Bjørn Erik Pedersen [Wed, 22 Jan 2020 10:57:23 +0000 (11:57 +0100)]
Fix 0.62.1 server rebuild slowdown regression

Fixes #6784

5 years agotpl/compare: Fix eq when > 2 args
Bjørn Erik Pedersen [Thu, 23 Jan 2020 09:48:28 +0000 (10:48 +0100)]
tpl/compare: Fix eq when > 2 args

Fixes #6786

5 years agoAllow multiple arguments in ne/ge/gt/le/lt functions
Tan Yuanhong [Sun, 19 Jan 2020 12:52:06 +0000 (20:52 +0800)]
Allow multiple arguments in ne/ge/gt/le/lt functions
Treat op arg1 arg2 arg3 ... as (arg1 op arg2) && (arg1 op arg3)
and so on for ne/ge/gt/le/lt.

Closes #6619

5 years agohugolib: Disable a test assertion on ARM
Bjørn Erik Pedersen [Wed, 22 Jan 2020 10:44:29 +0000 (11:44 +0100)]
hugolib: Disable a test assertion on ARM

See #6655

5 years agotpl/tplimpl: Rework template management to get rid of concurrency issues
Bjørn Erik Pedersen [Wed, 15 Jan 2020 14:59:56 +0000 (15:59 +0100)]
tpl/tplimpl: Rework template management to get rid of concurrency issues

This more or less completes the simplification of the template handling code in Hugo started in v0.62.

The main motivation was to fix a long lasting issue about a crash in HTML content files  without front matter.

But this commit also comes with a big functional improvement.

As we now have moved the base template evaluation to the build stage we now use the same lookup rules for `baseof` as for `list` etc. type of templates.

This means that in this simple example you can have a `baseof` template for the `blog` section without having to duplicate the others:

```
layouts
├── _default
│   ├── baseof.html
│   ├── list.html
│   └── single.html
└── blog
    └── baseof.html
```

Also, when simplifying code, you often get rid of some double work, as shown in the "site building" benchmarks below.

These benchmarks looks suspiciously good, but I have repeated the below with ca. the same result. Compared to master:

```
name                              old time/op    new time/op    delta
SiteNew/Bundle_with_image-16        13.1ms ± 1%    10.5ms ± 1%  -19.34%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16    13.0ms ± 0%    10.7ms ± 1%  -18.05%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16      46.4ms ± 2%    43.1ms ± 1%   -7.15%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16            52.2ms ± 2%    47.8ms ± 1%   -8.30%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16        77.9ms ± 1%    70.9ms ± 1%   -9.01%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16      43.0ms ± 0%    37.2ms ± 1%  -13.54%  (p=0.029 n=4+4)
SiteNew/Page_collections-16         58.2ms ± 1%    52.4ms ± 1%   -9.95%  (p=0.029 n=4+4)

name                              old alloc/op   new alloc/op   delta
SiteNew/Bundle_with_image-16        3.81MB ± 0%    2.22MB ± 0%  -41.70%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16    3.60MB ± 0%    2.01MB ± 0%  -44.20%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16      19.3MB ± 1%    14.1MB ± 0%  -26.91%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16            70.7MB ± 0%    69.0MB ± 0%   -2.40%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16        37.1MB ± 0%    31.2MB ± 0%  -15.94%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16      17.6MB ± 0%    10.6MB ± 0%  -39.92%  (p=0.029 n=4+4)
SiteNew/Page_collections-16         25.9MB ± 0%    21.2MB ± 0%  -17.99%  (p=0.029 n=4+4)

name                              old allocs/op  new allocs/op  delta
SiteNew/Bundle_with_image-16         52.3k ± 0%     26.1k ± 0%  -50.18%  (p=0.029 n=4+4)
SiteNew/Bundle_with_JSON_file-16     52.3k ± 0%     26.1k ± 0%  -50.16%  (p=0.029 n=4+4)
SiteNew/Tags_and_categories-16        336k ± 1%      269k ± 0%  -19.90%  (p=0.029 n=4+4)
SiteNew/Canonify_URLs-16              422k ± 0%      395k ± 0%   -6.43%  (p=0.029 n=4+4)
SiteNew/Deep_content_tree-16          401k ± 0%      313k ± 0%  -21.79%  (p=0.029 n=4+4)
SiteNew/Many_HTML_templates-16        247k ± 0%      143k ± 0%  -42.17%  (p=0.029 n=4+4)
SiteNew/Page_collections-16           282k ± 0%      207k ± 0%  -26.55%  (p=0.029 n=4+4)
```

Fixes #6716
Fixes #6760
Fixes #6768
Fixes #6778

5 years agodeps: Update go-org
Niklas Fasching [Mon, 20 Jan 2020 17:53:51 +0000 (18:53 +0100)]
deps: Update go-org

Not really a new major version but it's used in production and apparently that
means it should be a 1+. Will try to follow semver better from now on.

Changes:

- `#+OPTIONS: toc:1` now supports not just true/false but numbers to limit
  headline levels included in table of conents
- bug fix latex fragment parsing

5 years agoexamples: Fix blog not building
Jonathan Ling [Sun, 19 Jan 2020 13:42:27 +0000 (08:42 -0500)]
examples: Fix blog not building

The example blog had not been updated for some time and I had to restructure it a little bit.

Fixes #6752

Changed tag and category directory structure

5 years agoAdd support for newline characters in raw string shortcode
Joshua Wong [Sat, 18 Jan 2020 06:33:15 +0000 (14:33 +0800)]
Add support for newline characters in raw string shortcode

5 years agodeps: Update github.com/alecthomas/chroma
Ghislain Bourgeois [Thu, 16 Jan 2020 15:07:45 +0000 (10:07 -0500)]
deps: Update github.com/alecthomas/chroma

This new release improves YAML syntax highlighting.

5 years agodeps: Update minify to v2.7.2
Bjørn Erik Pedersen [Wed, 15 Jan 2020 15:04:44 +0000 (16:04 +0100)]
deps: Update minify to v2.7.2

Fixes #6756

5 years agodeps: Update Goldmark to v1.1.21
Matt Riggott [Wed, 15 Jan 2020 09:32:45 +0000 (09:32 +0000)]
deps: Update Goldmark to v1.1.21

This is the first version of Goldmark that supports all the
Smartypants-style typographic punctuation transformations. Now, a
straight single quote in the middle of a word is translated into a curly
quote (e.g. "that's" becomes "that&rsquo;s"). Earlier versions leave
them untouched. This brings Goldmark in line with Blackfriday.

Fixes #6571.

5 years agoAllow raw string literals in shortcode params
Joshua Wong [Tue, 14 Jan 2020 05:36:33 +0000 (13:36 +0800)]
Allow raw string literals in shortcode params

5 years agodeps: Update github.com/gohugoio/testmodBuilder
Bjørn Erik Pedersen [Tue, 14 Jan 2020 16:09:11 +0000 (17:09 +0100)]
deps: Update github.com/gohugoio/testmodBuilder

5 years agohugolib: Some more benchmark adjustments
Bjørn Erik Pedersen [Mon, 13 Jan 2020 15:47:10 +0000 (16:47 +0100)]
hugolib: Some more benchmark adjustments

5 years agohugolib: Adjust site benchmarks
Bjørn Erik Pedersen [Mon, 13 Jan 2020 15:32:48 +0000 (16:32 +0100)]
hugolib: Adjust site benchmarks

5 years agodeps: Update direct dependencies
Bjørn Erik Pedersen [Tue, 7 Jan 2020 15:20:43 +0000 (16:20 +0100)]
deps: Update direct dependencies

Closes #6719

5 years agominifiers: Update to new CSS config
Bjørn Erik Pedersen [Tue, 7 Jan 2020 17:06:22 +0000 (18:06 +0100)]
minifiers: Update to new CSS config

Update #6719

5 years agodeps: Update to Minify v2.7.0
Bjørn Erik Pedersen [Tue, 7 Jan 2020 15:13:38 +0000 (16:13 +0100)]
deps: Update to Minify v2.7.0

Updates ##6719

5 years agoRevert "Add support for freebsd/arm64"
Bjørn Erik Pedersen [Tue, 7 Jan 2020 12:42:43 +0000 (13:42 +0100)]
Revert "Add support for freebsd/arm64"

golang.org/x/sys is an indirect dependency and needs to be updates as such.

This reverts commit aead8108b80d77e23c68a47fd8d86464310130be.

5 years agoAdd support for freebsd/arm64
Dmitri Goutnik [Tue, 7 Jan 2020 12:21:19 +0000 (07:21 -0500)]
Add support for freebsd/arm64

Update #6719 6719

5 years agotpl: Put Go's internal template funcs in Hugo's map
Bjørn Erik Pedersen [Tue, 7 Jan 2020 09:23:24 +0000 (10:23 +0100)]
tpl: Put Go's internal template funcs in Hugo's map

```
name                            old time/op    new time/op    delta
SiteNew/Many_HTML_templates-16    43.4ms ± 0%    42.7ms ± 0%  -1.71%  (p=0.016 n=4+5)

name                            old alloc/op   new alloc/op   delta
SiteNew/Many_HTML_templates-16    17.5MB ± 0%    17.5MB ± 0%    ~     (p=0.690 n=5+5)

name                            old allocs/op  new allocs/op  delta
SiteNew/Many_HTML_templates-16      247k ± 0%      247k ± 0%    ~     (p=0.310 n=5+5)
```

Fixes #6717

5 years agoUpdate releasenotes_writer.go
Bjørn Erik Pedersen [Tue, 7 Jan 2020 12:15:22 +0000 (13:15 +0100)]
Update releasenotes_writer.go

5 years agohugolib: Add a benchmark with lots of templates
Bjørn Erik Pedersen [Tue, 7 Jan 2020 09:42:28 +0000 (10:42 +0100)]
hugolib: Add a benchmark with lots of templates

5 years agoreleaser: Prepare repository for 0.63.0-DEV
hugoreleaser [Sun, 5 Jan 2020 18:58:55 +0000 (18:58 +0000)]
releaser: Prepare repository for 0.63.0-DEV

[ci skip]

5 years agoreleaser: Add release notes to /docs for release of 0.62.2 v0.62.2
hugoreleaser [Sun, 5 Jan 2020 18:50:35 +0000 (18:50 +0000)]
releaser: Add release notes to /docs for release of 0.62.2

[ci skip]

5 years agoreleaser: Bump versions for release of 0.62.2
hugoreleaser [Sun, 5 Jan 2020 18:50:35 +0000 (18:50 +0000)]
releaser: Bump versions for release of 0.62.2

[ci skip]

5 years agoreleaser: Add release notes for 0.62.2
hugoreleaser [Sun, 5 Jan 2020 18:50:35 +0000 (18:50 +0000)]
releaser: Add release notes for 0.62.2
[ci skip]

5 years agohugolib: Fix relative .Page.GetPage from bundle
Bjørn Erik Pedersen [Sun, 5 Jan 2020 11:56:41 +0000 (12:56 +0100)]
hugolib: Fix relative .Page.GetPage from bundle

Fixes #6705

5 years agomarkup/goldmark: Adjust auto ID space handling
Bjørn Erik Pedersen [Sun, 5 Jan 2020 14:58:14 +0000 (15:58 +0100)]
markup/goldmark: Adjust auto ID space handling

GitHub does not consider tabs as delimiter, see https://github.com/bep/portable-hugo-links/blob/master/blog/p2.md

Closes #6710

5 years agodocs: Document the new autoHeadingIDType setting
Bjørn Erik Pedersen [Sun, 5 Jan 2020 11:07:36 +0000 (12:07 +0100)]
docs: Document the new autoHeadingIDType setting

See #6707
See #6616

5 years agodocs: Regenerate docshelper
Bjørn Erik Pedersen [Sun, 5 Jan 2020 10:57:25 +0000 (11:57 +0100)]
docs: Regenerate docshelper

See #6707
See #6616

5 years agomarkup/goldmark: Add an optional Blackfriday auto ID strategy
Bjørn Erik Pedersen [Sun, 5 Jan 2020 10:52:00 +0000 (11:52 +0100)]
markup/goldmark: Add an optional Blackfriday auto ID strategy

Fixes #6707

5 years agomarkup/goldmark: Make the autoID type config a string
Bjørn Erik Pedersen [Sun, 5 Jan 2020 10:29:22 +0000 (11:29 +0100)]
markup/goldmark: Make the autoID type config a string

To potentially make room for one more.

See #6707

5 years agoMerge commit '26f1458a2df6b55eee3a5de46f5fec23a43a7c7d'
Bjørn Erik Pedersen [Sun, 5 Jan 2020 10:14:51 +0000 (11:14 +0100)]
Merge commit '26f1458a2df6b55eee3a5de46f5fec23a43a7c7d'

5 years agoSquashed 'docs/' changes from 54f0e8776..bd0e15bb6
Bjørn Erik Pedersen [Sun, 5 Jan 2020 10:13:09 +0000 (11:13 +0100)]
Squashed 'docs/' changes from 54f0e8776..bd0e15bb6

bd0e15bb6 Optimised images with calibre/image-actions
59830ea44 Remove comments from quickstart code samples
348821b5d Remove image-actions
1cbbd26a9 Update index.md
bcf3de764 Update index.md
fcf17e6ef Release 0.62.1
0956bde21 Merge branch 'temp621'
28d604756 releaser: Add release notes to /docs for release of 0.62.1
c895f12e7 Fix statement about version installed with apt-get (#854)
e96928e38 Updated quickstart to split theme download and theme config add into separate blocks (#967)
e099c1ad6 changed ".Title" to ".URL" (#972)
bea71280d Fix small typing error (#1001)
9c28c422e Correct hyperlink for 'markdownify' function
cf3844a06 Corrected small conjugation mistake (#996)
8b9c1d4f2 Added remarks about additional parameters in ref/relref (#995)
ca06c9a56 Fix illegal character in render-link.html example
7a85c789b Update RenderString.md
69df3b17e Update configuration-markup.md
43e9222a2 Revert "Add shortcodes to note comparing with `markdownify`"
2bd5bc2d7 Add shortcodes to note comparing with `markdownify`
ddfee60b7 Update configuration-markup.md
f87c35fe2 docs: Remove extra double quotation
5ca5cc15f Update index.md
6e457f5ec Update configuration-markup.md
12df3c0fc Update configuration-markup.md
91977fd96 Update configuration-markup.md
377b8954a Update configuration-markup.md
99d691b5e Update hosting-on-render.md
ccf855b22 Update index.md
a945acc42 Update index.md
7d4f308d6 Fix Netlify config
f4caa07f5 Release 0.62.0
79d18276f releaser: Add release notes to /docs for release of 0.62.0
9db1a08d1 Merge commit '8a4005cf2b0ef34265ff8051a6b76226685fc226'
79e556223 docs: More on hooks
5088c54df tpl: Do not return any value in errorf
98c8c8638 tpl: Add a warnf template func
4a9d76cea docs: Regen docshelper
626e53b55 Fix incorrect MIME type from image/jpg to image/jpeg
f92f77c5d Preserve HTML Text for link render hooks
6db9c52b1 docs: Footnote
16801db3b Add render template hooks for links and images
0facb823c Merge commit '2e711a28c71e8667258e5ab824f9b9a71c261b0a'
79bf8ed4c markup/tableofcontents: Add config option for ordered list

git-subtree-dir: docs
git-subtree-split: bd0e15bb6063f7ad4f0c47eb33c8c0c23c962d13

5 years agomarkup/goldmark: Simplify code
Bjørn Erik Pedersen [Sat, 4 Jan 2020 22:58:23 +0000 (23:58 +0100)]
markup/goldmark: Simplify code

5 years agomarkup/goldmark: Make auto IDs GitHub compatible
Bjørn Erik Pedersen [Sat, 4 Jan 2020 10:28:19 +0000 (11:28 +0100)]
markup/goldmark: Make auto IDs GitHub compatible

You can turn off this behaviour:

```toml
[markup]
  [markup.goldmark]
    [markup.goldmark.parser]
      autoHeadingIDAsciiOnly = true
```
Note that the `anchorize` now adapts its behaviour depending on the default Markdown handler.

Fixes #6616

5 years agoreleaser: Prepare repository for 0.63.0-DEV
hugoreleaser [Wed, 1 Jan 2020 17:46:46 +0000 (17:46 +0000)]
releaser: Prepare repository for 0.63.0-DEV

[ci skip]

5 years agoreleaser: Add release notes to /docs for release of 0.62.1 v0.62.1
hugoreleaser [Wed, 1 Jan 2020 17:38:22 +0000 (17:38 +0000)]
releaser: Add release notes to /docs for release of 0.62.1

[ci skip]

5 years agoreleaser: Bump versions for release of 0.62.1
hugoreleaser [Wed, 1 Jan 2020 17:38:22 +0000 (17:38 +0000)]
releaser: Bump versions for release of 0.62.1

[ci skip]

5 years agoreleaser: Add release notes for 0.62.1
hugoreleaser [Wed, 1 Jan 2020 17:38:22 +0000 (17:38 +0000)]
releaser: Add release notes for 0.62.1
[ci skip]

5 years agoSupport files in content mounts
Bjørn Erik Pedersen [Mon, 30 Dec 2019 09:50:00 +0000 (10:50 +0100)]
Support files in content mounts

This commit is a general improvement of handling if single file mounts.

Fixes #6684
Fixes #6696

5 years agoUpdate alpine base image in Dockerfile to 3.11
Remco de Man [Mon, 30 Dec 2019 11:18:15 +0000 (12:18 +0100)]
Update alpine base image in Dockerfile to 3.11

When building the extended version of Hugo using the Dockerfile and
`--build-arg HUGO_BUILD_TAGS=extended`, the obtained Docker container is
broken, because the source is build under alpine 3.11 and the compiled
binary is copied to an image based on alpine 3.10. This problem was most
likely introduced due to an update of the golang base image.

This commit changes the base image from alpine:3.10 to alpine:3.11,
fixing extended version builds.