Skip to content

Commit

Permalink
feat: meta 데이터 필요하면 좋을 것들 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
alstn2468 committed Sep 4, 2022
1 parent 472a341 commit 272a1c7
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { defineConfig, HtmlTagDescriptor } from 'vite';
import { createHtmlPlugin } from 'vite-plugin-html';

const metaDatas = [
// OG
{
property: 'og:type',
content: 'website',
Expand All @@ -18,6 +19,44 @@ const metaDatas = [
property: 'og:description',
content: '함수형 프로그래밍에 대한 이론과 프론트엔드 개발을 하면서 함수형 프로그래밍을 적용한 사례를 소개합니다.',
},
{
property: 'og:locale',
content: 'ko_KR',
},
{
property: 'og:site_name',
content: '프론트엔드에서 함수형을 추구하면 안되는 걸까?',
},
{
property: 'og:image:width',
content: '1200',
},
{
property: 'og:image:height',
content: '600',
},
// Twitter
{
property: 'twitter:card',
content: 'summary',
},
{
property: 'twitter:title',
content: '프론트엔드에서 함수형을 추구하면 안되는 걸까?',
},
{
property: 'twitter:description',
content: '함수형 프로그래밍에 대한 이론과 프론트엔드 개발을 하면서 함수형 프로그래밍을 적용한 사례를 소개합니다.',
},
{
property: 'twitter:image',
content: '/images/og.png',
},
// ETC
{
property: 'keywords',
content: 'TypeScript, JavaScript, ReactJS, React, Functional Programming, FP, JSConf, JSConf 2022',
},
];

const generateMetaTag = (meta: typeof metaDatas[number]): HtmlTagDescriptor => ({
Expand Down

0 comments on commit 272a1c7

Please sign in to comment.