Im gonna explode

This commit is contained in:
Michał 2024-05-23 20:23:52 +01:00
parent 06199deff2
commit 526c6e26e1
3 changed files with 3 additions and 9 deletions

View file

@ -10,9 +10,7 @@ const { frontmatter } = Astro.props;
<p>By {frontmatter.author}</p> <p>By {frontmatter.author}</p>
<ul id="tags"> <ul id="tags">
{frontmatter.tags.map(item => ( {frontmatter.tags.map((item: string) => ( <li class="pill">#{item}</li> ))}
<li class="pill">#{item}</li>
))}
</ul> </ul>
<hr> <hr>

View file

@ -21,9 +21,7 @@ const { post } = Astro.props;
<h1>{post.data.title}</h1> <h1>{post.data.title}</h1>
<p>{post.data.description}</p> <p>{post.data.description}</p>
<ul id="tags"> <ul id="tags">
{post.data.tags.map(item => ( {post.data.tags.map((item: string) => ( <li class="pill">#{item}</li> ))}
<li class="pill">#{item}</li>
))}
</ul> </ul>
<hr> <hr>

View file

@ -22,9 +22,7 @@ const { project } = Astro.props;
<h1>{project.data.title}</h1> <h1>{project.data.title}</h1>
<p>{project.data.description}</p> <p>{project.data.description}</p>
<ul id="tags"> <ul id="tags">
{project.data.tags.map(item => ( {project.data.tags.map((item: string) => ( <li class="pill">#{item}</li> ))}
<li class="pill">#{item}</li>
))}
</ul> </ul>
<hr> <hr>