Skip to content

Commit

Permalink
feat: optional twitter handle
Browse files Browse the repository at this point in the history
  • Loading branch information
theodorusclarence committed Feb 6, 2022
1 parent df58b45 commit dd07db2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions notiolink.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ module.exports = {
/** Description for SEO */
seoDescription:
'Self-hostable branded link shortener built with Next.js & Notion API',
/** Twitter account for SEO */
twitter: '@th_clarence',

/** Without additional '/' on the end, e.g. https://theodorusclarence.com */
deployUrl: 'https://notiolink.thcl.dev',
Expand Down
3 changes: 1 addition & 2 deletions src/components/Seo.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Head from 'next/head';
import { useRouter } from 'next/router';

import { appName, deployUrl, seoDescription, twitter } from '@/lib/config';
import { appName, deployUrl, seoDescription } from '@/lib/config';

const defaultMeta = {
title: appName,
Expand Down Expand Up @@ -43,7 +43,6 @@ export default function Seo(props: SeoProps) {
<meta name='image' property='og:image' content={meta.image} />
{/* Twitter */}
<meta name='twitter:card' content='summary_large_image' />
<meta name='twitter:site' content={twitter} />
<meta name='twitter:title' content={meta.title} />
<meta name='twitter:description' content={meta.description} />
<meta name='twitter:image' content={meta.image} />
Expand Down
1 change: 0 additions & 1 deletion src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ import { getSiteConfig } from '@/lib/get-config-value';
export const appName = getSiteConfig('appName');
export const seoDescription = getSiteConfig('seoDescription');
export const deployUrl = getSiteConfig('deployUrl');
export const twitter = getSiteConfig('twitter');

0 comments on commit dd07db2

Please sign in to comment.