Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jnhooper committed Oct 27, 2024
1 parent 19bb9d6 commit e20c5ae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
14 changes: 9 additions & 5 deletions src/pages/dev/blog/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@ const devBlogs = await getCollection('dev');
{
devBlogs.map(blogPostEntry => (
<li>
<a href={blogPostEntry.slug}>{blogPostEntry.data.title}</a>
<time datetime={blogPostEntry.data.publishDate.toISOString()}>
{blogPostEntry.data.publishDate.toDateString()}
</time>
<a href={blogPostEntry.slug}>
<h2 class:list={['text-3xl']}>
{blogPostEntry.data.title}
</h2>
<time datetime={blogPostEntry.data.publishDate.toISOString()}>
{blogPostEntry.data.publishDate.toDateString()}
</time>
</a>
</li>
))
}
Expand All @@ -35,7 +39,7 @@ const devBlogs = await getCollection('dev');
.wrapper{
:global(h2){
font-weight: bold;
font-size: 3rem;
/* font-size: 2rem; */
}
:global(p){
margin: 8px 0;
Expand Down
1 change: 0 additions & 1 deletion src/pages/dev/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {getCollection, getEntryBySlug} from 'astro:content';
const devBlogs = await getCollection('dev');
const slug = devBlogs[0].slug;
const entry = await getEntryBySlug('dev', devBlogs[0].slug)
console.log(entry);
const {Content} = await entry.render();
// IMPORTANT. DO NOT PUT CONTENT IN THIS LAYOUT. THE 100VH FUCKS IT UPJJ:We
---
Expand Down

0 comments on commit e20c5ae

Please sign in to comment.