|
38 | 38 | export default function Sitemap() {} |
39 | 39 |
|
40 | 40 | export function getServerSideProps(ctx) { |
41 | | - return getSitemapProps(ctx, { |
42 | | - sitemapIndexPath: '/sitemap_index.xml', // RankMath changes the default sitemap path to this |
43 | | - frontendUrl: process.env.NEXT_PUBLIC_SITE_URL, |
44 | | - sitemapPathsToIgnore: ['/wp-sitemap-users-*'], |
45 | | - }); |
| 41 | + return getSitemapProps(ctx, { |
| 42 | + sitemapIndexPath: '/sitemap_index.xml', // RankMath changes the default sitemap path to this |
| 43 | + frontendUrl: process.env.NEXT_PUBLIC_SITE_URL, |
| 44 | + sitemapPathsToIgnore: ['/wp-sitemap-users-*'], |
| 45 | + }); |
46 | 46 | } |
47 | 47 | ``` |
48 | 48 |
|
|
146 | 146 |
|
147 | 147 | ```jsx |
148 | 148 | <ToolbarItem onKeyDown={handleKeyDown} onClick={handleClick}> |
149 | | - Log Out |
| 149 | + Log Out |
150 | 150 | </ToolbarItem> |
151 | 151 | ``` |
152 | 152 |
|
|
252 | 252 | import { FaustPage } from '@faustwp/core'; |
253 | 253 |
|
254 | 254 | type GetPageData = { |
255 | | - generalSettings: { |
256 | | - title: string; |
257 | | - }; |
| 255 | + generalSettings: { |
| 256 | + title: string; |
| 257 | + }; |
258 | 258 | }; |
259 | 259 |
|
260 | 260 | type PageProps = { |
261 | | - myProp: string; |
| 261 | + myProp: string; |
262 | 262 | }; |
263 | 263 |
|
264 | 264 | const Page: FaustPage<GetPageData, PageProps> = (props) => { |
265 | | - const { myProp, data } = props; |
266 | | - return <></>; |
| 265 | + const { myProp, data } = props; |
| 266 | + return <></>; |
267 | 267 | }; |
268 | 268 | ``` |
269 | 269 |
|
|
332 | 332 | export default function Sitemap() {} |
333 | 333 |
|
334 | 334 | export function getServerSideProps(context) { |
335 | | - return getSitemapProps(context, { |
336 | | - frontendUrl: process.env.FRONTEND_URL, // Set the FRONTEND_URL as an env var |
337 | | - }); |
| 335 | + return getSitemapProps(context, { |
| 336 | + frontendUrl: process.env.FRONTEND_URL, // Set the FRONTEND_URL as an env var |
| 337 | + }); |
338 | 338 | } |
339 | 339 | ``` |
340 | 340 |
|
|
364 | 364 | import { FaustHooks, FaustPlugin } from '@faustwp/core'; |
365 | 365 |
|
366 | 366 | export class MyPlugin implements FaustPlugin { |
367 | | - apply(hooks: FaustHooks) {} |
| 367 | + apply(hooks: FaustHooks) {} |
368 | 368 | } |
369 | 369 | ``` |
370 | 370 |
|
|
0 commit comments