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]
hugoreleaser [Wed, 1 Jan 2020 17:38:22 +0000 (17:38 +0000)]
releaser: Bump versions for release of 0.62.1
[ci skip]
hugoreleaser [Wed, 1 Jan 2020 17:38:22 +0000 (17:38 +0000)]
releaser: Add release notes for 0.62.1
[ci skip]
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
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.
Bjørn Erik Pedersen [Sat, 28 Dec 2019 11:07:23 +0000 (12:07 +0100)]
hugolib: Fix inline shortcode regression
Fixes #6677
hugoreleaser [Mon, 23 Dec 2019 10:32:39 +0000 (10:32 +0000)]
releaser: Prepare repository for 0.63.0-DEV
[ci skip]
hugoreleaser [Mon, 23 Dec 2019 10:23:27 +0000 (10:23 +0000)]
releaser: Add release notes to /docs for release of 0.62.0
[ci skip]
hugoreleaser [Mon, 23 Dec 2019 10:23:27 +0000 (10:23 +0000)]
releaser: Bump versions for release of 0.62.0
[ci skip]
Bjørn Erik Pedersen [Mon, 23 Dec 2019 09:49:08 +0000 (10:49 +0100)]
Release 0.62.0
hugoreleaser [Mon, 23 Dec 2019 08:57:02 +0000 (08:57 +0000)]
releaser: Add release notes for 0.62.0
Rename to *-ready.md to continue.
[ci skip]
Bjørn Erik Pedersen [Sun, 22 Dec 2019 21:51:45 +0000 (22:51 +0100)]
Bjørn Erik Pedersen [Sun, 22 Dec 2019 21:51:45 +0000 (22:51 +0100)]
Squashed 'docs/' changes from
af4b7ac5b..
54f0e8776
54f0e8776 Update image-actions.yml
94e5cad02 Update image-actions.yml
0ad20d226 Add a page about Hugo's Security Model
0dee16d11 Link to Régis Full Partials series
138782808 Update partialCached.md
git-subtree-dir: docs
git-subtree-split:
54f0e877670fd434c6903e20774fcf7eba9255fa
Bjørn Erik Pedersen [Fri, 20 Dec 2019 19:37:47 +0000 (20:37 +0100)]
deps: Update Goldmark to v1.1.18
Fixes #6649
Niklas Fasching [Sun, 22 Dec 2019 13:39:09 +0000 (14:39 +0100)]
deps: Update go-org
- export #+TITLE (front-matter title) as `<h1>` and demote all normal headlines
by 1 accordingly (i.e. a normal top level headline now becomes a `<h2>`
rather than a `<h1>`)
- preserve whitespace in paragraphs - this allows rendering meaningful
whitespace when wished for using e.g. css `white-space: pre;` (e.g. in verse
/ quote blocks)
Bjørn Erik Pedersen [Sat, 21 Dec 2019 10:59:36 +0000 (11:59 +0100)]
docs: More on hooks
Bjørn Erik Pedersen [Sat, 21 Dec 2019 09:26:14 +0000 (10:26 +0100)]
tpl: Do not return any value in errorf
Fixes #6653
Bjørn Erik Pedersen [Fri, 20 Dec 2019 19:46:17 +0000 (20:46 +0100)]
tpl: Add a warnf template func
Fixes #6628
Bjørn Erik Pedersen [Fri, 20 Dec 2019 07:11:36 +0000 (08:11 +0100)]
hugolib: Improve error and reload handling of hook templates in server mode
Fixes #6635
Bjørn Erik Pedersen [Fri, 20 Dec 2019 07:00:37 +0000 (08:00 +0100)]
deps: Update to Goldmark v1.1.17
Fixes #6641
Bjørn Erik Pedersen [Thu, 19 Dec 2019 22:48:01 +0000 (23:48 +0100)]
docs: Regen docshelper
Bjørn Erik Pedersen [Thu, 19 Dec 2019 19:50:30 +0000 (20:50 +0100)]
tpl/collections: Some more params merge adjustments
* If the end result is maps.Params, we need to lower the keys
* Also make sure to handle nested maps of different type
Update #6633
Bjørn Erik Pedersen [Thu, 19 Dec 2019 16:43:07 +0000 (17:43 +0100)]
Preserve HTML Text for image render hooks
Fixes #6639
Bjørn Erik Pedersen [Thu, 19 Dec 2019 11:17:44 +0000 (12:17 +0100)]
Fix abs path handling in module mounts
Fixes #6622
John Zaitseff [Thu, 19 Dec 2019 14:04:18 +0000 (01:04 +1100)]
Fix incorrect MIME type from image/jpg to image/jpeg
According to multiple sources, both official ([IANA] and [RFC2046]) and
otherwise (eg, [Mozilla] and [Wikipedia]), the official MIME type for
JPEG images is `image/jpeg`, not `image/jpg`. Change Hugo to match.
[IANA]: https://www.iana.org/assignments/media-types/media-types.xhtml#image
[RFC2046]: https://tools.ietf.org/html/rfc2046
[Mozilla]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types
[Wikipedia]: https://en.wikipedia.org/wiki/JPEG
Bjørn Erik Pedersen [Wed, 18 Dec 2019 21:00:53 +0000 (22:00 +0100)]
deps: Update Goldmark
Fixes #6626
Bjørn Erik Pedersen [Wed, 18 Dec 2019 16:23:09 +0000 (17:23 +0100)]
Preserve HTML Text for link render hooks
The context now have two text methods:
* Text - rendered
* PlainText
Fixes #6629
Bjørn Erik Pedersen [Wed, 18 Dec 2019 20:31:34 +0000 (21:31 +0100)]
tpl/collections: Fix merge vs Params
Fixes #6633
Bjørn Erik Pedersen [Wed, 18 Dec 2019 15:50:34 +0000 (16:50 +0100)]
tpl: Get rid of the custom template truth logic
Fixes #6615
Bjørn Erik Pedersen [Wed, 18 Dec 2019 15:37:43 +0000 (16:37 +0100)]
docs: Footnote
Bjørn Erik Pedersen [Wed, 27 Nov 2019 12:42:36 +0000 (13:42 +0100)]
Add render template hooks for links and images
This commit also
* revises the change detection for templates used by content files in server mode.
* Adds a Page.RenderString method
Fixes #6545
Fixes #4663
Closes #6043
Bjørn Erik Pedersen [Sun, 15 Dec 2019 09:37:36 +0000 (10:37 +0100)]
Bjørn Erik Pedersen [Sun, 15 Dec 2019 09:35:09 +0000 (10:35 +0100)]
Squashed 'docs/' changes from
51c4f3184..
af4b7ac5b
af4b7ac5b Remove mention of Amber and Ace
c841e9207 Exif docs corrections (#978)
0f82420b8 Change cache assets default example to 1 year
676dc6e12 Release 0.61.0
a1d9fb18a Merge commit '
79c5d7053486f540b6219e693d5590f2c4c3937a'
1b9e675cd releaser: Add release notes to /docs for release of 0.61.0
5b95cbc8a Fixed suffixIsRemoved error in code samples (#975)
59b2c245b Fix Usage section in toc.md to consider Goldmark TOC settings
fd3828673 Add link on how to configure TOC w/ Goldmark
ea339f2d6 Added external learning resources including Hugo In Action book.
fab502d5d Adjust release notes
269a025ef Release 0.60.1
6bff50bea Merge branch 'temp601'
e15251c43 releaser: Add release notes to /docs for release of 0.60.1
690b864b9 Update use-modules.md
345ca8c36 Update syntax-highlighting.md
be64af9f5 Update syntax-highlighting.md
df9dead83 Update syntax-highlighting.md
1c6e6d238 Fix relnotes
0ea6b2012 Update homepagetweets.toml
2c465625d Update index.md
0025bba09 Update index.md
7417f1c05 Update index.md
9eeb8ce57 Release 0.60.0
25a711023 Merge branch 'temp60'
0c4faab0e releaser: Add release notes to /docs for release of 0.60.0
779e5108e Update installing.md
2ef1c386a Minor text improvements in README.md
41ec5a19a Reword sentence for clarity search.md
ded74f098 Add Goldmark as the new default markdown handler
cb55cdbb0 Update introduction.md
fcaad653a Update homepage.md
7427a1fc5 Update configuration.md
8cc2c72ca tpl/collections: Allow dict to create nested structures
4538c092c Merge commit '
efc0b1bb6c6564f54d596467dbc6a18cb206954e'
90f908e7b Support Go time format strings in permalinks
git-subtree-dir: docs
git-subtree-split:
af4b7ac5b403e392a92228e66058331905fff7dc
Shohei Ueda [Sat, 14 Dec 2019 12:51:18 +0000 (21:51 +0900)]
Enhance accessibility to issues
Add links to the Hugo issues, Hugo docs issues, and Hugo website theme issues.
Close #6233
Bjørn Erik Pedersen [Thu, 12 Dec 2019 13:48:59 +0000 (14:48 +0100)]
hugolib: Fix test
Bjørn Erik Pedersen [Thu, 12 Dec 2019 13:45:46 +0000 (14:45 +0100)]
deps: Re-introduce the correct version of Goldmark
It was accidently pulled back to an old version earlier today.
Bjørn Erik Pedersen [Thu, 12 Dec 2019 10:44:36 +0000 (11:44 +0100)]
tpl: Add some comments
Bjørn Erik Pedersen [Tue, 10 Dec 2019 18:56:44 +0000 (19:56 +0100)]
Rework template handling for function and map lookups
This is a big commit, but it deletes lots of code and simplifies a lot.
* Resolving the template funcs at execution time means we don't have to create template clones per site
* Having a custom map resolver means that we can remove the AST lower case transformation for the special lower case Params map
Not only is the above easier to reason about, it's also faster, especially if you have more than one language, as in the benchmark below:
```
name old time/op new time/op delta
SiteNew/Deep_content_tree-16 53.7ms ± 0% 48.1ms ± 2% -10.38% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
SiteNew/Deep_content_tree-16 41.0MB ± 0% 36.8MB ± 0% -10.26% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
SiteNew/Deep_content_tree-16 481k ± 0% 410k ± 0% -14.66% (p=0.029 n=4+4)
```
This should be even better if you also have lots of templates.
Closes #6594
Bjørn Erik Pedersen [Tue, 10 Dec 2019 07:02:15 +0000 (08:02 +0100)]
Create lightweight forks of text/template and html/template
This commit also removes support for Ace and Amber templates.
Updates #6594
Gavin D. Howard [Thu, 12 Dec 2019 06:48:40 +0000 (23:48 -0700)]
markup/tableofcontents: Add config option for ordered list
hugoreleaser [Wed, 11 Dec 2019 08:35:04 +0000 (08:35 +0000)]
releaser: Prepare repository for 0.62.0-DEV
[ci skip]
hugoreleaser [Wed, 11 Dec 2019 08:26:33 +0000 (08:26 +0000)]
releaser: Add release notes to /docs for release of 0.61.0
[ci skip]
hugoreleaser [Wed, 11 Dec 2019 08:26:33 +0000 (08:26 +0000)]
releaser: Bump versions for release of 0.61.0
[ci skip]
Bjørn Erik Pedersen [Wed, 11 Dec 2019 08:12:18 +0000 (09:12 +0100)]
Release 0.61.0
hugoreleaser [Wed, 11 Dec 2019 07:55:37 +0000 (07:55 +0000)]
releaser: Add release notes for 0.61.0
Rename to *-ready.md to continue.
[ci skip]
Bjørn Erik Pedersen [Tue, 10 Dec 2019 22:50:02 +0000 (23:50 +0100)]
deps: Update Goldmark
Bjørn Erik Pedersen [Wed, 11 Dec 2019 07:08:42 +0000 (08:08 +0100)]
Deprecate Ace and Amber
Fixes #6609
Daniel Tang [Tue, 10 Dec 2019 20:37:52 +0000 (12:37 -0800)]
markup: Add typographic chars from goldmark to toc
Fixes #6592
Bjørn Erik Pedersen [Mon, 2 Dec 2019 20:10:27 +0000 (21:10 +0100)]
tpl/partials: Allow any key type in partialCached
Fixes #6572
Bjørn Erik Pedersen [Mon, 2 Dec 2019 07:31:23 +0000 (08:31 +0100)]
markup: Reimplement pygmentsCodefencesGuessSyntax
Fixes #6565
Bjørn Erik Pedersen [Sun, 1 Dec 2019 19:50:58 +0000 (20:50 +0100)]
deps: Update Goldmark
Fixes #6557
hugoreleaser [Fri, 29 Nov 2019 15:05:19 +0000 (15:05 +0000)]
releaser: Prepare repository for 0.61.0-DEV
[ci skip]
hugoreleaser [Fri, 29 Nov 2019 14:56:16 +0000 (14:56 +0000)]
releaser: Add release notes to /docs for release of 0.60.1
[ci skip]
hugoreleaser [Fri, 29 Nov 2019 14:56:16 +0000 (14:56 +0000)]
releaser: Bump versions for release of 0.60.1
[ci skip]
hugoreleaser [Fri, 29 Nov 2019 14:56:16 +0000 (14:56 +0000)]
releaser: Add release notes for 0.60.1
[ci skip]
MeiK [Fri, 29 Nov 2019 13:37:32 +0000 (21:37 +0800)]
deps: Update minify
Fixes #6475
Bjørn Erik Pedersen [Fri, 29 Nov 2019 10:12:54 +0000 (11:12 +0100)]
Fix headless regression
Fixes #6552
Bjørn Erik Pedersen [Fri, 29 Nov 2019 09:10:08 +0000 (10:10 +0100)]
deps: Update Goldmark
Fixes #6549
Fixes #6551
Bjørn Erik Pedersen [Fri, 29 Nov 2019 09:50:36 +0000 (10:50 +0100)]
hugolib: Fix timeout number parsing for YAML/JSON config
Where numbers are all floats.
Fixes #6555
hugoreleaser [Wed, 27 Nov 2019 10:19:00 +0000 (10:19 +0000)]
releaser: Prepare repository for 0.61.0-DEV
[ci skip]
hugoreleaser [Wed, 27 Nov 2019 10:09:46 +0000 (10:09 +0000)]
releaser: Add release notes to /docs for release of 0.60.0
[ci skip]
hugoreleaser [Wed, 27 Nov 2019 10:09:46 +0000 (10:09 +0000)]
releaser: Bump versions for release of 0.60.0
[ci skip]
Bjørn Erik Pedersen [Wed, 27 Nov 2019 10:01:50 +0000 (11:01 +0100)]
Release 0.60.0
hugoreleaser [Wed, 27 Nov 2019 09:09:04 +0000 (09:09 +0000)]
releaser: Add release notes for 0.60.0
Rename to *-ready.md to continue.
[ci skip]
Bjørn Erik Pedersen [Wed, 27 Nov 2019 08:51:47 +0000 (09:51 +0100)]
modules: Add some more output if modules download takes time
Closes #6519
Bjørn Erik Pedersen [Wed, 27 Nov 2019 08:18:54 +0000 (09:18 +0100)]
Add some internal template image tests
Closes #6542
Max Arnold [Wed, 7 Nov 2018 13:30:42 +0000 (20:30 +0700)]
tpl/tplimpl: Featured and Site.Params image support for Schema
Bjørn Erik Pedersen [Tue, 26 Nov 2019 21:23:45 +0000 (22:23 +0100)]
hugolib: Disable test assertion on Windows
Bjørn Erik Pedersen [Mon, 25 Nov 2019 17:41:46 +0000 (18:41 +0100)]
deps: Update Goldmark
Closes https://github.com/yuin/goldmark/issues/36#event-
2832923993
Max Arnold [Tue, 26 Nov 2019 19:11:53 +0000 (02:11 +0700)]
tpl/tplimpl: Add support for featured and global image to OpenGraph template
Bjørn Erik Pedersen [Tue, 26 Nov 2019 13:20:31 +0000 (14:20 +0100)]
hugolib: Fix cascade in server mode
Fixes #6538
Bjørn Erik Pedersen [Tue, 26 Nov 2019 12:12:44 +0000 (13:12 +0100)]
hugolib: Fix .Sections vs siblings
Fixes #6365
Bjørn Erik Pedersen [Tue, 26 Nov 2019 08:44:31 +0000 (09:44 +0100)]
Fix language handling in ExecuteAsTemplate
Fixes #6331
Bjørn Erik Pedersen [Mon, 25 Nov 2019 19:19:41 +0000 (20:19 +0100)]
hugolib: Adjust .Site.Permalinks deprecation level
Bjørn Erik Pedersen [Mon, 25 Nov 2019 19:17:59 +0000 (20:17 +0100)]
hugolib: Remove .Site.Ref/RelRef
Bjørn Erik Pedersen [Mon, 25 Nov 2019 19:04:49 +0000 (20:04 +0100)]
Deprecate mmark
Fixes #6486
Bjørn Erik Pedersen [Mon, 25 Nov 2019 19:13:29 +0000 (20:13 +0100)]
hugolib: Fix recently broken timeout config
Bjørn Erik Pedersen [Mon, 25 Nov 2019 18:08:35 +0000 (19:08 +0100)]
commands: Use HUGO_ENV if set
Fixes #6456
Bjørn Erik Pedersen [Mon, 25 Nov 2019 11:49:04 +0000 (12:49 +0100)]
resources/images: Make the image cache more robust
Also allow timeout to be set as a duration string, e.g. `30s`.
Fixes #6501
Bjørn Erik Pedersen [Mon, 25 Nov 2019 11:17:42 +0000 (12:17 +0100)]
Update to Go 1.13.4 and Go 1.12.13
Bjørn Erik Pedersen [Mon, 25 Nov 2019 10:26:47 +0000 (11:26 +0100)]
mage: Restore -v behaviour
Bjørn Erik Pedersen [Mon, 25 Nov 2019 09:37:49 +0000 (10:37 +0100)]
hugolib: Increase default timeout value to 30s
Fixes #6502
Bjørn Erik Pedersen [Mon, 25 Nov 2019 09:09:18 +0000 (10:09 +0100)]
hubolig: Fix potential data race
Fixes #6478
Bjørn Erik Pedersen [Mon, 25 Nov 2019 15:58:37 +0000 (16:58 +0100)]
Revert "deps: Update Goldmark"
See https://github.com/yuin/goldmark/issues/36
This reverts commit
8221912869cf863d64ae7b50e0085589dc18e4d2.
Bjørn Erik Pedersen [Mon, 25 Nov 2019 11:50:45 +0000 (12:50 +0100)]
deps: Update Goldmark
Chris Trimble [Mon, 25 Nov 2019 03:53:38 +0000 (19:53 -0800)]
mage: Fix mage check on darwin and add debugging output
Darwin no longer supports 386 builds after Catalina. Also add
debugging output when running test suites from mage.
Chris Trimble [Sun, 24 Nov 2019 17:57:39 +0000 (09:57 -0800)]
commands: Fix jekyll metadata import on individual posts
Prior refactor had eliminated writing FrontMatter for Jekyll imports. This
fixes that bug as well as adds a regression test.
Also removed unused site var, replaced some raw strings, and added regression
test for \r\n removal.
Fixes #5576
jasdeepgill [Mon, 25 Nov 2019 08:45:21 +0000 (00:45 -0800)]
Improve grammar in README.md
Bjørn Erik Pedersen [Sun, 24 Nov 2019 12:56:37 +0000 (13:56 +0100)]
markup/highlight: Replace the temp for with a dependency
Bjørn Erik Pedersen [Sun, 24 Nov 2019 11:29:55 +0000 (12:29 +0100)]
deps: Update Chroma
Bjørn Erik Pedersen [Sun, 24 Nov 2019 11:28:57 +0000 (12:28 +0100)]
deps: Update Goldmark
Bjørn Erik Pedersen [Sat, 23 Nov 2019 15:59:43 +0000 (16:59 +0100)]
markup/tableofcontents: GoDoc etc.
Cameron Moore [Sat, 23 Nov 2019 14:45:04 +0000 (08:45 -0600)]
Minor cleanups
Use fmt.Fprint were appropriate instead of Fprintf. Remove some unused
code.
Bjørn Erik Pedersen [Wed, 6 Nov 2019 19:10:47 +0000 (20:10 +0100)]
Add Goldmark as the new default markdown handler
This commit adds the fast and CommonMark compliant Goldmark as the new default markdown handler in Hugo.
If you want to continue using BlackFriday as the default for md/markdown extensions, you can use this configuration:
```toml
[markup]
defaultMarkdownHandler="blackfriday"
```
Fixes #5963
Fixes #1778
Fixes #6355
Bjørn Erik Pedersen [Thu, 21 Nov 2019 20:59:38 +0000 (21:59 +0100)]
Fix Params case handling in the index, sort and where func
This means that you can now do:
```
{{ range where .Site.Pages "Params.MYPARAM" "foo" }}
```
Bjørn Erik Pedersen [Thu, 21 Nov 2019 18:45:03 +0000 (19:45 +0100)]
Fix GetPage Params case issue
Fixes #5946
Bjørn Erik Pedersen [Thu, 21 Nov 2019 17:38:14 +0000 (18:38 +0100)]
common/para: Add parallel task executor helper
Usage of this will come later.
Bjørn Erik Pedersen [Thu, 21 Nov 2019 12:07:52 +0000 (13:07 +0100)]
Add some more output if loading modules takes time
Also include the time to collect modules etc. in the "Total in ..." time reported for the `hugo` command.
Fixes #6519
Bjørn Erik Pedersen [Mon, 18 Nov 2019 08:17:49 +0000 (09:17 +0100)]
Update homepage.md
Fixes https://github.com/gohugoio/hugo/issues/6510
Bjørn Erik Pedersen [Sun, 17 Nov 2019 16:22:32 +0000 (17:22 +0100)]
hugolib: Add a benchmark