Twitter posts

This commit is contained in:
Jocelyn Badgley (Twipped)
2020-03-02 20:28:46 -08:00
parent 065dd4ad79
commit 754f0d9260
17 changed files with 6395 additions and 472 deletions

View File

@@ -4,11 +4,12 @@ id: "${id}"
date: "${date.toISOString()}"
tags:
- Transgender
span: 2
tweets:
---
{!{ <div class="gutter">{{import '~/tweet' ids=(array
{!{ {{import '~/tweet' ids=(array
'TWEETGOESHERE'
) tweets=meta.tweets className="oneblock" }}</div> }!}
) tweets=meta.tweets className="" }} }!}
`;

View File

@@ -39,6 +39,7 @@ exports.everything = function (prod = false) {
const pages = await primeTweets(PublicFiles.pages);
const posts = await primeTweets(PostFiles.pages);
posts.reverse();
// compile all tasks to be completed
const tasks = await Promise.all([

View File

@@ -50,5 +50,11 @@ module.exports = exports = class Post extends Page {
this.fullurl = url.href;
}
_parse (...args) {
super._parse(...args);
this.classes.push('post');
}
};

View File

@@ -100,6 +100,7 @@ exports.type = dictMatch({
const KIND = exports.KIND = {
PAGE: 'PAGE',
POST: 'POST',
ASSET: 'ASSET',
ARTIFACT: 'ARTIFACT',
OTHER: 'OTHER',