diff --git a/content/posts/2021-01-14-diy-software.md b/content/posts/drafts/2021-01-14-diy-software.md similarity index 100% rename from content/posts/2021-01-14-diy-software.md rename to content/posts/drafts/2021-01-14-diy-software.md diff --git a/content/posts/drafts/2021-01-22-library-of-babel.md b/content/posts/drafts/2021-01-22-library-of-babel.md new file mode 100644 index 0000000..f436a92 --- /dev/null +++ b/content/posts/drafts/2021-01-22-library-of-babel.md @@ -0,0 +1,13 @@ +--- +title: The library of babel +date: "2021-01-22" +draft: true +--- + +What if I told you that everything you ever have said, thought and wrote, and everything you will say, think or write, has already been written down? Let me share my discovery of a construct called the _library of babel_. + +The library of babel is a + +## Real world use cases + +This is post 006 of [#100DaysToOffload](https://100daystooffload.com/). diff --git a/lib/rss.js b/lib/rss.js index b2c3d2b..3a1d114 100644 --- a/lib/rss.js +++ b/lib/rss.js @@ -7,6 +7,11 @@ const markdown = require("markdown").markdown; const files = fs .readdirSync(path.join(__dirname, "../content/posts")) + // Filter subdirectories + .filter( + (p) => + !fs.lstatSync(path.join(__dirname, "../content/posts", p)).isDirectory() + ) .map((filename) => { return { filename,