Skip to content

Commit 4641fd6

Browse files
🚧
1 parent aa187a0 commit 4641fd6

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

lib/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export const name: string = getSiteConfig('name')
5151
export const author: string = getSiteConfig('author')
5252
export const domain: string = getSiteConfig('domain')
5353
export const description: string = getSiteConfig('description', 'Notion Blog')
54+
export const language: string = getSiteConfig('language', 'en')
5455

5556
// social accounts
5657
export const twitter: string | null = getSiteConfig('twitter', null)

lib/site-config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export interface SiteConfig {
88
domain: string
99
author: string
1010
description?: string
11+
language?: string
1112

1213
twitter?: string
1314
github?: string

pages/feed.xml.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export const getServerSideProps: GetServerSideProps = async ({ req, res }) => {
2424
title: config.name,
2525
site_url: config.host,
2626
feed_url: `${config.host}/feed.xml`,
27+
language: config.language,
2728
ttl: ttlMinutes
2829
})
2930

0 commit comments

Comments
 (0)