From 5d3c3b55b8ecd16f6448b6a9204f0a7e585d0f98 Mon Sep 17 00:00:00 2001 From: adnano Date: Wed, 12 May 2021 15:29:13 -0400 Subject: [PATCH] Fix index page paths --- dir.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dir.go b/dir.go index f5c5a3b..07ac7a1 100644 --- a/dir.go +++ b/dir.go @@ -136,11 +136,11 @@ func (d *Dir) _read(srcDir, path string, task *Task, cfg *Config) error { path = "/" + strings.TrimSuffix(path, name) } else { path = "/" + strings.TrimSuffix(path, ext) - } - if task.UglyURLs { - path += task.OutputExt - } else { - path += "/" + if task.UglyURLs { + path += task.OutputExt + } else { + path += "/" + } } page.Path = path if permalink, ok := cfg.permalinks[d.Path]; ok {