File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import MainTagWidgetContainer from '../../containers/main/MainTagWidgetContainer
9
9
import MainNoticeWidgetContainer from '../../containers/main/MainNoticeWidgetContainer' ;
10
10
import MainMobileHead from '../../components/main/MainMobileHead' ;
11
11
import usePreserveScroll from '../../lib/hooks/usePreserveScroll' ;
12
+ import { Helmet } from 'react-helmet-async' ;
12
13
13
14
interface MainPageProps { }
14
15
@@ -24,6 +25,15 @@ const MainPage: React.FC<MainPageProps> = () => {
24
25
25
26
return (
26
27
< MainTemplate >
28
+ < Helmet >
29
+ < link
30
+ data-rh = "true"
31
+ rel = "alternate"
32
+ type = "application/rss+xml"
33
+ title = "RSS"
34
+ href = "https://v2.velog.io/api/v2/rss"
35
+ />
36
+ </ Helmet >
27
37
< MainTemplate . Left >
28
38
< MainSideMenu />
29
39
</ MainTemplate . Left >
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import SearchResult from '../../../containers/search/SearchResult';
7
7
import styled from 'styled-components' ;
8
8
import media from '../../../lib/styles/media' ;
9
9
import usePreserveScroll from '../../../lib/hooks/usePreserveScroll' ;
10
+ import { Helmet } from 'react-helmet-async' ;
10
11
11
12
export interface UserPostsTabProps
12
13
extends RouteComponentProps < { username : string } > {
@@ -28,6 +29,15 @@ const UserPostsTab: React.FC<UserPostsTabProps> = ({
28
29
return (
29
30
< >
30
31
< HideOnMobile >
32
+ < Helmet >
33
+ < link
34
+ data-rh = "true"
35
+ rel = "alternate"
36
+ type = "application/rss+xml"
37
+ title = "RSS"
38
+ href = { `https://v2.velog.io/api/v2/rss/${ username } ` }
39
+ />
40
+ </ Helmet >
31
41
< VelogSearchInputContainer
32
42
initial = { q || '' }
33
43
username = { match . params . username }
You can’t perform that action at this time.
0 commit comments