From a13a1045dca2fa2c70617d853b7bd08c34c3cffe Mon Sep 17 00:00:00 2001 From: Mhykol Date: Mon, 27 May 2024 10:47:21 -0400 Subject: Stop tracking scripts directory --- scripts/blog.js | 61 --------------------------------------------------------- 1 file changed, 61 deletions(-) delete mode 100644 scripts/blog.js (limited to 'scripts/blog.js') diff --git a/scripts/blog.js b/scripts/blog.js deleted file mode 100644 index 0d88bcf..0000000 --- a/scripts/blog.js +++ /dev/null @@ -1,61 +0,0 @@ -const blog = require('../source/blog') - -class Blog { - constructor() {} - - async Main() { - return blog().ReadBlogs().then(output => { - const data = { - start: ` -
-
-

My Blog

- `, - body: '', - end: ` -
-
- ` - } - - const text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." - - output.forEach((value, key) => { - data.body += ` -
-

${value.title}

-

Date: ${(value.date.getMonth() + 1).toString().padStart(2, '0')}/${(value.date.getDate()).toString().padStart(2, '0')}/${value.date.getFullYear()}

-

${value.short}

- -
` - }) - - const result = data.start + data.body + data.end - return result - }) - } - - async Item(x) { - const data = { - start: ` -
-
-
-
- `, - body: '', - end: ` -
-
- ` - } - return blog().ReadBlogs().then(output => { - if (x) { - data.body = output.get(x).body - return data.start + data.body + data.end - } - }) - } -} - -module.exports = () => {return new Blog()} -- cgit v1.2.3-70-g09d2