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:
authordigitalcraftsman <digitalcraftsman@protonmail.com>2016-12-31 19:55:03 +0300
committerdigitalcraftsman <digitalcraftsman@protonmail.com>2016-12-31 19:55:03 +0300
commit707d3cf13777a23ba6ab39d8d00d41f02b8c6a68 (patch)
treeab14cee472fe8e3cd200a8bd76eb7a0ea13c6c7e /source
parent7d072fbbe62703c11d2b8a13e840390bbe469bdc (diff)
docs, tpl: Fix documentation of UniqueID
See #2861
Diffstat (limited to 'source')
-rw-r--r--source/file.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/file.go b/source/file.go
index 467c48223..18ed9d6f9 100644
--- a/source/file.go
+++ b/source/file.go
@@ -32,13 +32,13 @@ type File struct {
section string // The first directory
dir string // The relative directory Path (minus file name)
ext string // Just the ext (eg txt)
- uniqueID string // MD5 of the filename
+ uniqueID string // MD5 of the file's path
translationBaseName string // `post` for `post.es.md` (if `Multilingual` is enabled.)
lang string // The language code if `Multilingual` is enabled
}
-// UniqueID is the MD5 hash of the filename and is for most practical applications,
+// UniqueID is the MD5 hash of the file's path and is for most practical applications,
// Hugo content files being one of them, considered to be unique.
func (f *File) UniqueID() string {
return f.uniqueID