Fix layout for multiple blog entries. Adds max width.

This commit is contained in:
2025-07-31 17:05:28 -07:00
parent 8a73044c19
commit 89533e006f
2 changed files with 14 additions and 1 deletions

View File

@@ -57,6 +57,7 @@ const { title = SITE_TITLE, description = SITE_DESCRIPTION } = Astro.props;
"footer footer";
grid-template-columns: 20rem 1fr;
margin: 2rem 1rem;
max-width: 1600px;
}
.header {
display: none;

View File

@@ -16,11 +16,22 @@ const posts = (await getCollection('blog', publishedOnly))
---
<RootLayout>
<style>
<style>
ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 16px;
align-items: stretch;
li {
/* Required since flex won't render list-elements correctly. */
display: block;
}
a {
text-decoration: none;
@@ -37,6 +48,7 @@ const posts = (await getCollection('blog', publishedOnly))
margin: 0;
}
}
a:hover .title {
color: var(--color-accent);
}