From fb3c95aa81b626793d943117ee65f7a651ec7a85 Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Mon, 24 Apr 2023 16:14:53 +0200 Subject: [PATCH] feat: move Haiku to collection --- src/content/config.ts | 13 +++++++++++++ src/content/haiku/1.md | 11 +++++++++++ src/content/haiku/10.md | 11 +++++++++++ src/content/haiku/11.md | 11 +++++++++++ src/content/haiku/12.md | 11 +++++++++++ src/content/haiku/13.md | 11 +++++++++++ src/content/haiku/14.md | 11 +++++++++++ src/content/haiku/15.md | 11 +++++++++++ src/content/haiku/16.md | 11 +++++++++++ src/content/haiku/17.md | 11 +++++++++++ src/content/haiku/18.md | 11 +++++++++++ src/content/haiku/19.md | 11 +++++++++++ src/content/haiku/2.md | 11 +++++++++++ src/content/haiku/20.md | 11 +++++++++++ src/content/haiku/21.md | 11 +++++++++++ src/content/haiku/22.md | 11 +++++++++++ src/content/haiku/23.md | 11 +++++++++++ src/content/haiku/3.md | 11 +++++++++++ src/content/haiku/4.md | 11 +++++++++++ src/content/haiku/5.md | 11 +++++++++++ src/content/haiku/6.md | 11 +++++++++++ src/content/haiku/7.md | 11 +++++++++++ src/content/haiku/8.md | 11 +++++++++++ src/content/haiku/9.md | 11 +++++++++++ tsconfig.json | 13 +++++++------ 25 files changed, 273 insertions(+), 6 deletions(-) create mode 100644 src/content/config.ts create mode 100644 src/content/haiku/1.md create mode 100644 src/content/haiku/10.md create mode 100644 src/content/haiku/11.md create mode 100644 src/content/haiku/12.md create mode 100644 src/content/haiku/13.md create mode 100644 src/content/haiku/14.md create mode 100644 src/content/haiku/15.md create mode 100644 src/content/haiku/16.md create mode 100644 src/content/haiku/17.md create mode 100644 src/content/haiku/18.md create mode 100644 src/content/haiku/19.md create mode 100644 src/content/haiku/2.md create mode 100644 src/content/haiku/20.md create mode 100644 src/content/haiku/21.md create mode 100644 src/content/haiku/22.md create mode 100644 src/content/haiku/23.md create mode 100644 src/content/haiku/3.md create mode 100644 src/content/haiku/4.md create mode 100644 src/content/haiku/5.md create mode 100644 src/content/haiku/6.md create mode 100644 src/content/haiku/7.md create mode 100644 src/content/haiku/8.md create mode 100644 src/content/haiku/9.md diff --git a/src/content/config.ts b/src/content/config.ts new file mode 100644 index 0000000..dea6577 --- /dev/null +++ b/src/content/config.ts @@ -0,0 +1,13 @@ +import { defineCollection, z } from 'astro:content'; + +const haikuCollection = defineCollection({ + schema: z.object({ + date: z.date(), + de: z.string(), + en: z.string(), + }), +}); + +export const collections = { + haiku: haikuCollection, +}; diff --git a/src/content/haiku/1.md b/src/content/haiku/1.md new file mode 100644 index 0000000..d60b8c2 --- /dev/null +++ b/src/content/haiku/1.md @@ -0,0 +1,11 @@ +--- +date: 2020-01-01 +de: | + Wolken, unbewegt, + ein Kind lacht laut auf im Hof – + weit ist der Himmel. +en: | + Clouds, unmoved, + a child laughs out loud in the yard – + wide is the sky. +--- diff --git a/src/content/haiku/10.md b/src/content/haiku/10.md new file mode 100644 index 0000000..e4e393a --- /dev/null +++ b/src/content/haiku/10.md @@ -0,0 +1,11 @@ +--- +date: 2020-10-01 +de: | + Es ist gänzlich still, + blauer Himmel und Sonne – + ein Sonntag im Herbst., +en: | + It is completely silenent, + blue sky and sun – + a sunday in autumn. +--- diff --git a/src/content/haiku/11.md b/src/content/haiku/11.md new file mode 100644 index 0000000..597606f --- /dev/null +++ b/src/content/haiku/11.md @@ -0,0 +1,11 @@ +--- +date: 2020-11-01 +de: | + Wind in den Blättern, + wie das Rauschen von Regen + hoch in den Wipfeln., +en: | + Wind in the leaves, + like the rustle of rain + high in the tree tops. +--- diff --git a/src/content/haiku/12.md b/src/content/haiku/12.md new file mode 100644 index 0000000..f6a23ca --- /dev/null +++ b/src/content/haiku/12.md @@ -0,0 +1,11 @@ +--- +date: 2020-12-01 +de: | + Nebel am Abend, + kühle Luft, feucht wie Suppe – + kein goldener Herbst., +en: | + Fog in the evening, + cool air, moist like soup – + no golden autumn. +--- diff --git a/src/content/haiku/13.md b/src/content/haiku/13.md new file mode 100644 index 0000000..72701ad --- /dev/null +++ b/src/content/haiku/13.md @@ -0,0 +1,11 @@ +--- +date: 2021-01-01 +de: | + Ach, der Herbst ist da – + Da sind sie wieder: Laubbläser. + Ich vermisse den Rechen., +en: | + Oh, autumn arrived – + They are back: Leaf blowers. + I miss the rake. +--- diff --git a/src/content/haiku/14.md b/src/content/haiku/14.md new file mode 100644 index 0000000..583da07 --- /dev/null +++ b/src/content/haiku/14.md @@ -0,0 +1,11 @@ +--- +date: 2021-02-01 +de: | + Kühle Luft zieht auf, + Blätter taumeln im Wind – + letzter Sonnenstrahl., +en: | + Cool air draws in, + leaves tumble in the wind – + last ray of sunshine. +--- diff --git a/src/content/haiku/15.md b/src/content/haiku/15.md new file mode 100644 index 0000000..5d3c6f4 --- /dev/null +++ b/src/content/haiku/15.md @@ -0,0 +1,11 @@ +--- +date: 2021-03-01 +de: | + Die Luft riecht nach Moos, + raschelnde Schritte im Wald – + ein Jahr geht zu Ende., +en: | + The air smells of moss, + rustling footsteps in the forest – + a year is coming to and end. +--- diff --git a/src/content/haiku/16.md b/src/content/haiku/16.md new file mode 100644 index 0000000..701f88f --- /dev/null +++ b/src/content/haiku/16.md @@ -0,0 +1,11 @@ +--- +date: 2021-04-01 +de: | + Hinter der Hecke, + feuerrote Ahornblätter – + verweil’ ein wenig., +en: | + Behind the hedge, + fiery red maple leaves – + stay a little. +--- diff --git a/src/content/haiku/17.md b/src/content/haiku/17.md new file mode 100644 index 0000000..bdd1c82 --- /dev/null +++ b/src/content/haiku/17.md @@ -0,0 +1,11 @@ +--- +date: 2021-05-01 +de: | + Auf dem Berg ein Schrein, + moosbewachsene Stufen – + die Götter sind nah., +en: | + A shrine on the mountain + moss-covered steps – + the gods are near. +--- diff --git a/src/content/haiku/18.md b/src/content/haiku/18.md new file mode 100644 index 0000000..3f9eb50 --- /dev/null +++ b/src/content/haiku/18.md @@ -0,0 +1,11 @@ +--- +date: 2021-06-01 +de: | + Im Schutz des Baumes – + kalter Regen fällt nieder, + doch wir sind trocken., +en: | + Under shelter of the tree – + cold rain pouring down, + but we are dry. +--- diff --git a/src/content/haiku/19.md b/src/content/haiku/19.md new file mode 100644 index 0000000..9563760 --- /dev/null +++ b/src/content/haiku/19.md @@ -0,0 +1,11 @@ +--- +date: 2021-07-01 +de: | + Oft sah ich ihn dort, + den alten Mann auf der Bank – + jetzt ist sie verwaist., +en: | + I often saw him there, + the old man on the bench – + now it is abandoned. +--- diff --git a/src/content/haiku/2.md b/src/content/haiku/2.md new file mode 100644 index 0000000..76a64ae --- /dev/null +++ b/src/content/haiku/2.md @@ -0,0 +1,11 @@ +--- +date: 2020-02-01 +de: | + Sturm in dunkler Nacht, + Rascheln hoch in Baumkronen – + Rauschende Stille. +en: | + Storm in dark night, + Rustling high in the treetops – + Rushing silence. +--- diff --git a/src/content/haiku/20.md b/src/content/haiku/20.md new file mode 100644 index 0000000..b77b326 --- /dev/null +++ b/src/content/haiku/20.md @@ -0,0 +1,11 @@ +--- +date: 2021-08-01 +de: | + Regen fällt leise, + grau verhangener Himmel — + drinnen ist es warm., +en: | + Rain falls softly + gray cloudy sky – + it’s warm inside. +--- diff --git a/src/content/haiku/21.md b/src/content/haiku/21.md new file mode 100644 index 0000000..1a1a941 --- /dev/null +++ b/src/content/haiku/21.md @@ -0,0 +1,11 @@ +--- +date: 2021-09-01 +de: | + Blätter tanzen im Wind, + verborgen im dichten Nebel — + mein Herz ist so schwer., +en: | + Leaves dancing in the wind, + hidden in thick fog – + my heart is so heavy. +--- diff --git a/src/content/haiku/22.md b/src/content/haiku/22.md new file mode 100644 index 0000000..3e959e0 --- /dev/null +++ b/src/content/haiku/22.md @@ -0,0 +1,11 @@ +--- +date: 2021-10-01 +de: | + Kalt bläst der Herbstwind, + ich wandere verlassen im Wald – + Erinnerung an den Sommer., +en: | + Autumn wind blows cold, + I wander deserted in the forest – + Memory of summer. +--- diff --git a/src/content/haiku/23.md b/src/content/haiku/23.md new file mode 100644 index 0000000..8214529 --- /dev/null +++ b/src/content/haiku/23.md @@ -0,0 +1,11 @@ +--- +date: 2021-11-01 +de: | + Abzweigung am Weg, + nicht genommener Weg im Nebel – + Ich schaue nicht zurück., +en: | + Junction on the way, + the path not taken is in the fog – + I don't look back. +--- diff --git a/src/content/haiku/3.md b/src/content/haiku/3.md new file mode 100644 index 0000000..eca859e --- /dev/null +++ b/src/content/haiku/3.md @@ -0,0 +1,11 @@ +--- +date: 2020-03-01 +de: | + Prasselnder Regen – + eiligen Schrittes der Mann, + dem Schirm folgt er nach. +en: | + Crackling rain – + the man walks in a hurry, + he follows the umbrella. +--- diff --git a/src/content/haiku/4.md b/src/content/haiku/4.md new file mode 100644 index 0000000..ded0691 --- /dev/null +++ b/src/content/haiku/4.md @@ -0,0 +1,11 @@ +--- +date: 2020-04-01 +de: | + Die Winterwinde, + das Hausdach, es knackt und knarrt – + eisiger Regen. +en: | + The winter winds, + the house roof, it cracks and creaks – + freezing rain. +--- diff --git a/src/content/haiku/5.md b/src/content/haiku/5.md new file mode 100644 index 0000000..66c4dfe --- /dev/null +++ b/src/content/haiku/5.md @@ -0,0 +1,11 @@ +--- +date: 2020-05-01 +de: | + Flüsternde Stimmen – + Gespräche in dunkler Nacht, + vom Sturm weggeweht. +en: | + Whispers – + talks in the dark night, + blown away by the storm. +--- diff --git a/src/content/haiku/6.md b/src/content/haiku/6.md new file mode 100644 index 0000000..f18331b --- /dev/null +++ b/src/content/haiku/6.md @@ -0,0 +1,11 @@ +--- +date: 2020-06-01 +de: | + Die Luft ist schon frisch, + Cirruswölkchen am Himmel – + der Sommer endet., +en: | + The air is already fresh, + Cirrus clouds in the sky – + the summer ends. +--- diff --git a/src/content/haiku/7.md b/src/content/haiku/7.md new file mode 100644 index 0000000..7bbd912 --- /dev/null +++ b/src/content/haiku/7.md @@ -0,0 +1,11 @@ +--- +date: 2020-07-01 +de: | + Flackernde Kerzen, + schon endet das Lichterfest – + so auch der Sommer., +en: | + Flickering candles, + the festival of lights ends – + So does the summer. +--- diff --git a/src/content/haiku/8.md b/src/content/haiku/8.md new file mode 100644 index 0000000..03e46c1 --- /dev/null +++ b/src/content/haiku/8.md @@ -0,0 +1,11 @@ +--- +date: 2020-08-01 +de: | + Ein Windstoß, heftig, + reißt an der Zeitung so stark – + in Fetzen dahin., +en: | + A gust of wind, fierce, + rips the newspaper so hard – + in scraps. +--- diff --git a/src/content/haiku/9.md b/src/content/haiku/9.md new file mode 100644 index 0000000..2fe2b9e --- /dev/null +++ b/src/content/haiku/9.md @@ -0,0 +1,11 @@ +--- +date: 2020-09-01 +de: | + Schneebedeckter Berg – + am Hang fährt ein Skifahrer, + die Lawine folgt., +en: | + Snowy mountain – + a skier drives on a slope, + the avalanche follows. +--- diff --git a/tsconfig.json b/tsconfig.json index e90c686..ac6d852 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,8 @@ { - "extends": "astro/tsconfigs/strict", - "compilerOptions": { - "jsx": "react-jsx", - "jsxImportSource": "preact" - } -} \ No newline at end of file + "extends": "astro/tsconfigs/strict", + "compilerOptions": { + "jsx": "react-jsx", + "jsxImportSource": "preact", + "strictNullChecks": true + } +}