diff options
author | Adam Mathes <adam@trenchant.org> | 2017-10-21 13:21:51 -0700 |
---|---|---|
committer | Adam Mathes <adam@trenchant.org> | 2017-10-21 13:21:51 -0700 |
commit | 6e33ee7e84d98eed6201a578d965565fb67a9776 (patch) | |
tree | cce791665e486a76b852c296b7eeb7c36d9dee74 | |
parent | 09dc655fd7cc9a45e2a7ed11c99b39e7b29470e7 (diff) | |
download | snkt-6e33ee7e84d98eed6201a578d965565fb67a9776.tar.gz snkt-6e33ee7e84d98eed6201a578d965565fb67a9776.tar.bz2 snkt-6e33ee7e84d98eed6201a578d965565fb67a9776.zip |
ignore dotfiles in input txt dir
-rw-r--r-- | site/site.go | 5 |
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) |