From 6e33ee7e84d98eed6201a578d965565fb67a9776 Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Sat, 21 Oct 2017 13:21:51 -0700 Subject: ignore dotfiles in input txt dir --- site/site.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'site') 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) -- cgit v1.2.3