update blogs

This commit is contained in:
Nicholas Orlowsky 2022-10-22 20:46:24 -05:00
parent c20d558676
commit 0787b5c776
No known key found for this signature in database
GPG key ID: 3845F78A73B14100
3 changed files with 8 additions and 4 deletions

View file

@ -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
}

View file

@ -0,0 +1,3 @@
This blog is unique because it is hidden.
Congratulations on finding it!

View file

@ -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.