Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorbogem <albertnigma@gmail.com>2016-11-22 01:01:42 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-11-23 11:13:00 +0300
commit75e55cd06f63bc545c1700cd6904e509fc91093b (patch)
treeaa1effc77857285545c640f1bd1c2e9a3708760f /source
parente81c06c3f0a6f9a960d91b31960e48a807112655 (diff)
hugolib, source, tpl: Fix docs
See #2014
Diffstat (limited to 'source')
-rw-r--r--source/file.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/file.go b/source/file.go
index c309bbd03..5877004ca 100644
--- a/source/file.go
+++ b/source/file.go
@@ -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
}