Commit dd1869af authored by Jae's avatar Jae
Browse files

Do not list gitkeep

parent 565ed505
......@@ -67,8 +67,9 @@ func main() {
}
for _, file := range files {
fmt.Println(file.Name())
posts = append(posts, file.Name())
if file.Name() != ".gitkeep" {
posts = append(posts, file.Name())
}
}
c.HTML(http.StatusOK, "home/announcements.tmpl", gin.H{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment