Bjørn Erik Pedersen
a82d2700fc
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
2020-01-04 19:46:01 +01:00
hugoreleaser
ae816452b1
releaser: Prepare repository for 0.63.0-DEV
...
[ci skip]
2020-01-01 17:46:46 +00:00
hugoreleaser
a1518704a7
releaser: Add release notes to /docs for release of 0.62.1
...
[ci skip]
2020-01-01 17:38:22 +00:00
hugoreleaser
3a21a1708d
releaser: Bump versions for release of 0.62.1
...
[ci skip]
2020-01-01 17:38:22 +00:00
hugoreleaser
451746ddd7
releaser: Add release notes for 0.62.1
...
[ci skip]
2020-01-01 17:38:22 +00:00
Bjørn Erik Pedersen
ff6253bc7c
Support files in content mounts
...
This commit is a general improvement of handling if single file mounts.
Fixes #6684
Fixes #6696
2020-01-01 18:19:49 +01:00
Remco de Man
aa4ccb8a1e
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.
2019-12-30 13:56:58 +01:00
Bjørn Erik Pedersen
5509954c7e
hugolib: Fix inline shortcode regression
...
Fixes #6677
2019-12-28 14:31:51 +01:00
hugoreleaser
6b59b64f02
releaser: Prepare repository for 0.63.0-DEV
...
[ci skip]
2019-12-23 10:32:39 +00:00
hugoreleaser
6608f15570
releaser: Add release notes to /docs for release of 0.62.0
...
[ci skip]
2019-12-23 10:23:27 +00:00
hugoreleaser
b361d9a462
releaser: Bump versions for release of 0.62.0
...
[ci skip]
2019-12-23 10:23:27 +00:00
Bjørn Erik Pedersen
592a7d104d
Release 0.62.0
2019-12-23 10:49:08 +01:00
hugoreleaser
93216fda72
releaser: Add release notes for 0.62.0
...
Rename to *-ready.md to continue.
[ci skip]
2019-12-23 08:57:02 +00:00
Bjørn Erik Pedersen
740b72558b
Merge commit '8a4005cf2b0ef34265ff8051a6b76226685fc226'
2019-12-22 22:51:45 +01:00
Bjørn Erik Pedersen
8a4005cf2b
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
2019-12-22 22:51:45 +01:00
Bjørn Erik Pedersen
1fb17be9a0
deps: Update Goldmark to v1.1.18
...
Fixes #6649
2019-12-22 18:14:04 +01:00
Niklas Fasching
51d89dab18
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)
2019-12-22 16:18:55 +01:00
Bjørn Erik Pedersen
c8bfe47c6a
docs: More on hooks
2019-12-21 11:59:36 +01:00
Bjørn Erik Pedersen
50cc7fe545
tpl: Do not return any value in errorf
...
Fixes #6653
2019-12-21 10:26:14 +01:00
Bjørn Erik Pedersen
1773d71d5b
tpl: Add a warnf template func
...
Fixes #6628
2019-12-21 10:23:00 +01:00
Bjørn Erik Pedersen
8a58ebb311
hugolib: Improve error and reload handling of hook templates in server mode
...
Fixes #6635
2019-12-20 11:38:44 +01:00
Bjørn Erik Pedersen
0453683816
deps: Update to Goldmark v1.1.17
...
Fixes #6641
2019-12-20 08:00:37 +01:00
Bjørn Erik Pedersen
55c29d4de3
docs: Regen docshelper
2019-12-19 23:48:01 +01:00
Bjørn Erik Pedersen
ccb1bf1abb
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
2019-12-19 20:50:30 +01:00
Bjørn Erik Pedersen
a67d95fe1a
Preserve HTML Text for image render hooks
...
Fixes #6639
2019-12-19 19:02:03 +01:00
Bjørn Erik Pedersen
ad6504e6b5
Fix abs path handling in module mounts
...
Fixes #6622
2019-12-19 18:51:59 +01:00
John Zaitseff
158e7ec204
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
2019-12-19 18:02:11 +01:00
Bjørn Erik Pedersen
eef934ae7e
deps: Update Goldmark
...
Fixes #6626
2019-12-19 09:05:35 +01:00
Bjørn Erik Pedersen
00954c5d1f
Preserve HTML Text for link render hooks
...
The context now have two text methods:
* Text - rendered
* PlainText
Fixes #6629
2019-12-18 22:55:19 +01:00
Bjørn Erik Pedersen
1b785a7a6d
tpl/collections: Fix merge vs Params
...
Fixes #6633
2019-12-18 21:31:34 +01:00
Bjørn Erik Pedersen
d20ca37005
tpl: Get rid of the custom template truth logic
...
Fixes #6615
2019-12-18 20:05:22 +01:00
Bjørn Erik Pedersen
3e316155c5
docs: Footnote
2019-12-18 16:37:43 +01:00
Bjørn Erik Pedersen
e625088ef5
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
2019-12-18 11:44:40 +01:00
Bjørn Erik Pedersen
67f3aa72cf
Merge commit '2e711a28c71e8667258e5ab824f9b9a71c261b0a'
2019-12-15 10:37:36 +01:00
Bjørn Erik Pedersen
2e711a28c7
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
2019-12-15 10:35:09 +01:00
Shohei Ueda
0947cf9583
Enhance accessibility to issues
...
Add links to the Hugo issues, Hugo docs issues, and Hugo website theme issues.
Close #6233
2019-12-14 18:47:23 +01:00
Bjørn Erik Pedersen
3c24ae030f
hugolib: Fix test
2019-12-12 14:48:59 +01:00
Bjørn Erik Pedersen
03d6960a15
deps: Re-introduce the correct version of Goldmark
...
It was accidently pulled back to an old version earlier today.
2019-12-12 14:45:46 +01:00
Bjørn Erik Pedersen
92c7f7ab85
tpl: Add some comments
2019-12-12 11:44:36 +01:00
Bjørn Erik Pedersen
a03c631c42
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
2019-12-12 10:04:35 +01:00
Bjørn Erik Pedersen
167c01530b
Create lightweight forks of text/template and html/template
...
This commit also removes support for Ace and Amber templates.
Updates #6594
2019-12-12 09:59:34 +01:00
Gavin D. Howard
4c804319f6
markup/tableofcontents: Add config option for ordered list
2019-12-12 07:48:40 +01:00
hugoreleaser
186a5ebfca
releaser: Prepare repository for 0.62.0-DEV
...
[ci skip]
2019-12-11 08:35:04 +00:00
hugoreleaser
9b445b9da2
releaser: Add release notes to /docs for release of 0.61.0
...
[ci skip]
2019-12-11 08:26:33 +00:00
hugoreleaser
3af783966d
releaser: Bump versions for release of 0.61.0
...
[ci skip]
2019-12-11 08:26:33 +00:00
Bjørn Erik Pedersen
31f322a610
Release 0.61.0
2019-12-11 09:14:48 +01:00
hugoreleaser
38c60f2be4
releaser: Add release notes for 0.61.0
...
Rename to *-ready.md to continue.
[ci skip]
2019-12-11 07:55:37 +00:00
Bjørn Erik Pedersen
3cc217a650
deps: Update Goldmark
2019-12-11 08:41:57 +01:00
Bjørn Erik Pedersen
5f8c2818f1
Deprecate Ace and Amber
...
Fixes #6609
2019-12-11 08:08:42 +01:00
Daniel Tang
c5f2f5837f
markup: Add typographic chars from goldmark to toc
...
Fixes #6592
2019-12-10 23:48:44 +01:00