Dont list hidden files and hopefully search files by ext only .md
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user