🔥 Removed unused property in Site and Page FileSystem repositories
This commit is contained in:
parent
d762f33b19
commit
516758b74a
|
@ -21,8 +21,7 @@ type (
|
|||
}
|
||||
|
||||
fileSystemPageRepository struct {
|
||||
dir fs.FS
|
||||
rootPath string
|
||||
dir fs.FS
|
||||
}
|
||||
)
|
||||
|
||||
|
@ -30,9 +29,9 @@ var FrontMatterFormats = []*frontmatter.Format{
|
|||
frontmatter.NewFormat(`---`, `---`, yaml.Unmarshal),
|
||||
}
|
||||
|
||||
func NewFileSystemPageRepository(rootDir fs.FS) page.Repository {
|
||||
func NewFileSystemPageRepository(dir fs.FS) page.Repository {
|
||||
return &fileSystemPageRepository{
|
||||
dir: rootDir,
|
||||
dir: dir,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -32,8 +32,7 @@ type (
|
|||
}
|
||||
|
||||
fileSystemSiteRepository struct {
|
||||
dir fs.FS
|
||||
rootPath string
|
||||
dir fs.FS
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue