- const assetsTarget = join(this.staticDirectory, internals.kAssetsDirectoryName);
- const indexTarget = join(this.staticDirectory, internals.kIndexName);
- const indexLocation = join(this.templatesDirectory, internals.kIndexName);
- const posts = [];
+ internals.debuglog('Generating output');
+
+ const posts = await this._readPosts(this.postsDirectory);
+
+ await StaticGenerator(this.postsDirectory, this.staticDirectory, posts);
+ await HTMLGenerator(this.templatesDirectory, this.staticDirectory, posts);
+ await RSSGenerator(this.templatesDirectory, this.staticDirectory, posts);
+ await TXTGenerator(this.templatesDirectory, this.staticDirectory, posts);
+ }
+
+ // Reads the posts into an array