|
1 | 1 | # @faustwp/core |
2 | 2 |
|
| 3 | +## 3.3.1 |
| 4 | + |
| 5 | +### Patch Changes |
| 6 | + |
| 7 | +- afb25f4: Updated glob to version 10.4.5 |
| 8 | + |
3 | 9 | ## 3.3.0 |
4 | 10 |
|
5 | 11 | ### Minor Changes |
|
56 | 62 | export default function Sitemap() {} |
57 | 63 |
|
58 | 64 | export function getServerSideProps(ctx) { |
59 | | - return getSitemapProps(ctx, { |
60 | | - sitemapIndexPath: '/sitemap_index.xml', // RankMath changes the default sitemap path to this |
61 | | - frontendUrl: process.env.NEXT_PUBLIC_SITE_URL, |
62 | | - sitemapPathsToIgnore: ['/wp-sitemap-users-*'], |
63 | | - }); |
| 65 | + return getSitemapProps(ctx, { |
| 66 | + sitemapIndexPath: '/sitemap_index.xml', // RankMath changes the default sitemap path to this |
| 67 | + frontendUrl: process.env.NEXT_PUBLIC_SITE_URL, |
| 68 | + sitemapPathsToIgnore: ['/wp-sitemap-users-*'], |
| 69 | + }); |
64 | 70 | } |
65 | 71 | ``` |
66 | 72 |
|
|
164 | 170 |
|
165 | 171 | ```jsx |
166 | 172 | <ToolbarItem onKeyDown={handleKeyDown} onClick={handleClick}> |
167 | | - Log Out |
| 173 | + Log Out |
168 | 174 | </ToolbarItem> |
169 | 175 | ``` |
170 | 176 |
|
|
270 | 276 | import { FaustPage } from '@faustwp/core'; |
271 | 277 |
|
272 | 278 | type GetPageData = { |
273 | | - generalSettings: { |
274 | | - title: string; |
275 | | - }; |
| 279 | + generalSettings: { |
| 280 | + title: string; |
| 281 | + }; |
276 | 282 | }; |
277 | 283 |
|
278 | 284 | type PageProps = { |
279 | | - myProp: string; |
| 285 | + myProp: string; |
280 | 286 | }; |
281 | 287 |
|
282 | 288 | const Page: FaustPage<GetPageData, PageProps> = (props) => { |
283 | | - const { myProp, data } = props; |
284 | | - return <></>; |
| 289 | + const { myProp, data } = props; |
| 290 | + return <></>; |
285 | 291 | }; |
286 | 292 | ``` |
287 | 293 |
|
|
350 | 356 | export default function Sitemap() {} |
351 | 357 |
|
352 | 358 | export function getServerSideProps(context) { |
353 | | - return getSitemapProps(context, { |
354 | | - frontendUrl: process.env.FRONTEND_URL, // Set the FRONTEND_URL as an env var |
355 | | - }); |
| 359 | + return getSitemapProps(context, { |
| 360 | + frontendUrl: process.env.FRONTEND_URL, // Set the FRONTEND_URL as an env var |
| 361 | + }); |
356 | 362 | } |
357 | 363 | ``` |
358 | 364 |
|
|
382 | 388 | import { FaustHooks, FaustPlugin } from '@faustwp/core'; |
383 | 389 |
|
384 | 390 | export class MyPlugin implements FaustPlugin { |
385 | | - apply(hooks: FaustHooks) {} |
| 391 | + apply(hooks: FaustHooks) {} |
386 | 392 | } |
387 | 393 | ``` |
388 | 394 |
|
|
0 commit comments