From 4fe5fef70b111ab0e10d91ee7060302a52ca3b76 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Mon, 14 Oct 2019 21:57:50 +0200 Subject: Revert "Add kronikarz" This reverts commit d400b53bee9ba563810171c217710d4176b7c367. --- scripts/generateApi.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'scripts/generateApi.js') diff --git a/scripts/generateApi.js b/scripts/generateApi.js index f72745e..128387c 100755 --- a/scripts/generateApi.js +++ b/scripts/generateApi.js @@ -1,16 +1,14 @@ -import fs from 'fs' -import k from '../api' +const fs = require('fs') -let posts = k.getPosts() +let { getPosts } = require('../api/api') -posts = posts.map(({ date, title, content, route }) => { - const { year, month, day } = date - const { description, meta } = content +let posts = getPosts() +posts = posts.map(({ year, month, day, title, data, route }) => { return { date: `${year}-${month}-${day}`, title, - content: { description, meta }, + data, route } }) -- cgit 1.4.1