diff --git a/ghost.js b/ghost.js index b6f36d75feaf67fb819b3a9219be3630fb4385ab..dea65d3c5a200f1de639d21329e02b2b0e0268d9 100644 --- a/ghost.js +++ b/ghost.js @@ -9,8 +9,8 @@ const remarkStringify = require('remark-stringify') const unified = require('unified') const youtube = require('./sitegin/utils/youtube') -const importUsers = false -const formatMD = false +const importUsers = true +const formatMD = true const zip = true const fileMap = new Map() @@ -20,7 +20,7 @@ for (const entry of files) { /* ManuálnĂ zmÄ›ny: - - k ÄŤlánku 144 MHz PA s 2x GI7B pĹ™idat autora OK1GP + - k ÄŤlánku 144 MHz PA s 2x GI7B pĹ™idat autora OK1GP (k Jirka, OK1UBO) - Inline obrázky v ÄŤláncĂch webkamera 2018/a1-contest @@ -296,6 +296,7 @@ function truncate(text, maxLength = 255) { { name: 'Administrator', email: 'administrator@ok1kvk.cz' }, { name: 'Vašek Král', email: 'vendakral@seznam.cz' }, { name: 'Petr, OK1WPN', email: 'ok1wpn@ok1kvk.cz', slug: 'ok1wpn' }, + { name: 'OK1GP', email: 'ok1gp@ok1kvk.cz', slug: 'ok1gp' }, ].map((u, i) => ({ ...u, id: i + 2 })) const userRemap = { 'OK1GP, OK1UBO': 'Jirka, OK1UBO', @@ -393,7 +394,7 @@ function truncate(text, maxLength = 255) { fs.writeFileSync('import/ghost.json', JSON.stringify(ghost, null, 2), 'utf8') console.log(new Date().toISOString(), 'zipping') if (zip) - spawnSync('zip', ['ghost.zip', 'content', 'ghost.json'], { + spawnSync('zip', ['-r', 'ghost.zip', 'content', 'ghost.json'], { cwd: path.join(__dirname, 'import'), })