Skip to content

Open source personal finance application

feat(seo): add og and twitter meta with real demo screenshot

Ilya Komichev6098978c69c9
diff --git a/nuxt.config.ts b/nuxt.config.ts
index 36060aa6..4412b450 100644
--- a/nuxt.config.ts
+++ b/nuxt.config.ts
@@ -7,6 +7,37 @@ import categoryIcons from './app/assets/js/icons.js'
const currentDir = dirname(fileURLToPath(import.meta.url))
export default defineNuxtConfig({
+ app: {
+ head: {
+ htmlAttrs: { lang: 'en' },
+ link: [
+ { href: '/favicon.svg', rel: 'icon', type: 'image/svg+xml' },
+ { href: '/favicon.png', rel: 'icon', type: 'image/png' },
+ { href: 'https://finapp.ilko.me/', rel: 'canonical' },
+ ],
+ meta: [
+ { content: 'Open-source personal finance app. Track expenses, manage wallets, and analyze your spending. Works offline, syncs across devices.', name: 'description' },
+ { content: 'Finapp - Personal Finance Manager', property: 'og:title' },
+ { content: 'Your money, your control - anywhere, anytime. Track expenses, manage wallets, analyze spending. Works offline, syncs across devices.', property: 'og:description' },
+ { content: 'website', property: 'og:type' },
+ { content: 'Finapp', property: 'og:site_name' },
+ { content: 'https://finapp.ilko.me/', property: 'og:url' },
+ { content: 'https://finapp.ilko.me/og-image.png', property: 'og:image' },
+ { content: '1200', property: 'og:image:width' },
+ { content: '630', property: 'og:image:height' },
+ { content: 'image/png', property: 'og:image:type' },
+ { content: 'Finapp dashboard with expense and income analytics', property: 'og:image:alt' },
+ { content: 'en_US', property: 'og:locale' },
+ { content: 'summary_large_image', name: 'twitter:card' },
+ { content: 'Finapp - Personal Finance Manager', name: 'twitter:title' },
+ { content: 'Your money, your control - anywhere, anytime. Track expenses, manage wallets, analyze spending. Works offline, syncs across devices.', name: 'twitter:description' },
+ { content: 'https://finapp.ilko.me/og-image.png', name: 'twitter:image' },
+ { content: 'Finapp dashboard with expense and income analytics', name: 'twitter:image:alt' },
+ ],
+ title: 'Finapp - Personal Finance Manager',
+ },
+ },
+
colorMode: {
classSuffix: '',
fallback: 'dark',
diff --git a/public/og-image.png b/public/og-image.png
new file mode 100644
index 00000000..9a7f2ad5
Binary files /dev/null and b/public/og-image.png differ