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