Skip to content

Commit

Permalink
add docs sitemap, fix page title
Browse files Browse the repository at this point in the history
  • Loading branch information
claytercek committed Dec 5, 2024
1 parent 03688ac commit 43dfb3d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,13 @@ export default defineConfig({
],
["meta", { name: "robots", content: "index, follow" }],
["meta", { name: "viewport", content: "width=device-width, initial-scale=1.0" }],
["link", { rel: "sitemap", href: "https://bluecadet.github.io/launchpad/sitemap.xml", type: "application/xml" }],
],

sitemap: {
hostname: "https://bluecadet.github.io/launchpad/",
},

// add canonical link to head
transformPageData(pageData, ctx) {
const canonicalUrl = `https://bluecadet.github.io/launchpad/${pageData.relativePath}`
Expand Down
3 changes: 2 additions & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
titleTemplate: 🚀 Launchpad
title: 🚀 Launchpad
titleTemplate: ':title'
---
<script setup>
import PackageHeader from './components/PackageHeader.vue'
Expand Down
2 changes: 1 addition & 1 deletion docs/src/recipes/transforming-sanity-images.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default defineConfig({
```

>[!TIP]
>It's added _before_ the mediaDownloader (unlike the `sharp` plugin) because it modifies
>It's added _before_ the mediaDownloader (unlike the `sharp` plugin) because it modifies the image URLs before they are downloaded. Conversely, the `sharp` plugin modifies the image files after they are downloaded.
## Available Transformations

Expand Down

0 comments on commit 43dfb3d

Please sign in to comment.