mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
committed by
Bjørn Erik Pedersen
parent
e81c06c3f0
commit
75e55cd06f
@@ -54,12 +54,13 @@ func (f *File) Bytes() []byte {
|
||||
return helpers.ReaderToBytes(f.Contents)
|
||||
}
|
||||
|
||||
// BaseFileName Filename without extension.
|
||||
// BaseFileName is a filename without extension.
|
||||
func (f *File) BaseFileName() string {
|
||||
return f.baseName
|
||||
}
|
||||
|
||||
// Filename with no extension, not even the optional language extension part.
|
||||
// TranslationBaseName is a filename with no extension,
|
||||
// not even the optional language extension part.
|
||||
func (f *File) TranslationBaseName() string {
|
||||
return f.translationBaseName
|
||||
}
|
||||
|
Reference in New Issue
Block a user