|
24 | 24 | export default function Sitemap() {} |
25 | 25 |
|
26 | 26 | export function getServerSideProps(ctx) { |
27 | | - return getSitemapProps(ctx, { |
28 | | - sitemapIndexPath: '/sitemap_index.xml', // RankMath changes the default sitemap path to this |
29 | | - frontendUrl: process.env.NEXT_PUBLIC_SITE_URL, |
30 | | - sitemapPathsToIgnore: ['/wp-sitemap-users-*'], |
31 | | - }); |
| 27 | + return getSitemapProps(ctx, { |
| 28 | + sitemapIndexPath: '/sitemap_index.xml', // RankMath changes the default sitemap path to this |
| 29 | + frontendUrl: process.env.NEXT_PUBLIC_SITE_URL, |
| 30 | + sitemapPathsToIgnore: ['/wp-sitemap-users-*'], |
| 31 | + }); |
32 | 32 | } |
33 | 33 | ``` |
34 | 34 |
|
|
132 | 132 |
|
133 | 133 | ```jsx |
134 | 134 | <ToolbarItem onKeyDown={handleKeyDown} onClick={handleClick}> |
135 | | - Log Out |
| 135 | + Log Out |
136 | 136 | </ToolbarItem> |
137 | 137 | ``` |
138 | 138 |
|
|
238 | 238 | import { FaustPage } from '@faustwp/core'; |
239 | 239 |
|
240 | 240 | type GetPageData = { |
241 | | - generalSettings: { |
242 | | - title: string; |
243 | | - }; |
| 241 | + generalSettings: { |
| 242 | + title: string; |
| 243 | + }; |
244 | 244 | }; |
245 | 245 |
|
246 | 246 | type PageProps = { |
247 | | - myProp: string; |
| 247 | + myProp: string; |
248 | 248 | }; |
249 | 249 |
|
250 | 250 | const Page: FaustPage<GetPageData, PageProps> = (props) => { |
251 | | - const { myProp, data } = props; |
252 | | - return <></>; |
| 251 | + const { myProp, data } = props; |
| 252 | + return <></>; |
253 | 253 | }; |
254 | 254 | ``` |
255 | 255 |
|
|
318 | 318 | export default function Sitemap() {} |
319 | 319 |
|
320 | 320 | export function getServerSideProps(context) { |
321 | | - return getSitemapProps(context, { |
322 | | - frontendUrl: process.env.FRONTEND_URL, // Set the FRONTEND_URL as an env var |
323 | | - }); |
| 321 | + return getSitemapProps(context, { |
| 322 | + frontendUrl: process.env.FRONTEND_URL, // Set the FRONTEND_URL as an env var |
| 323 | + }); |
324 | 324 | } |
325 | 325 | ``` |
326 | 326 |
|
|
350 | 350 | import { FaustHooks, FaustPlugin } from '@faustwp/core'; |
351 | 351 |
|
352 | 352 | export class MyPlugin implements FaustPlugin { |
353 | | - apply(hooks: FaustHooks) {} |
| 353 | + apply(hooks: FaustHooks) {} |
354 | 354 | } |
355 | 355 | ``` |
356 | 356 |
|
|
0 commit comments