1
0
mirror of https://github.com/gohugoio/hugo.git synced 2024-05-11 05:54:58 +00:00

hugofs: Add FileMeta.String

To make the page listing easier to compare.
This commit is contained in:
Bjørn Erik Pedersen
2019-10-09 10:30:09 +02:00
parent b401858ebd
commit f10db101a1

View File

@@ -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)