shithub: hugo

Download patch

ref: f10db101a18f5cad332c9398136f77e35a169d52
parent: b401858ebd346c433dd69a260eba7098bded5a30
author: Bjørn Erik Pedersen <[email protected]>
date: Wed Oct 9 06:30:09 EDT 2019

hugofs: Add FileMeta.String

To make the page listing easier to compare.

--- a/hugofs/fileinfo.go
+++ b/hugofs/fileinfo.go
@@ -129,6 +129,10 @@
 	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)