|
30 | 30 | export default function Sitemap() {} |
31 | 31 |
|
32 | 32 | export function getServerSideProps(ctx) { |
33 | | - return getSitemapProps(ctx, { |
34 | | - sitemapIndexPath: '/sitemap_index.xml', // RankMath changes the default sitemap path to this |
35 | | - frontendUrl: process.env.NEXT_PUBLIC_SITE_URL, |
36 | | - sitemapPathsToIgnore: ['/wp-sitemap-users-*'], |
37 | | - }); |
| 33 | + return getSitemapProps(ctx, { |
| 34 | + sitemapIndexPath: '/sitemap_index.xml', // RankMath changes the default sitemap path to this |
| 35 | + frontendUrl: process.env.NEXT_PUBLIC_SITE_URL, |
| 36 | + sitemapPathsToIgnore: ['/wp-sitemap-users-*'], |
| 37 | + }); |
38 | 38 | } |
39 | 39 | ``` |
40 | 40 |
|
|
138 | 138 |
|
139 | 139 | ```jsx |
140 | 140 | <ToolbarItem onKeyDown={handleKeyDown} onClick={handleClick}> |
141 | | - Log Out |
| 141 | + Log Out |
142 | 142 | </ToolbarItem> |
143 | 143 | ``` |
144 | 144 |
|
|
244 | 244 | import { FaustPage } from '@faustwp/core'; |
245 | 245 |
|
246 | 246 | type GetPageData = { |
247 | | - generalSettings: { |
248 | | - title: string; |
249 | | - }; |
| 247 | + generalSettings: { |
| 248 | + title: string; |
| 249 | + }; |
250 | 250 | }; |
251 | 251 |
|
252 | 252 | type PageProps = { |
253 | | - myProp: string; |
| 253 | + myProp: string; |
254 | 254 | }; |
255 | 255 |
|
256 | 256 | const Page: FaustPage<GetPageData, PageProps> = (props) => { |
257 | | - const { myProp, data } = props; |
258 | | - return <></>; |
| 257 | + const { myProp, data } = props; |
| 258 | + return <></>; |
259 | 259 | }; |
260 | 260 | ``` |
261 | 261 |
|
|
324 | 324 | export default function Sitemap() {} |
325 | 325 |
|
326 | 326 | export function getServerSideProps(context) { |
327 | | - return getSitemapProps(context, { |
328 | | - frontendUrl: process.env.FRONTEND_URL, // Set the FRONTEND_URL as an env var |
329 | | - }); |
| 327 | + return getSitemapProps(context, { |
| 328 | + frontendUrl: process.env.FRONTEND_URL, // Set the FRONTEND_URL as an env var |
| 329 | + }); |
330 | 330 | } |
331 | 331 | ``` |
332 | 332 |
|
|
356 | 356 | import { FaustHooks, FaustPlugin } from '@faustwp/core'; |
357 | 357 |
|
358 | 358 | export class MyPlugin implements FaustPlugin { |
359 | | - apply(hooks: FaustHooks) {} |
| 359 | + apply(hooks: FaustHooks) {} |
360 | 360 | } |
361 | 361 | ``` |
362 | 362 |
|
|
0 commit comments