File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
dotcom-rendering/src/server Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ type BaseProps = {
27
27
weAreHiring : boolean ;
28
28
onlyLightColourScheme ?: boolean ;
29
29
isInteractive ?: boolean ;
30
+ rssFeedUrl ?: string ;
30
31
} ;
31
32
32
33
interface WebProps extends BaseProps {
@@ -76,6 +77,7 @@ export const htmlPageTemplate = (props: WebProps | AppProps): string => {
76
77
weAreHiring,
77
78
config,
78
79
isInteractive = false ,
80
+ rssFeedUrl,
79
81
} = props ;
80
82
81
83
const doNotIndex = ( ) : boolean => {
@@ -408,6 +410,12 @@ https://workforus.theguardian.com/careers/product-engineering/
408
410
: ``
409
411
}
410
412
413
+ ${
414
+ ! isUndefined ( rssFeedUrl )
415
+ ? `<link rel="alternate" type="application/rss+xml" href="${ rssFeedUrl } ">`
416
+ : ''
417
+ }
418
+
411
419
</head>
412
420
413
421
<body class="${ hasPageSkin ? 'has-page-skin' : '' } ">
Original file line number Diff line number Diff line change @@ -162,6 +162,7 @@ export const renderFront = ({
162
162
weAreHiring : ! ! front . config . switches . weAreHiring ,
163
163
canonicalUrl,
164
164
config,
165
+ rssFeedUrl : front . webURL + '/rss' ,
165
166
} ) ;
166
167
167
168
return {
@@ -250,6 +251,7 @@ export const renderTagPage = ({
250
251
weAreHiring : ! ! tagPage . config . switches . weAreHiring ,
251
252
canonicalUrl : tagPage . canonicalUrl ,
252
253
config,
254
+ rssFeedUrl : tagPage . webURL + '/rss' ,
253
255
} ) ;
254
256
return {
255
257
html : pageHtml ,
You can’t perform that action at this time.
0 commit comments