9678 Commits

Author SHA1 Message Date
Bjørn Erik Pedersen
4a9d76cead docs: Regen docshelper 2019-12-19 23:48:01 +01:00
John Zaitseff
a7bfdeb24c 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
John Zaitseff
626e53b550 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
1a6089cfea 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
f92f77c5d4 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
4544a998c9 docs: Footnote 2019-12-18 16:37:43 +01:00
Bjørn Erik Pedersen
6db9c52b15 docs: Footnote 2019-12-18 16:37:43 +01:00
Bjørn Erik Pedersen
c42733258e 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
16801db3b5 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
0d8bec78aa Merge commit '2e711a28c71e8667258e5ab824f9b9a71c261b0a' 2019-12-15 10:37:36 +01:00
Bjørn Erik Pedersen
0facb823c9 Merge commit '2e711a28c71e8667258e5ab824f9b9a71c261b0a' 2019-12-15 10:37:36 +01:00
P.F. Hawkins
af4b7ac5b4 Remove mention of Amber and Ace
Amber and Ace are deprecated and soon to be removed from the next version. There's no need to advertise a feature that's going away.
2019-12-14 18:44:03 +01:00
Igor Bubelov
c841e9207f Exif docs corrections (#978)
* Fix spelling issue

* Add missing {{ end }} in Exif example
2019-12-13 11:03:15 +01:00
Christian Oliff
0f82420b86 Change cache assets default example to 1 year
Why a year?
The short answer is, the protocol doesn’t allow any value longer than a year. In the absence of a “cache this asset forever” header, a year is the longest possible time we can cache for.

REF: https://ashton.codes/set-cache-control-max-age-1-year/
2019-12-12 13:06:06 +01:00
Gavin D. Howard
3974c326c6 markup/tableofcontents: Add config option for ordered list 2019-12-12 07:48:40 +01:00
Gavin D. Howard
79bf8ed4cd markup/tableofcontents: Add config option for ordered list 2019-12-12 07:48:40 +01:00
Bjørn Erik Pedersen
676dc6e12e
Release 0.61.0 v0.61.0 2019-12-11 10:10:49 +01:00
Bjørn Erik Pedersen
a1d9fb18a3 Merge commit '79c5d7053486f540b6219e693d5590f2c4c3937a' 2019-12-11 10:00:46 +01:00
hugoreleaser
8c2bd1a620 releaser: Add release notes to /docs for release of 0.61.0
[ci skip]
2019-12-11 08:26:33 +00:00
hugoreleaser
1b9e675cd5 releaser: Add release notes to /docs for release of 0.61.0
[ci skip]
2019-12-11 08:26:33 +00:00
Florian Gerlinghoff
5b95cbc8a6 Fixed suffixIsRemoved error in code samples (#975)
When `suffix = "<suffix>"` in the config.toml while adding or modifying
a media type, an error occurs: "MediaType.Suffix is removed. [...]".

I changed the code samples to use `suffixes` instead and adjusted the
surrounding descriptions to represent the change.
2019-12-11 14:27:00 +07:00
Yuriy Oborozhnyi
59b2c245b9 Fix Usage section in toc.md to consider Goldmark TOC settings 2019-12-10 23:52:14 +01:00
Yuriy Oborozhnyi
fd38286737 Add link on how to configure TOC w/ Goldmark 2019-12-10 23:52:14 +01:00
Atishay Jain
ea339f2d67 Added external learning resources including Hugo In Action book. 2019-12-07 19:43:15 +01:00
Bjørn Erik Pedersen
fab502d5d3
Adjust release notes 2019-11-29 16:22:52 +01:00
Bjørn Erik Pedersen
269a025efa
Release 0.60.1 v0.60.1 2019-11-29 16:17:28 +01:00
Bjørn Erik Pedersen
6bff50beaa
Merge branch 'temp601' 2019-11-29 16:16:19 +01:00
hugoreleaser
f00b2d507b releaser: Add release notes to /docs for release of 0.60.1
[ci skip]
2019-11-29 14:56:16 +00:00
hugoreleaser
e15251c43a releaser: Add release notes to /docs for release of 0.60.1
[ci skip]
2019-11-29 14:56:16 +00:00
Bjørn Erik Pedersen
690b864b95
Update use-modules.md 2019-11-28 22:23:51 +01:00
Bjørn Erik Pedersen
345ca8c365
Update syntax-highlighting.md 2019-11-27 23:04:14 +01:00
Bjørn Erik Pedersen
be64af9f53
Update syntax-highlighting.md 2019-11-27 23:01:10 +01:00
Bjørn Erik Pedersen
df9dead83d
Update syntax-highlighting.md 2019-11-27 22:59:02 +01:00
Bjørn Erik Pedersen
1c6e6d2388
Fix relnotes 2019-11-27 21:44:40 +01:00
Bjørn Erik Pedersen
0ea6b2012a
Update homepagetweets.toml 2019-11-27 18:25:40 +01:00
Bjørn Erik Pedersen
2c465625d7
Update index.md 2019-11-27 15:33:55 +01:00
Bjørn Erik Pedersen
0025bba09a
Update index.md 2019-11-27 13:29:41 +01:00
Bjørn Erik Pedersen
7417f1c051
Update index.md 2019-11-27 13:13:00 +01:00
Bjørn Erik Pedersen
9eeb8ce57b
Release 0.60.0 v0.60.0 2019-11-27 11:35:20 +01:00
Bjørn Erik Pedersen
25a7110237
Merge branch 'temp60' 2019-11-27 11:29:40 +01:00
hugoreleaser
9a5109838e releaser: Add release notes to /docs for release of 0.60.0
[ci skip]
2019-11-27 10:09:46 +00:00
hugoreleaser
0c4faab0ec releaser: Add release notes to /docs for release of 0.60.0
[ci skip]
2019-11-27 10:09:46 +00:00
Lupe CM
779e5108e8 Update installing.md 2019-11-27 08:57:21 +01:00
jasdeepgill
2ef1c386a4 Minor text improvements in README.md 2019-11-26 09:18:39 +01:00
jasdeepgill
41ec5a19a4 Reword sentence for clarity search.md 2019-11-26 09:15:53 +01:00
Bjørn Erik Pedersen
d2c222f71d 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
ded74f0982 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
cb55cdbb0f
Update introduction.md 2019-11-23 10:45:46 +01:00
Bjørn Erik Pedersen
df96f9efae Update homepage.md
Fixes https://github.com/gohugoio/hugo/issues/6510
2019-11-18 09:17:49 +01:00
Bjørn Erik Pedersen
fcaad653aa Update homepage.md
Fixes https://github.com/gohugoio/hugo/issues/6510
2019-11-18 09:17:49 +01:00