mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
media: Add PDF MIME type
This commit is contained in:
@@ -169,7 +169,6 @@ func (m Type) IsText() bool {
|
||||
switch m.SubType {
|
||||
case "javascript", "json", "rss", "xml", "svg", TOMLType.SubType, YAMLType.SubType:
|
||||
return true
|
||||
|
||||
}
|
||||
return false
|
||||
}
|
||||
@@ -239,6 +238,9 @@ var (
|
||||
TrueTypeFontType = newMediaType("font", "ttf", []string{"ttf"})
|
||||
OpenTypeFontType = newMediaType("font", "otf", []string{"otf"})
|
||||
|
||||
// Common document types
|
||||
PDFType = newMediaType("application", "pdf", []string{"pdf"})
|
||||
|
||||
// Common video types
|
||||
AVIType = newMediaType("video", "x-msvideo", []string{"avi"})
|
||||
MPEGType = newMediaType("video", "mpeg", []string{"mpg", "mpeg"})
|
||||
@@ -282,6 +284,7 @@ var DefaultTypes = Types{
|
||||
GPPType,
|
||||
OpenTypeFontType,
|
||||
TrueTypeFontType,
|
||||
PDFType,
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
Reference in New Issue
Block a user