mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-26 21:51:02 +03:00
parent
7d072fbbe6
commit
707d3cf137
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue