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

New preact based frontend UI for the TTT.

Added rollup compiling
This commit is contained in:
Jocelyn Badgley (Twipped)
2020-03-08 14:01:00 -07:00
parent 67b168dba1
commit dad24e1199
33 changed files with 2322 additions and 172 deletions

View File

@@ -8,6 +8,7 @@ const { siteInfo } = require(resolve('package.json'));
module.exports = exports = async function writePageContent (engines, pages, posts, prod) {
const postIndex = index(posts, engines);
await processPages(engines, [ ...posts, ...pages ], postIndex, prod);
postIndex.latest = { ...pageJSON(postIndex.latest), content: postIndex.latest.content };
return postIndex;
};
@@ -78,6 +79,7 @@ function pageState (page, posts) {
function pageJSON (post) {
return {
id: post.id,
url: post.url,
fullurl: post.fullurl,
json: '/' + post.json,