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
55c29d4de3
docs: Regen docshelper
2019-12-19 23:48:01 +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
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
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
Gavin D. Howard
4c804319f6
markup/tableofcontents: Add config option for ordered list
2019-12-12 07:48:40 +01: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
960667561f
releaser: Add release notes to /docs for release of 0.60.1
...
[ci skip]
2019-11-29 14:56:16 +00:00
hugoreleaser
f2dea9b036
releaser: Add release notes to /docs for release of 0.60.0
...
[ci skip]
2019-11-27 10:09:46 +00:00
Bjørn Erik Pedersen
bfb9613a14
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
2019-11-23 14:12:24 +01:00
Bjørn Erik Pedersen
14a985f8ab
Update homepage.md
...
Fixes https://github.com/gohugoio/hugo/issues/6510
2019-11-18 09:17:49 +01:00
Bjørn Erik Pedersen
a2670bf460
tpl/collections: Allow dict to create nested structures
...
Fixes #6497
2019-11-11 21:55:16 +01:00
Bjørn Erik Pedersen
79355043e8
Merge commit 'efc0b1bb6c6564f54d596467dbc6a18cb206954e'
2019-11-11 11:46:22 +01:00
Luke Francl
70a1aa345b
Support Go time format strings in permalinks
...
In the vein of an ancient TODO about supporting custom date formatting with
strftime, this allows `:`-prefixed Go time format strings in permalink segments.
This allows users to customize date-based permalinks any way they need to.
For example, with a date of 2019-11-09, the permalink `/:06/:1/:2` will render
as `/19/11/9`.
See:
07978e4a49 (diff-0688a3b65c7f5d01aa216f8d9b57fd00R111-R112)
https://discourse.gohugo.io/t/implementing-additional-date-formats-for-permalinks/17860
https://github.com/gohugoio/hugo/pull/6488
2019-11-10 11:00:02 +01:00
hugoreleaser
d5dab232c2
releaser: Add release notes to /docs for release of 0.59.1
...
[ci skip]
2019-10-31 15:20:53 +00:00
hugoreleaser
1dd0c69c7b
releaser: Add release notes to /docs for release of 0.59.0
...
[ci skip]
2019-10-21 09:38:50 +00:00
Bjørn Erik Pedersen
de8ca7e4d4
Merge commit '5ac0f751aa47e52625662215f66efa99a6abfc2e'
2019-10-21 10:52:23 +02:00
Bjørn Erik Pedersen
ec5962278f
Merge commit '5070ba6c9e6c492deade3c30cfe769b9dbf7151d'
2019-10-21 10:49:16 +02:00
Bjørn Erik Pedersen
27aef3f1fb
Merge commit 'b9bd35d72e14932fb6588ff62b90cddef0a060fc' as 'docs'
2019-10-21 10:22:28 +02:00
Bjørn Erik Pedersen
39121de4d9
docs: Replace /docs
2019-10-21 10:21:51 +02:00
Bjørn Erik Pedersen
4b286b9d27
resources/images: Allow to set background fill colour
...
Closes #6298
2019-10-20 22:06:58 +02:00
Zach Bayoff
7b3edc2931
tpl: Add optional "title" attribute to iframe in Vimeo shortcode
...
Add an optional "title" attribute to the iframe in the vimeo shortcode. If one is not given, the title attribute will default to "vimeo video". It is imperative for iframes to have a non-empty "title" attribute in order to meet WCAG2.0 accessibility guidelines https://www.w3.org/TR/WCAG20-TECHS/H64 .
2019-10-12 18:10:14 +02:00
Jamie Tanna
c466b88c99
deps: Upgrade to latest version of emoji dependency
...
To add support for new emojis in Hugo, we need to upgrade our internal
dependency on the emoji package.
Note that we also need to update our tests, as the underlying emoji that
is rendered has changed.
Follow-up to #6391 . (170f18d935
and
2df5d202c6
)
2019-10-05 22:58:53 +02:00
hugoreleaser
4aac02d49c
releaser: Add release notes to /docs for release of 0.58.3
...
[ci skip]
2019-09-19 15:28:26 +00:00
hugoreleaser
253e5fdc69
releaser: Add release notes to /docs for release of 0.58.2
...
[ci skip]
2019-09-13 08:04:20 +00:00
hugoreleaser
24277b9202
releaser: Add release notes to /docs for release of 0.58.1
...
[ci skip]
2019-09-06 09:18:56 +00:00
hugoreleaser
64d8bf1ee9
releaser: Add release notes to /docs for release of 0.58.0
...
[ci skip]
2019-09-04 15:41:58 +00:00
hugoreleaser
a849cb2d9b
releaser: Add release notes to /docs for release of 0.57.2
...
[ci skip]
2019-08-17 17:51:54 +00:00
hugoreleaser
58c56e9ded
releaser: Add release notes to /docs for release of 0.57.1
...
[ci skip]
2019-08-15 18:52:49 +00:00
hugoreleaser
9b00e64765
releaser: Add release notes to /docs for release of 0.57.0
...
[ci skip]
2019-08-14 08:05:33 +00:00
hugoreleaser
f637a1eace
releaser: Add release notes to /docs for release of 0.56.3
...
[ci skip]
2019-07-31 12:48:33 +00:00
Bjørn Erik Pedersen
02b947eaa3
docs: Regenerate CLI docs
2019-07-31 12:11:22 +02:00
hugoreleaser
5f033a7fcc
releaser: Add release notes to /docs for release of 0.56.2
...
[ci skip]
2019-07-30 09:05:09 +00:00
hugoreleaser
0ad218afc5
releaser: Add release notes to /docs for release of 0.56.1
...
[ci skip]
2019-07-28 14:51:43 +00:00
hugoreleaser
45f4eb9846
releaser: Add release notes to /docs for release of 0.56.0
...
[ci skip]
2019-07-25 16:37:58 +00:00
Bjørn Erik Pedersen
77bf2991b1
docs: Add Hugo Modules docs
2019-07-25 13:21:30 +02:00
Bjørn Erik Pedersen
215d2ed883
docs: Regenerate CLI docs
2019-07-24 09:40:41 +02:00
Bjørn Erik Pedersen
23adc0c2d9
docs: Regenerate data helpers
2019-07-24 09:39:12 +02:00
Bjørn Erik Pedersen
461b0e066f
Merge commit '5cb4e46cfa65bddae8ac5344540e3dd1e4c266b2'
2019-07-24 09:36:50 +02:00
Bjørn Erik Pedersen
05d0eddd2b
Merge commit '35febb2e2a3780c3338a2665fddea7dda28a17f4'
2019-07-15 23:50:56 +02:00
Niklas Fasching
020086cb2b
Add org to front matter formats
...
actually it's 5, there's also csv. Afaict it's not meant to be used in that way
though so let's just add org.
2019-07-10 11:14:37 +02:00
Niklas Fasching
b6867bf806
Improve Org mode support: Replace goorgeous with go-org
...
Sadly, goorgeous has not been updated in over a year and still has a lot of
open issues (e.g. no support for nested lists).
go-org fixes most of those issues and supports a larger subset of Org mode
syntax.
2019-06-08 10:13:00 +02:00
Robert van Gent
9df57154ee
deploy: Default --target to the first deployment target
2019-06-08 00:41:59 +02:00
Robert van Gent
b0f536fb27
Drop dashes in http header matcher attributes; other changes from code review
2019-05-31 22:08:12 +02:00
Robert van Gent
1384d77a04
docs: Add documentation for "hugo deploy"
2019-05-31 22:08:12 +02:00
Bruno Amaral
d1cf53f5f4
Remove references to Google+
...
According to google, this is no longer supported and structured data should be used instead: https://support.google.com/webmasters/answer/6083347?hl=en
2019-05-26 19:24:45 +02:00