mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
hugofs: Add FileMeta.String
To make the page listing easier to compare.
This commit is contained in:
parent
b401858ebd
commit
f10db101a1
1 changed files with 4 additions and 0 deletions
|
@ -129,6 +129,10 @@ func (f FileMeta) IsSymlink() bool {
|
|||
return f.GetBool(metaKeyIsSymlink)
|
||||
}
|
||||
|
||||
func (f FileMeta) String() string {
|
||||
return f.Filename()
|
||||
}
|
||||
|
||||
func (f FileMeta) Watch() bool {
|
||||
if v, found := f["watch"]; found {
|
||||
return v.(bool)
|
||||
|
|
Loading…
Reference in a new issue