mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
hugofs: Add FileMeta.String
To make the page listing easier to compare.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user