+
{{ writing.title }}
-
+
{{ useDateFormat(writing.publishedAt, 'DD MMMM YYYY').value }} · {{ writing.readingTime }}min long
diff --git a/nuxt.config.ts b/nuxt.config.ts
index 94d8d34..83d0876 100644
--- a/nuxt.config.ts
+++ b/nuxt.config.ts
@@ -2,6 +2,18 @@
export default defineNuxtConfig({
future: { compatibilityVersion: 4 },
+ // Nuxt App
+ app: {
+ pageTransition: { name: 'page', mode: 'out-in' },
+ head: {
+ htmlAttrs: { lang: 'en' },
+ templateParams: {
+ separator: '•'
+ }
+ }
+ },
+
+ // Nuxt Modules
modules: [
'@nuxthub/core',
'@nuxt/eslint',
@@ -10,9 +22,10 @@ export default defineNuxtConfig({
'@vueuse/nuxt',
'@nuxtjs/google-fonts',
'@nuxthq/studio',
- "@nuxt/image"
+ '@nuxt/image'
],
+ // Nuxt Hub
hub: {
cache: true,
kv: true,
@@ -20,33 +33,26 @@ export default defineNuxtConfig({
analytics: true
},
- app: {
- pageTransition: { name: 'page', mode: 'out-in' },
- head: {
- htmlAttrs: { lang: 'en' }
- }
- },
-
+ // Nuxt Content
content: {
highlight: {
theme: 'github-dark'
}
},
+ // Nuxt Color Mode
colorMode: {
- preference: 'light',
+ preference: 'system',
fallback: 'light'
},
- ui: {
- icons: ['heroicons', 'logos', 'ph']
- },
-
+ // Nuxt Devtools
devtools: {
enabled: true,
timeline: { enabled: true }
},
+ // Nuxt Eslint
eslint: {
config: {
stylistic: {
@@ -56,6 +62,7 @@ export default defineNuxtConfig({
}
},
+ // Nuxt Google Fonts
googleFonts: {
display: 'swap',
families: {
@@ -66,12 +73,14 @@ export default defineNuxtConfig({
}
},
+ // Nitro
nitro: {
experimental: {
openAPI: true
}
},
+ // Nuxt Env
runtimeConfig: {
discord: {
userId: '',
@@ -91,4 +100,4 @@ export default defineNuxtConfig({
}
}
}
-})
\ No newline at end of file
+})
diff --git a/server/api/activity.get.ts b/server/api/activity/index.get.ts
similarity index 100%
rename from server/api/activity.get.ts
rename to server/api/activity/index.get.ts
diff --git a/server/api/stats.get.ts b/server/api/stats/index.get.ts
similarity index 100%
rename from server/api/stats.get.ts
rename to server/api/stats/index.get.ts
diff --git a/app/tailwind.config.ts b/tailwind.config.ts
similarity index 100%
rename from app/tailwind.config.ts
rename to tailwind.config.ts