+
{{ photo.title }}
-
+
{{ photo.description }}
@@ -40,6 +40,7 @@
name: "PhotographyPage",
components: { XSpacer, TopBarLayout },
setup() {
+
return {
photos
}
diff --git a/src/photos.ts b/src/photos.ts
index e897b18..2ed203d 100644
--- a/src/photos.ts
+++ b/src/photos.ts
@@ -8,7 +8,7 @@ export const photos = [
{
"file": "Martyrdom.webp",
"title": "Martyrdom",
- "date": "2020-10-19",
+ "date": "2019",
"description": "The Sankt-Laurentius church right by the Mosel river in Bremm (Germany)."
}
]
diff --git a/src/posts.ts b/src/posts.ts
new file mode 100644
index 0000000..6848d21
--- /dev/null
+++ b/src/posts.ts
@@ -0,0 +1,19 @@
+import { $fetch } from "ohmyfetch"
+
+const USERNAME = "moritzruth"
+
+export interface Post {
+ id: number
+ title: string
+ slug: string
+ description: string
+ published_at: string
+ reading_time_minutes: number
+}
+
+export interface FullPost extends Post {
+ body_html: string
+}
+
+export const getPosts = () => $fetch
(`https://dev.to/api/articles?username=${USERNAME}&per_page=1000`)
+export const getPostBySlug = (slug: string) => $fetch(`https://dev.to/api/articles/${USERNAME}/${slug}`)
diff --git a/windi.config.ts b/windi.config.ts
index c5b064a..cb2a0a3 100644
--- a/windi.config.ts
+++ b/windi.config.ts
@@ -18,7 +18,8 @@ export default defineConfig({
background: "#070707"
},
fontFamily: {
- sans: ["Plus Jakarta Sans", "sans-serif"]
+ sans: ["Plus Jakarta Sans", "sans-serif"],
+ special: ["Syne", "sans-serif"]
}
},
plugins: [