From 8e22a228a2c5af6a09409e7c3138bfcea5bcf6a4 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Sun, 18 Jun 2023 17:37:51 -0700 Subject: [PATCH] Clarify resource media type variables (#2106) --- content/en/content-management/page-resources.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/en/content-management/page-resources.md b/content/en/content-management/page-resources.md index 54494c2e1d..c672a95827 100644 --- a/content/en/content-management/page-resources.md +++ b/content/en/content-management/page-resources.md @@ -67,21 +67,21 @@ with the contents of the file. Use this to create inline resources. {{ end }} {{ with .Resources.GetMatch "img.png" }} - + {{ end }} ``` -MediaType -: The MIME type of the resource, such as `image/jpeg`. +MediaType.Type +: The media type (formerly known as a MIME type) of the resource (e.g., `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`. +: The main type of the resource's media type (e.g., `image`). MediaType.SubType -: The subtype of the resource's MIME type. For example, a file of MIME type `application/pdf` has for SubType `pdf`. Note that this is not the same as the file extension. For example, Microsoft PowerPoint files (`.ppt`) have a subtype of `vnd.ms-powerpoint`. +: The subtype of the resource's type (e.g., `jpeg`). This may or may not correspond to the file suffix. MediaType.Suffixes -: A slice of possible suffixes for the resource's MIME type. +: A slice of possible file suffixes for the resource's media type (e.g., `[jpg jpeg jpe jif jfif]`). ## Methods