diff --git a/blogo/blogo.go b/blogo/blogo.go index 12d8c55..068e329 100644 --- a/blogo/blogo.go +++ b/blogo/blogo.go @@ -95,6 +95,10 @@ func (b *Blogo) ServeHTTP(w http.ResponseWriter, r *http.Request) { } path := strings.Trim(r.URL.Path, "/") + if path == "" || path == "/" { + path = "." + } + f, err := b.files.Open(path) if errors.Is(err, fs.ErrNotExist) {