diff options
author | 2025-03-11 10:17:50 +0100 | |
---|---|---|
committer | 2025-03-11 09:17:50 +0000 | |
commit | acf8dd1d4979c0a56d95cd3723e37dd8e25e0a43 (patch) | |
tree | bcb4ddc637531a5c9a0cdc539c179873e8919782 | |
parent | e744674e4556e27437bbd8db3b3fbdb4081dd0da (diff) | |
download | astro-acf8dd1d4979c0a56d95cd3723e37dd8e25e0a43.tar.gz astro-acf8dd1d4979c0a56d95cd3723e37dd8e25e0a43.tar.zst astro-acf8dd1d4979c0a56d95cd3723e37dd8e25e0a43.zip |
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>
-rw-r--r-- | examples/blog/src/pages/index.astro | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/examples/blog/src/pages/index.astro b/examples/blog/src/pages/index.astro index 31269efde..6d7c4caed 100644 --- a/examples/blog/src/pages/index.astro +++ b/examples/blog/src/pages/index.astro @@ -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 /> |