aboutsummaryrefslogtreecommitdiffstats
path: root/site
diff options
context:
space:
mode:
authorAdam Mathes <adam@trenchant.org>2017-10-21 13:21:51 -0700
committerAdam Mathes <adam@trenchant.org>2017-10-21 13:21:51 -0700
commit6e33ee7e84d98eed6201a578d965565fb67a9776 (patch)
treecce791665e486a76b852c296b7eeb7c36d9dee74 /site
parent09dc655fd7cc9a45e2a7ed11c99b39e7b29470e7 (diff)
downloadsnkt-6e33ee7e84d98eed6201a578d965565fb67a9776.tar.gz
snkt-6e33ee7e84d98eed6201a578d965565fb67a9776.tar.bz2
snkt-6e33ee7e84d98eed6201a578d965565fb67a9776.zip
ignore dotfiles in input txt dir
Diffstat (limited to 'site')
-rw-r--r--site/site.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/site/site.go b/site/site.go
index 00814ce..8020c87 100644
--- a/site/site.go
+++ b/site/site.go
@@ -74,6 +74,11 @@ func (s *Site) ReadPosts() {
continue
}
+ // ignore dotfiles
+ if file.Name()[:1] == "." {
+ continue
+ }
+
p := post.NewPost(s)
p.Read(file)