update blogs
This commit is contained in:
parent
c20d558676
commit
0787b5c776
|
@ -2,6 +2,7 @@ import VrboImage from "../images/vrbo-logo-min.png";
|
||||||
import Blog from "../../types/Blog";
|
import Blog from "../../types/Blog";
|
||||||
import CSMD from "./blogs/c-sharp-c-assignment.md";
|
import CSMD from "./blogs/c-sharp-c-assignment.md";
|
||||||
import TAB from "./blogs/there-is-a-blog.md";
|
import TAB from "./blogs/there-is-a-blog.md";
|
||||||
|
import HID from "./blogs/hidden-blog.md";
|
||||||
|
|
||||||
const CSharpBlog: Blog = {
|
const CSharpBlog: Blog = {
|
||||||
title: "Doing C assignments in C#",
|
title: "Doing C assignments in C#",
|
||||||
|
@ -13,7 +14,7 @@ const CSharpBlog: Blog = {
|
||||||
|
|
||||||
const TestBlog: Blog = {
|
const TestBlog: Blog = {
|
||||||
title: "There's a Blog!",
|
title: "There's a Blog!",
|
||||||
date: new Date(),
|
date: new Date(2022, 7, 6, 12, 0, 0),
|
||||||
image: VrboImage,
|
image: VrboImage,
|
||||||
mdfile: TAB,
|
mdfile: TAB,
|
||||||
private: false
|
private: false
|
||||||
|
@ -21,9 +22,9 @@ const TestBlog: Blog = {
|
||||||
|
|
||||||
const PrivateBlog: Blog = {
|
const PrivateBlog: Blog = {
|
||||||
title: "This blog can only be accessed via the direct URI",
|
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,
|
image: VrboImage,
|
||||||
mdfile: TAB,
|
mdfile: HID,
|
||||||
private: true
|
private: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
3
src/static/data/blogs/hidden-blog.md
Normal file
3
src/static/data/blogs/hidden-blog.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
This blog is unique because it is hidden.
|
||||||
|
|
||||||
|
Congratulations on finding it!
|
|
@ -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.
|
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.
|
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.
|
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.
|
||||||
|
|
Loading…
Reference in a new issue