~erock/pico

ref: 90951e09568b61d17747a4a76036f2a876fe3f3e pico/db/util.go -rw-r--r-- 248 bytes
90951e09Eric Bower fix(lists): wrong anchor links 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package db

import "strings"

func FilterMetaFiles(posts []*Post) []*Post {
	filtered := []*Post{}
	for _, post := range posts {
		if strings.HasPrefix(post.Filename, "_") {
			continue
		}
		filtered = append(filtered, post)
	}
	return filtered
}