Compare commits
3 commits
ee6a2df4d6
...
22fb4ae3bb
| Author | SHA1 | Date | |
|---|---|---|---|
| 22fb4ae3bb | |||
| 033a55da69 | |||
| 5780fa6ad6 |
5 changed files with 14 additions and 16 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!
|
||||||
|
|
@ -7,7 +6,7 @@ image:
|
||||||
path: construction.png
|
path: construction.png
|
||||||
alt: Under Construction
|
alt: Under Construction
|
||||||
author: Tim
|
author: Tim
|
||||||
date: '2026-07-10'
|
date: 2026-07-10
|
||||||
slug: Under-Construction
|
slug: Under-Construction
|
||||||
time2read: 1
|
time2read: 1
|
||||||
---
|
---
|
||||||
|
|
|
||||||
|
|
@ -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...
|
||||||
|
|
@ -7,7 +6,7 @@ image:
|
||||||
path: ostsee.webp
|
path: ostsee.webp
|
||||||
alt: Chiara und Tim vor einem Strand
|
alt: Chiara und Tim vor einem Strand
|
||||||
author: Tim
|
author: Tim
|
||||||
date: '2026-08-20'
|
date: 2026-08-20
|
||||||
slug: Ostseeurlaub
|
slug: Ostseeurlaub
|
||||||
time2read: 6
|
time2read: 6
|
||||||
---
|
---
|
||||||
|
|
|
||||||
|
|
@ -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.
|
||||||
|
|
@ -7,7 +6,7 @@ image:
|
||||||
path: titelbild_matrei.webp
|
path: titelbild_matrei.webp
|
||||||
alt: Chiara und Tim in der nähe der Bergeralm mit tollen Bergen im Hintergrund.
|
alt: Chiara und Tim in der nähe der Bergeralm mit tollen Bergen im Hintergrund.
|
||||||
author: Tim
|
author: Tim
|
||||||
date: '2026-08-29'
|
date: 2026-08-29
|
||||||
slug: Luxusurlaub-in-Matrei
|
slug: Luxusurlaub-in-Matrei
|
||||||
time2read: 14
|
time2read: 14
|
||||||
---
|
---
|
||||||
|
|
@ -20,7 +19,7 @@ Wie das funktioniert erfahrt ihr im Artikel.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
>**TL:DR (Lesezeit: 10 sek)** </br>
|
>**TL;DR (Lesezeit: 10 sek)** </br>
|
||||||
Chiara meint ich soll eine Kurzfassung anbieten, weil der Artikel so lang ist...</br>
|
Chiara meint ich soll eine Kurzfassung anbieten, weil der Artikel so lang ist...</br>
|
||||||
Na bitte:
|
Na bitte:
|
||||||
Schöne Woche, jederzeit wieder. </br>
|
Schöne Woche, jederzeit wieder. </br>
|
||||||
|
|
|
||||||
|
|
@ -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