diff --git a/cmd/ssg/site/site.go b/cmd/ssg/site/site.go index 1182ae1..6f35b08 100644 --- a/cmd/ssg/site/site.go +++ b/cmd/ssg/site/site.go @@ -47,7 +47,12 @@ func (s *Site) AddFilePost(fPath string) error { if err != nil { return err } - post := NewPost(s.config, adoc.New(string(content))) + doc := adoc.New(string(content)) + if !doc.Public { + return nil + } + + post := NewPost(s.config, doc) if post.Kind != KIND_INVALID { s.posts = append(s.posts, post) }