Unverified Commit 058fc6ac authored by dagil-nvidia's avatar dagil-nvidia Committed by GitHub
Browse files

fix: correct blog URL from /blog/blog to /blog (#6414)


Signed-off-by: default avatarDan Gil <dagil@nvidia.com>
Co-authored-by: default avatarCursor <cursoragent@cursor.com>
parent ccf18b64
...@@ -11,7 +11,7 @@ docs/blogs/my-post-slug.md ...@@ -11,7 +11,7 @@ docs/blogs/my-post-slug.md
``` ```
Use kebab-case for the filename. The filename becomes the URL slug Use kebab-case for the filename. The filename becomes the URL slug
(e.g., `my-post-slug.md` serves at `/dynamo/blog/my-post-slug`). (e.g., `my-post-slug.md` serves at `/dynamo/dev/blog/my-post-slug`).
Add frontmatter at the top of the file: Add frontmatter at the top of the file:
...@@ -28,14 +28,14 @@ Open `docs/versions/dev.yml` and add a page entry under the **Blog** section: ...@@ -28,14 +28,14 @@ Open `docs/versions/dev.yml` and add a page entry under the **Blog** section:
```yaml ```yaml
- section: Blog - section: Blog
contents:
- page: All Posts
path: ../blogs/index.mdx path: ../blogs/index.mdx
slug: blog
contents:
- page: Your Blog Post Title - page: Your Blog Post Title
path: ../blogs/my-post-slug.md path: ../blogs/my-post-slug.md
``` ```
Each new post gets a `- page:` entry after the landing page. The `page` Each new post gets a `- page:` entry in the `contents` list. The `page`
value is the display name in the sidebar; the `path` points to your file. value is the display name in the sidebar; the `path` points to your file.
## Step 3: Add a Card to the Landing Page ## Step 3: Add a Card to the Landing Page
...@@ -46,7 +46,7 @@ Open `docs/blogs/index.mdx` and add a `<Card>` inside the existing `<CardGroup>` ...@@ -46,7 +46,7 @@ Open `docs/blogs/index.mdx` and add a `<Card>` inside the existing `<CardGroup>`
<Card <Card
title="Your Blog Post Title" title="Your Blog Post Title"
icon="regular newspaper" icon="regular newspaper"
href="/dynamo/blog/my-post-slug" href="/dynamo/dev/blog/my-post-slug"
> >
A brief summary of what this post covers (1-2 sentences). A brief summary of what this post covers (1-2 sentences).
</Card> </Card>
...@@ -58,7 +58,7 @@ Open `docs/blogs/index.mdx` and add a `<Card>` inside the existing `<CardGroup>` ...@@ -58,7 +58,7 @@ Open `docs/blogs/index.mdx` and add a `<Card>` inside the existing `<CardGroup>`
|--------|----------|----------------------------------------------------------| |--------|----------|----------------------------------------------------------|
| title | Yes | Post title displayed on the card | | title | Yes | Post title displayed on the card |
| icon | No | Font Awesome icon class (e.g., `regular bolt`) | | icon | No | Font Awesome icon class (e.g., `regular bolt`) |
| href | Yes | URL path starting with `/dynamo/blog/` | | href | Yes | URL path starting with `/dynamo/dev/blog/` |
| (body) | Yes | Short summary text inside the Card tags | | (body) | Yes | Short summary text inside the Card tags |
The `<CardGroup cols={2}>` wrapper is already in `index.mdx`. Just add your The `<CardGroup cols={2}>` wrapper is already in `index.mdx`. Just add your
...@@ -76,9 +76,9 @@ navbar-links: ...@@ -76,9 +76,9 @@ navbar-links:
text: Blog text: Blog
links: links:
- text: All Posts - text: All Posts
href: /dynamo/blog href: /dynamo/dev/blog
- text: Your Blog Post Title - text: Your Blog Post Title
href: /dynamo/blog/my-post-slug href: /dynamo/dev/blog/my-post-slug
``` ```
Only add featured/recent posts here. The dropdown should stay short (5 items max). Only add featured/recent posts here. The dropdown should stay short (5 items max).
......
...@@ -41,7 +41,7 @@ navbar-links: ...@@ -41,7 +41,7 @@ navbar-links:
text: Blog text: Blog
links: links:
- text: All Posts - text: All Posts
href: /dynamo/blog href: /dynamo/dev/blog
- type: github - type: github
value: https://github.com/ai-dynamo/dynamo value: https://github.com/ai-dynamo/dynamo
......
...@@ -211,10 +211,9 @@ navigation: ...@@ -211,10 +211,9 @@ navigation:
# ==================== Blog ==================== # ==================== Blog ====================
- section: Blog - section: Blog
contents:
- page: All Posts
path: ../blogs/index.mdx path: ../blogs/index.mdx
slug: blog slug: blog
contents: []
# ==================== Hidden Pages ==================== # ==================== Hidden Pages ====================
# Pages accessible via direct URL but not shown in main navigation. # Pages accessible via direct URL but not shown in main navigation.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment