changes cause build fail
All checks were successful
Build and Deploy Astro App / build_and_deploy (push) Successful in 48s
All checks were successful
Build and Deploy Astro App / build_and_deploy (push) Successful in 48s
This commit is contained in:
parent
5780fa6ad6
commit
033a55da69
5 changed files with 10 additions and 12 deletions
|
|
@ -7,13 +7,14 @@ import { formatLocalizedDateString } from "../lib/formatDate";
|
||||||
import type { PostData } from "../content.config";
|
import type { PostData } from "../content.config";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
frontmatter: PostData;
|
postData: PostData;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { frontmatter } = Astro.props;
|
const { postData } = Astro.props;
|
||||||
|
|
||||||
|
const titleImg = findImageByPath(postData.image.path);
|
||||||
|
const localeDate = formatLocalizedDateString(postData.date);
|
||||||
|
|
||||||
const titleImg = findImageByPath(frontmatter.image.path);
|
|
||||||
const localeDate = formatLocalizedDateString(frontmatter.date);
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<Main>
|
<Main>
|
||||||
|
|
@ -21,12 +22,12 @@ const localeDate = formatLocalizedDateString(frontmatter.date);
|
||||||
<Image
|
<Image
|
||||||
id="titleImg"
|
id="titleImg"
|
||||||
src={titleImg}
|
src={titleImg}
|
||||||
alt={frontmatter.image.alt}
|
alt={postData.image.alt}
|
||||||
class="rounded"
|
class="rounded"
|
||||||
/>
|
/>
|
||||||
<h1 class="headline">{frontmatter.title}</h1>
|
<h1 class="headline">{postData.title}</h1>
|
||||||
<div class="bottom-info">
|
<div class="bottom-info">
|
||||||
<span>Autor: {frontmatter.author}</span>
|
<span>Autor: {postData.author}</span>
|
||||||
<span>{localeDate}</span>
|
<span>{localeDate}</span>
|
||||||
</div>
|
</div>
|
||||||
<slot />
|
<slot />
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
---
|
---
|
||||||
layout: ../../layouts/BlogPostLayout.astro
|
|
||||||
title: Under Construction
|
title: Under Construction
|
||||||
subtitle: Wir bauen für Sie
|
subtitle: Wir bauen für Sie
|
||||||
description: Bald könnt ihr hier unsere ersten Abenteuer mitverfolgen. Und keine Sorge...an der Webseite wird auch noch gearbeitet!
|
description: Bald könnt ihr hier unsere ersten Abenteuer mitverfolgen. Und keine Sorge...an der Webseite wird auch noch gearbeitet!
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
---
|
---
|
||||||
layout: ../../layouts/BlogPostLayout.astro
|
|
||||||
title: Ostseeurlaub
|
title: Ostseeurlaub
|
||||||
subtitle: Finden wir ein Boot? Suchen wir überhaupt oder faulenzen wir nur?
|
subtitle: Finden wir ein Boot? Suchen wir überhaupt oder faulenzen wir nur?
|
||||||
description: Ostseeurlaub bedeutet für mich ganz viele Kindheitserinnerungen. Besonders diese Woche war vollgepackt davon. Hier meine Reiseempfehlung...
|
description: Ostseeurlaub bedeutet für mich ganz viele Kindheitserinnerungen. Besonders diese Woche war vollgepackt davon. Hier meine Reiseempfehlung...
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
---
|
---
|
||||||
layout: ../../layouts/BlogPostLayout.astro
|
|
||||||
title: Luxusurlaub in den Bergen - Hike & Bike im Wipptal
|
title: Luxusurlaub in den Bergen - Hike & Bike im Wipptal
|
||||||
subtitle: Das ist jetzt also unser Leben. Luxushotels, 3-Gänge-Menüs und die schönsten Umgebungen.
|
subtitle: Das ist jetzt also unser Leben. Luxushotels, 3-Gänge-Menüs und die schönsten Umgebungen.
|
||||||
description: Was könnte ein besser Kontrast zum Zelturlaub an der Ostsee sein, als eine Woche in einem luxuriösen Hotel, mitten in den Alpen? Und wenn ihr jetzt denkt, dass wir unsere Abfindung verschleudern...das ganze hat uns nur 80€ p.P. gekostet ;). Wie das funktioniert erfahrt ihr im Artikel.
|
description: Was könnte ein besser Kontrast zum Zelturlaub an der Ostsee sein, als eine Woche in einem luxuriösen Hotel, mitten in den Alpen? Und wenn ihr jetzt denkt, dass wir unsere Abfindung verschleudern...das ganze hat uns nur 80€ p.P. gekostet ;). Wie das funktioniert erfahrt ihr im Artikel.
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import { getCollection, render } from "astro:content";
|
||||||
import BlogPostLayout from "../../layouts/BlogPostLayout.astro";
|
import BlogPostLayout from "../../layouts/BlogPostLayout.astro";
|
||||||
|
|
||||||
export async function getStaticPaths() {
|
export async function getStaticPaths() {
|
||||||
const posts = await getCollection("posts");
|
const posts = await getCollection('posts');
|
||||||
|
|
||||||
return posts.map((post) => ({
|
return posts.map((post) => ({
|
||||||
params: {
|
params: {
|
||||||
|
|
@ -19,6 +19,6 @@ const { post } = Astro.props;
|
||||||
const { Content } = await render(post);
|
const { Content } = await render(post);
|
||||||
---
|
---
|
||||||
|
|
||||||
<BlogPostLayout frontmatter={post.data}>
|
<BlogPostLayout postData={post.data}>
|
||||||
<Content />
|
<Content />
|
||||||
</BlogPostLayout>
|
</BlogPostLayout>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue