🔥 Removed unused property in Site and Page FileSystem repositories

This commit is contained in:
Maxim Lebedev 2023-11-13 05:58:18 +06:00
parent d762f33b19
commit 516758b74a
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
2 changed files with 4 additions and 6 deletions

View File

@ -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,
}
}

View File

@ -32,8 +32,7 @@ type (
}
fileSystemSiteRepository struct {
dir fs.FS
rootPath string
dir fs.FS
}
)