1
0
mirror of https://github.com/GenderDysphoria/GenderDysphoria.fyi.git synced 2025-11-25 20:42:40 +00:00

Write out a post index into /tweets/index.json. Write out assets for debugging.

This commit is contained in:
Jocelyn Badgley (Twipped)
2020-03-06 19:36:09 -08:00
parent 92a982eeb8
commit bbf0b2feed
6 changed files with 45 additions and 13 deletions

View File

@@ -92,8 +92,8 @@ module.exports = exports = class Page extends File {
_parse (PublicFiles) {
const { titlecard, webready } = PublicFiles.for(this.dir);
this.ignore = this.meta.ignore;
this.draft = this.meta.draft;
this.images = webready;
this.titlecard = titlecard;
if (this.meta.tweets && isString(this.meta.tweets)) this.meta.tweets = this.meta.tweets.split(/\s/);