0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-31 23:31:30 -05:00

Remove trailing spaces from blog example links. (#13389)

A formatter introduced newlines inside the anchor tags on the blog example's home `index.astro` page, causing the link to include a trailing space. Not the worst thing, just looks a little unpolished compared to everything else I've experienced getting to know Astro :)

I've put the anchor tags on their own lines to avoid this issue, _and_ prevent future formatters from re-introducing the issue (tested with Astro extension's formatter, at least). Ran the example locally (`cd examples/blog && npm run dev`) and it fixes the issue.

Co-authored-by: Matt Kane <m@mk.gg>
This commit is contained in:
duck.lol 2025-03-11 10:17:50 +01:00 committed by GitHub
parent e744674e45
commit acf8dd1d49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,15 +34,14 @@ import { SITE_TITLE, SITE_DESCRIPTION } from '../consts';
<li>Customize the blog post page layout in <code>src/layouts/BlogPost.astro</code></li>
</ul>
<p>
Have fun! If you get stuck, remember to <a href="https://docs.astro.build/"
>read the docs
</a> or <a href="https://astro.build/chat">join us on Discord</a> to ask questions.
Have fun! If you get stuck, remember to
<a href="https://docs.astro.build/">read the docs</a>
or <a href="https://astro.build/chat">join us on Discord</a> to ask questions.
</p>
<p>
Looking for a blog template with a bit more personality? Check out <a
href="https://github.com/Charca/astro-blog-template"
>astro-blog-template
</a> by <a href="https://twitter.com/Charca">Maxi Ferreira</a>.
Looking for a blog template with a bit more personality? Check out
<a href="https://github.com/Charca/astro-blog-template">astro-blog-template</a>
by <a href="https://twitter.com/Charca">Maxi Ferreira</a>.
</p>
</main>
<Footer />