mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-12 20:13:59 +02:00
@@ -39,7 +39,6 @@ func FormatFromString(formatStr string) Format {
|
||||
if strings.Contains(formatStr, ".") {
|
||||
// Assume a filename
|
||||
formatStr = strings.TrimPrefix(filepath.Ext(formatStr), ".")
|
||||
|
||||
}
|
||||
switch formatStr {
|
||||
case "yaml", "yml":
|
||||
@@ -55,7 +54,6 @@ func FormatFromString(formatStr string) Format {
|
||||
}
|
||||
|
||||
return ""
|
||||
|
||||
}
|
||||
|
||||
// FormatFromMediaType gets the Format given a MIME type, empty string
|
||||
|
Reference in New Issue
Block a user