summaryrefslogtreecommitdiffstats
path: root/hugolib/fileInfo.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/fileInfo.go')
-rw-r--r--hugolib/fileInfo.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/fileInfo.go b/hugolib/fileInfo.go
index 90cf91377..e4af42fd3 100644
--- a/hugolib/fileInfo.go
+++ b/hugolib/fileInfo.go
@@ -61,7 +61,7 @@ func (fi *fileInfo) isOwner() bool {
return fi.bundleTp > bundleNot
}
-func isContentFile(filename string) bool {
+func IsContentFile(filename string) bool {
return contentFileExtensionsSet[strings.TrimPrefix(helpers.Ext(filename), ".")]
}
@@ -98,7 +98,7 @@ const (
// Returns the given file's name's bundle type and whether it is a content
// file or not.
func classifyBundledFile(name string) (bundleDirType, bool) {
- if !isContentFile(name) {
+ if !IsContentFile(name) {
return bundleNot, false
}
if strings.HasPrefix(name, "_index.") {