Skip to content

Commit

Permalink
feat: ref component and jwt article
Browse files Browse the repository at this point in the history
  • Loading branch information
gao-sun committed Oct 28, 2024
1 parent c1839a9 commit d69b21e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/articles/machine-to-machine.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ sequenceDiagram
B -->> A: Response
```

For more information about JSON Web Tokens, see [JWT](/jwt).
For more information about JSON Web Tokens, see <Ref slug="jwt" />.

Advantages (with JWT):

Expand Down
3 changes: 2 additions & 1 deletion src/pages/[slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import Footer from "../components/Footer.astro";
import BackgroundCells from "../components/BackgroundCells.astro";
import FancyHr from "../components/FancyHr.astro";
import Img from "../mdx-components/Img.astro";
import Ref from "../mdx-components/Ref.astro";
export async function getStaticPaths() {
return articles.map(({ slug, ...rest }) => {
Expand Down Expand Up @@ -60,7 +61,7 @@ if (!Content) {
</ul>
</nav>
<div class="main-body">
<Content components={{ img: Img }} />
<Content components={{ img: Img, Ref }} />
</div>
</div>
</article>
Expand Down

0 comments on commit d69b21e

Please sign in to comment.