Skip to content

Commit

Permalink
feat: add custom hooks for pages
Browse files Browse the repository at this point in the history
  • Loading branch information
tlaundal committed Nov 19, 2023
1 parent a59922f commit 7231eb2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ sitemapWrapAdapter(adapter(), {

// Other pages can be defined as well
"/dynamic/page": {}, // Will inherit default values

// Each page can also inject custom XML
"/custom-sitemap-props": {
hook: (loc) => `<url-customtag>${loc}</url-customtag>`,
},
},
});
```
Expand Down

0 comments on commit 7231eb2

Please sign in to comment.