From 0787b5c776a73922cd74fd1a8533dceb33feb7b0 Mon Sep 17 00:00:00 2001 From: Nicholas Orlowsky Date: Sat, 22 Oct 2022 20:46:24 -0500 Subject: [PATCH] update blogs --- src/static/data/Blogs.ts | 7 ++++--- src/static/data/blogs/hidden-blog.md | 3 +++ src/static/data/blogs/there-is-a-blog.md | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 src/static/data/blogs/hidden-blog.md diff --git a/src/static/data/Blogs.ts b/src/static/data/Blogs.ts index 86a3731..5bccc98 100644 --- a/src/static/data/Blogs.ts +++ b/src/static/data/Blogs.ts @@ -2,6 +2,7 @@ import VrboImage from "../images/vrbo-logo-min.png"; import Blog from "../../types/Blog"; import CSMD from "./blogs/c-sharp-c-assignment.md"; import TAB from "./blogs/there-is-a-blog.md"; +import HID from "./blogs/hidden-blog.md"; const CSharpBlog: Blog = { title: "Doing C assignments in C#", @@ -13,7 +14,7 @@ const CSharpBlog: Blog = { const TestBlog: Blog = { title: "There's a Blog!", - date: new Date(), + date: new Date(2022, 7, 6, 12, 0, 0), image: VrboImage, mdfile: TAB, private: false @@ -21,9 +22,9 @@ const TestBlog: Blog = { const PrivateBlog: Blog = { title: "This blog can only be accessed via the direct URI", - date: new Date(), + date: new Date(2022, 7, 6, 12, 0, 0), image: VrboImage, - mdfile: TAB, + mdfile: HID, private: true } diff --git a/src/static/data/blogs/hidden-blog.md b/src/static/data/blogs/hidden-blog.md new file mode 100644 index 0000000..b0179ec --- /dev/null +++ b/src/static/data/blogs/hidden-blog.md @@ -0,0 +1,3 @@ +This blog is unique because it is hidden. + +Congratulations on finding it! diff --git a/src/static/data/blogs/there-is-a-blog.md b/src/static/data/blogs/there-is-a-blog.md index 87e4ff5..b617fee 100644 --- a/src/static/data/blogs/there-is-a-blog.md +++ b/src/static/data/blogs/there-is-a-blog.md @@ -42,7 +42,7 @@ export const AllBlogs: Blog[] = [CSharpBlog, PrivateBlog, TestBlog]; ``` This metadata then gets converted into a list and whenever you view a blog, it fetches the associated markdown file and parses it to show you here. -I decided to add an option to hide some blogs from the 'All blogs' page (Notice how you don't see [This Blog](http://localhost:3000/blog?id=1) there?) +I decided to add an option to hide some blogs from the 'All blogs' page (Notice how you don't see [This Blog](http://nickorlow.com/blog?id=1) there?) It's intended to be used so I can host things like Privacy Policies and Terms of Services for apps I write without cluttering up my blog. You may have noticed that there's an unused Image option. This option would provide a thumbnail, but I decided to remove them for now in favor of a cleaner look.