~fkfd/sophon

fa42aef9006dbea7b7a6e9222e08964df9e0de68 — Frederick Yin 3 years ago b18e3a1
Trim ".gmi" from page list
1 files changed, 1 insertions(+), 1 deletions(-)

M wiki.go
M wiki.go => wiki.go +1 -1
@@ 21,7 21,7 @@ func listWikiPages() ([]string, error) {
	var pages []string
	for n := 0; n < len(files); n++ {
		if name := files[n].Name(); strings.HasSuffix(name, ".gmi") {
			pages = append(pages, name)
			pages = append(pages, name[:len(name)-4])
		}
	}
	return pages, err