- const gemtext = internals.generateGemtext(pins.posts);
- const gemfile = resolve(join(__dirname, `linkblog-${internals.date}.gmi`));
+ const title = internals.getTitle(pins);
+ const text = internals.getText(pins);
+ const gemtext = internals.generateGemtext(title, text);
+ const filename = internals.slugify(title);
+
+ const gemfile = resolve(join(__dirname, `${filename}.gmi`));