diff options
author | John Zaitseff <J.Zaitseff@zap.org.au> | 2019-12-20 01:04:18 +1100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-12-19 18:02:11 +0100 |
commit | 158e7ec204e5149d77893d353cac9f55946d3e9a (patch) | |
tree | 24730223af9e728ef2802088ed7fff3a86f4ec7a /docs/content/en | |
parent | eef934ae7eabc38eeba386831de6013eec0285f2 (diff) |
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
Diffstat (limited to 'docs/content/en')
-rw-r--r-- | docs/content/en/content-management/image-processing/index.md | 2 | ||||
-rw-r--r-- | docs/content/en/content-management/page-resources.md | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/content/en/content-management/image-processing/index.md b/docs/content/en/content-management/image-processing/index.md index 53e72bee1..ed6478d7a 100644 --- a/docs/content/en/content-management/image-processing/index.md +++ b/docs/content/en/content-management/image-processing/index.md @@ -88,7 +88,7 @@ Sometimes it can be useful to create the filter chain once and then reuse it: Provides an [Exif](https://en.wikipedia.org/wiki/Exif) object with metadata about the image. -Note that this is only suported for JPG and TIFF images, so it's recommended to wrap the access with a `with`, e.g.: +Note that this is only suported for JPEG and TIFF images, so it's recommended to wrap the access with a `with`, e.g.: ```go-html-template {{ with $img.Exif }} diff --git a/docs/content/en/content-management/page-resources.md b/docs/content/en/content-management/page-resources.md index dcd19e42f..1a0ef1b2f 100644 --- a/docs/content/en/content-management/page-resources.md +++ b/docs/content/en/content-management/page-resources.md @@ -17,7 +17,7 @@ menu: ## Properties ResourceType -: The main type of the resource. For example, a file of MIME type `image/jpg` has the ResourceType `image`. +: The main type of the resource. For example, a file of MIME type `image/jpeg` has the ResourceType `image`. Name : Default value is the filename (relative to the owning page). Can be set in front matter. @@ -35,7 +35,7 @@ Content : The content of the resource itself. For most resources, this returns a string with the contents of the file. This can be used to inline some resources, such as `<script>{{ (.Resources.GetMatch "myscript.js").Content | safeJS }}</script>` or `<img src="{{ (.Resources.GetMatch "mylogo.png").Content | base64Encode }}">`. MediaType -: The MIME type of the resource, such as `image/jpg`. +: The MIME type of the resource, such as `image/jpeg`. MediaType.MainType : The main type of the resource's MIME type. For example, a file of MIME type `application/pdf` has for MainType `application`. |