
nhonvo.github.io
Each blog post should have a properly formatted YAML front matter section at the top.
Simply add a YouTube URL on a separate line:
https://www.youtube.com/watch?v=dQw4w9WgXcQ
Result:
For any other link, just place it on its own line:
https://nhonvo.github.io
Result:
Use the following syntax to embed an Excalidraw diagram:
:excalidraw[/src/assets/posts/excalidraw-demo.svg]
Use backticks for inline code:
Write inline code like this: `inline code`
Result:
This is some inline code
Wrap your code with triple backticks (`````) and specify the language for syntax highlighting.
Example:
```js
const message = "Hello, world!";
console.log(message);
Result:
```js
const message = "Hello, world!";
console.log(message);
Add // [!code highlight]
to highlight specific lines.
Example:
const hello = "Hello world!";
console.log(hello); // [!code highlight]
title: "My Blog Post"
description: "A short summary of the post."
pubDate: "Mar 31 2025"
published
: Set to false
to hide the post.hidden
: Keeps the post accessible but not listed.tags
: Assign relevant tags to categorize your post.updatedDate
: Specify when the post was last updated.heroImage
: Path to the cover image.disableComments
: Set to true
to disable comments.disableLikes
: Set to true
to disable likes.Example:
title: "Advanced Markdown Guide"
description: "Master Markdown with this guide."
pubDate: "Apr 01 2025"
published: true
tags: ["markdown", "blogging"]
heroImage: "../../assets/blog-cover.jpg"
disableComments: false
disableLikes: false
<github-username>.github.io
or any other repo name.src/config.ts
with your details.SITE: "https://nhonvo.github.io",
BASE: "/algo-blog",
SITE_TITLE: "My Awesome Blog",
SITE_DESCRIPTION: "A place for my thoughts.",
about.mdx
and add blog posts in src/content/blog/
.**BASE_COLOR**
: Background color (e.g., gray
, stone
, zinc
).**ACCENT_COLOR**
: Link color (e.g., blue
, red
, green
).**MANUAL_DARK_MODE**
: Set true
to enable dark mode toggle.