Skip to content

Commit b76756c

Browse files
authored
Merge pull request #13 from h4sci/blog
ts is strict!
2 parents 1a2575f + 6ebd54b commit b76756c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/content/blog/block-1-debriefing/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: "Matt Bannert"
44
toc: false
55
draft: false
66
snippet: "Stack -- a developer's toolkit. We discussed how much DevOps a researcher and analyst really needs. Not all rabbit holes are for everyone. Git version control carpentry may be the one skill you must take a way from a semester of hacking for science... Read more!"
7-
cover: "./dr_egghead_panics.jpg"
7+
cover: ./dr_egghead_panics.jpg
88
coverAlt: "Dr. Egghead panics - too many tools and rabbit holes for him."
99
publishDate: "2025-09-26"
1010
category: "Recap"

src/pages/blog.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ const publishedBlogEntries = await getCollection("blog", ({ data }) => {
1414
publishedBlogEntries.sort(function (a, b) {
1515
return b.data.publishDate.valueOf() - a.data.publishDate.valueOf();
1616
});
17+
18+
console.log("Cover data:", publishedBlogEntries[0]?.data.cover);
1719
---
1820

1921

@@ -33,7 +35,7 @@ publishedBlogEntries.sort(function (a, b) {
3335
<a href={`/blog/${blogPostEntry.slug}`}>
3436
<div class="grid md:grid-cols-2 gap-5 md:gap-10 items-center">
3537
<Picture
36-
src={blogPostEntry.data.cover}
38+
src={blogPostEntry.data.cover.src}
3739
alt={blogPostEntry.data.coverAlt}
3840
sizes="(max-width: 800px) 100vw, 800px"
3941
width={800}

src/pages/blog/[slug].astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
import { getCollection } from "astro:content";
33
import Layout from "@layouts/Layout.astro";
4-
import Container from "@components/container.astro";
4+
import Container from "@components/Container.astro";
55
66
// Generate a new path for every collection entry
77
export async function getStaticPaths() {

0 commit comments

Comments
 (0)