|
1 | 1 | # @faustwp/core |
2 | 2 |
|
| 3 | +## 3.2.2 |
| 4 | + |
| 5 | +### Patch Changes |
| 6 | + |
| 7 | +- f4c0abb: chore: Update various babel packages. |
| 8 | + |
3 | 9 | ## 3.2.1 |
4 | 10 |
|
5 | 11 | ### Patch Changes |
|
24 | 30 | export default function Sitemap() {} |
25 | 31 |
|
26 | 32 | 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 | | - }); |
| 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 | + }); |
32 | 38 | } |
33 | 39 | ``` |
34 | 40 |
|
|
132 | 138 |
|
133 | 139 | ```jsx |
134 | 140 | <ToolbarItem onKeyDown={handleKeyDown} onClick={handleClick}> |
135 | | - Log Out |
| 141 | + Log Out |
136 | 142 | </ToolbarItem> |
137 | 143 | ``` |
138 | 144 |
|
|
238 | 244 | import { FaustPage } from '@faustwp/core'; |
239 | 245 |
|
240 | 246 | type GetPageData = { |
241 | | - generalSettings: { |
242 | | - title: string; |
243 | | - }; |
| 247 | + generalSettings: { |
| 248 | + title: string; |
| 249 | + }; |
244 | 250 | }; |
245 | 251 |
|
246 | 252 | type PageProps = { |
247 | | - myProp: string; |
| 253 | + myProp: string; |
248 | 254 | }; |
249 | 255 |
|
250 | 256 | const Page: FaustPage<GetPageData, PageProps> = (props) => { |
251 | | - const { myProp, data } = props; |
252 | | - return <></>; |
| 257 | + const { myProp, data } = props; |
| 258 | + return <></>; |
253 | 259 | }; |
254 | 260 | ``` |
255 | 261 |
|
|
318 | 324 | export default function Sitemap() {} |
319 | 325 |
|
320 | 326 | export function getServerSideProps(context) { |
321 | | - return getSitemapProps(context, { |
322 | | - frontendUrl: process.env.FRONTEND_URL, // Set the FRONTEND_URL as an env var |
323 | | - }); |
| 327 | + return getSitemapProps(context, { |
| 328 | + frontendUrl: process.env.FRONTEND_URL, // Set the FRONTEND_URL as an env var |
| 329 | + }); |
324 | 330 | } |
325 | 331 | ``` |
326 | 332 |
|
|
350 | 356 | import { FaustHooks, FaustPlugin } from '@faustwp/core'; |
351 | 357 |
|
352 | 358 | export class MyPlugin implements FaustPlugin { |
353 | | - apply(hooks: FaustHooks) {} |
| 359 | + apply(hooks: FaustHooks) {} |
354 | 360 | } |
355 | 361 | ``` |
356 | 362 |
|
|
0 commit comments