Skip to content

Commit 5170226

Browse files
committed
Fixed formatting issue for CHANGELOG.md
1 parent 3d0b1bf commit 5170226

1 file changed

Lines changed: 16 additions & 17 deletions

File tree

packages/faustwp-core/CHANGELOG.md

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,17 @@
4444

4545
- 2b7949bb: - Added support for configuring a custom sitemap index path via the `sitemapIndexPath` option in `getSitemapProps`, enhancing compatibility with plugins like RankMath that modify the default sitemap path.
4646

47-
4847
```javascript
4948
import { getSitemapProps } from '@faustwp/core';
5049

5150
export default function Sitemap() {}
5251

5352
export function getServerSideProps(ctx) {
54-
return getSitemapProps(ctx, {
55-
sitemapIndexPath: '/sitemap_index.xml', // RankMath changes the default sitemap path to this
56-
frontendUrl: process.env.NEXT_PUBLIC_SITE_URL,
57-
sitemapPathsToIgnore: ['/wp-sitemap-users-*'],
58-
});
53+
return getSitemapProps(ctx, {
54+
sitemapIndexPath: '/sitemap_index.xml', // RankMath changes the default sitemap path to this
55+
frontendUrl: process.env.NEXT_PUBLIC_SITE_URL,
56+
sitemapPathsToIgnore: ['/wp-sitemap-users-*'],
57+
});
5958
}
6059
```
6160

@@ -159,7 +158,7 @@
159158
160159
```jsx
161160
<ToolbarItem onKeyDown={handleKeyDown} onClick={handleClick}>
162-
Log Out
161+
Log Out
163162
</ToolbarItem>
164163
```
165164
@@ -265,18 +264,18 @@
265264
import { FaustPage } from '@faustwp/core';
266265

267266
type GetPageData = {
268-
generalSettings: {
269-
title: string;
270-
};
267+
generalSettings: {
268+
title: string;
269+
};
271270
};
272271

273272
type PageProps = {
274-
myProp: string;
273+
myProp: string;
275274
};
276275

277276
const Page: FaustPage<GetPageData, PageProps> = (props) => {
278-
const { myProp, data } = props;
279-
return <></>;
277+
const { myProp, data } = props;
278+
return <></>;
280279
};
281280
```
282281
@@ -345,9 +344,9 @@
345344
export default function Sitemap() {}
346345

347346
export function getServerSideProps(context) {
348-
return getSitemapProps(context, {
349-
frontendUrl: process.env.FRONTEND_URL, // Set the FRONTEND_URL as an env var
350-
});
347+
return getSitemapProps(context, {
348+
frontendUrl: process.env.FRONTEND_URL, // Set the FRONTEND_URL as an env var
349+
});
351350
}
352351
```
353352
@@ -377,7 +376,7 @@
377376
import { FaustHooks, FaustPlugin } from '@faustwp/core';
378377

379378
export class MyPlugin implements FaustPlugin {
380-
apply(hooks: FaustHooks) {}
379+
apply(hooks: FaustHooks) {}
381380
}
382381
```
383382

0 commit comments

Comments
 (0)