|
1 | 1 | # @faustwp/core |
2 | 2 |
|
| 3 | +## 3.3.6 |
| 4 | + |
| 5 | +### Patch Changes |
| 6 | + |
| 7 | +- 97ec3e8: Publish release after NPM auth changes |
| 8 | + |
3 | 9 | ## 3.3.5 |
4 | 10 |
|
5 | 11 | ### Patch Changes |
|
88 | 94 | export default function Sitemap() {} |
89 | 95 |
|
90 | 96 | export function getServerSideProps(ctx) { |
91 | | - return getSitemapProps(ctx, { |
92 | | - sitemapIndexPath: '/sitemap_index.xml', // RankMath changes the default sitemap path to this |
93 | | - frontendUrl: process.env.NEXT_PUBLIC_SITE_URL, |
94 | | - sitemapPathsToIgnore: ['/wp-sitemap-users-*'], |
95 | | - }); |
| 97 | + return getSitemapProps(ctx, { |
| 98 | + sitemapIndexPath: '/sitemap_index.xml', // RankMath changes the default sitemap path to this |
| 99 | + frontendUrl: process.env.NEXT_PUBLIC_SITE_URL, |
| 100 | + sitemapPathsToIgnore: ['/wp-sitemap-users-*'], |
| 101 | + }); |
96 | 102 | } |
97 | 103 | ``` |
98 | 104 |
|
|
196 | 202 |
|
197 | 203 | ```jsx |
198 | 204 | <ToolbarItem onKeyDown={handleKeyDown} onClick={handleClick}> |
199 | | - Log Out |
| 205 | + Log Out |
200 | 206 | </ToolbarItem> |
201 | 207 | ``` |
202 | 208 |
|
|
302 | 308 | import { FaustPage } from '@faustwp/core'; |
303 | 309 |
|
304 | 310 | type GetPageData = { |
305 | | - generalSettings: { |
306 | | - title: string; |
307 | | - }; |
| 311 | + generalSettings: { |
| 312 | + title: string; |
| 313 | + }; |
308 | 314 | }; |
309 | 315 |
|
310 | 316 | type PageProps = { |
311 | | - myProp: string; |
| 317 | + myProp: string; |
312 | 318 | }; |
313 | 319 |
|
314 | 320 | const Page: FaustPage<GetPageData, PageProps> = (props) => { |
315 | | - const { myProp, data } = props; |
316 | | - return <></>; |
| 321 | + const { myProp, data } = props; |
| 322 | + return <></>; |
317 | 323 | }; |
318 | 324 | ``` |
319 | 325 |
|
|
382 | 388 | export default function Sitemap() {} |
383 | 389 |
|
384 | 390 | export function getServerSideProps(context) { |
385 | | - return getSitemapProps(context, { |
386 | | - frontendUrl: process.env.FRONTEND_URL, // Set the FRONTEND_URL as an env var |
387 | | - }); |
| 391 | + return getSitemapProps(context, { |
| 392 | + frontendUrl: process.env.FRONTEND_URL, // Set the FRONTEND_URL as an env var |
| 393 | + }); |
388 | 394 | } |
389 | 395 | ``` |
390 | 396 |
|
|
414 | 420 | import { FaustHooks, FaustPlugin } from '@faustwp/core'; |
415 | 421 |
|
416 | 422 | export class MyPlugin implements FaustPlugin { |
417 | | - apply(hooks: FaustHooks) {} |
| 423 | + apply(hooks: FaustHooks) {} |
418 | 424 | } |
419 | 425 | ``` |
420 | 426 |
|
|
0 commit comments