aboutsummaryrefslogtreecommitdiff
path: root/page/index.go
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2022-09-17 16:13:09 -0400
committerMitchell Riedstra <mitch@riedstra.dev>2022-09-17 16:13:09 -0400
commit8e789a73a07d0741e6c53068c517a38bb730c8ba (patch)
treec762a67ac6073b91e5d6a9b70b306b5305ad6f4f /page/index.go
parentccc26c3a0bb65ae2613e222c3ead7f6db377b483 (diff)
downloadgo-website-8e789a73a07d0741e6c53068c517a38bb730c8ba.tar.gz
go-website-8e789a73a07d0741e6c53068c517a38bb730c8ba.tar.xz
Remove fs / FileSystem library support since it is broken on Windows.
Diffstat (limited to 'page/index.go')
-rw-r--r--page/index.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/page/index.go b/page/index.go
index 00cab4b..75cbe87 100644
--- a/page/index.go
+++ b/page/index.go
@@ -2,6 +2,7 @@ package page
import (
"io/fs"
+ "path/filepath"
"strings"
"sync"
"time"
@@ -40,8 +41,8 @@ func (p *Page) Index() (map[string]PageList, error) {
out := make(map[string]PageList)
- _ = fs.WalkDir(FileSystem, ".",
- func(path string, info fs.DirEntry, err error) error {
+ _ = filepath.Walk(".",
+ func(path string, info fs.FileInfo, err error) error {
if err != nil {
return err
}