fix: guide links and firefox/chrome styles

This commit is contained in:
2024-11-17 22:50:46 +01:00
parent c868cd4706
commit f90493ea34
6 changed files with 41 additions and 15 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ const guides = await getCollection('guides')
</div>
<div class="text">{guide.data.description}</div>
<div class="tags">
{guide.data.tags.map(tag => (
{guide.data.tags.map((tag: string) => (
<a href={`/guide/tags/${tag}`}>#{tag}</a>
))}
</div>
+3 -3
View File
@@ -9,7 +9,7 @@ export async function getStaticPaths() {
const tags: string[] = []
guides.forEach(post => {
post.data.tags.forEach(tag => {
post.data.tags.forEach((tag: string) => {
tags.push(tag)
})
})
@@ -40,11 +40,11 @@ const { tag, guides } = Astro.props
guides.map(guide => (
<div class="card">
<div class="title">
<a href={`/guide/${guide.slug}`}>{guide.data.title}</a>
<a href={`/guide/${guide.data.id}`}>{guide.data.title}</a>
</div>
<div class="text">{guide.data.description}</div>
<div class="tags">
{guide.data.tags.map(tag => (
{guide.data.tags.map((tag: string) => (
<a href={`/guide/tags/${tag}`}>#{tag}</a>
))}
</div>