Skip to content

Commit

Permalink
Merge pull request #12 from RvD-Projects/main
Browse files Browse the repository at this point in the history
fix: trailing slashes and links
  • Loading branch information
ixartz committed Jun 12, 2023
2 parents fbfed42 + d1f7d03 commit d59a96d
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ pnpm-debug.log*
# misc
*.pem
Thumbs.db
.history
1 change: 1 addition & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { astroImageTools } from 'astro-imagetools';
export default defineConfig({
// base: '.', // Set a path prefix.
site: 'https://example.com/', // Use to generate your sitemap and canonical URLs in your final build.
trailingSlash: 'always', // Use to always append '/' at end of url
// Important!
// Only official '@astrojs/*' integrations are currently supported by Astro.
// Add 'experimental.integrations: true' to make 'astro-robots-txt' working
Expand Down
16 changes: 10 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/pages/posts/fifth-post.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ imgSrc: '/assets/images/image-post2.jpeg'
imgAlt: 'Image post 2'
---

Full typography example at [this page](./sixth-post).
Full typography example at [this page](../sixth-post/).
2 changes: 1 addition & 1 deletion src/pages/posts/first-post.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ imgSrc: '/assets/images/image-post7.jpeg'
imgAlt: 'Image post 7'
---

Full typography example at [this page](./sixth-post).
Full typography example at [this page](../sixth-post/).
2 changes: 1 addition & 1 deletion src/pages/posts/forth-post.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ imgSrc: '/assets/images/image-post3.jpeg'
imgAlt: 'Image post 3'
---

Full typography example at [this page](./sixth-post).
Full typography example at [this page](../sixth-post/).
2 changes: 1 addition & 1 deletion src/pages/posts/hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ imgSrc: '/assets/images/image-post6.jpeg'
imgAlt: 'Image post 6'
---

Full typography example at [this page](./sixth-post).
Full typography example at [this page](../sixth-post/).
2 changes: 1 addition & 1 deletion src/pages/posts/second-post.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ imgSrc: '/assets/images/image-post5.jpeg'
imgAlt: 'Image post 5'
---

Full typography example at [this page](./sixth-post).
Full typography example at [this page](../sixth-post/).
2 changes: 1 addition & 1 deletion src/pages/posts/third-post.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ imgSrc: '/assets/images/image-post4.jpeg'
imgAlt: 'Image post 4'
---

Full typography example at [this page](./sixth-post).
Full typography example at [this page](../sixth-post/).
2 changes: 1 addition & 1 deletion src/partials/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Navbar = () => (
</a>

<NavMenu>
<NavMenuItem href="/posts">Blogs</NavMenuItem>
<NavMenuItem href="/posts/">Blogs</NavMenuItem>
<NavMenuItem href="/">GitHub</NavMenuItem>
<NavMenuItem href="/">Twitter</NavMenuItem>
</NavMenu>
Expand Down

0 comments on commit d59a96d

Please sign in to comment.