Skip to content

Commit

Permalink
always add trailing slash to blog links
Browse files Browse the repository at this point in the history
  • Loading branch information
vincanger committed May 21, 2024
1 parent 329b8bd commit 2896209
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions blog/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import tailwind from '@astrojs/tailwind';
// https://astro.build/config
export default defineConfig({
site: 'https://opensaas.sh',
trailingSlash: 'always',
integrations: [
starlight({
title: 'Your SaaS',
Expand Down
2 changes: 1 addition & 1 deletion blog/src/components/MyHeader.astro
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const { siteTitle } = Astro.props;
<a href="/" class="text-gray-900 hover:text-yellow-500 dark:text-white">Docs</a>
</div>
<div>
<a href="/blog" class="text-gray-900 hover:text-yellow-500 dark:text-white">{blogConfig.title}</a>
<a href="/blog/" class="text-gray-900 hover:text-yellow-500 dark:text-white">{blogConfig.title}</a>
</div>

<style>
Expand Down

0 comments on commit 2896209

Please sign in to comment.