Dont list hidden files and hopefully search files by ext only .md

This commit is contained in:
bel
2019-11-24 04:27:24 +00:00
parent e4632d36ba
commit 4e2b7b3c85
19 changed files with 13 additions and 6 deletions

View File

@@ -5,6 +5,9 @@ type Paths []Path
func (p Paths) List(full ...bool) string {
content := "<ul>\n"
for _, path := range p {
if len(path.Base) > 0 && path.Base[0] == '.' {
continue
}
if len(full) > 0 && full[0] {
content += path.FullLI() + "\n"
} else {