Comments (2)
Hi @MikeOne. Good idea. I'll see what we can do.
from scully-plugins.
@MikeOne, I believe I have a solution ready to go. It utilizes a merge
flag to cause the generated routes to be merged into the existing sitemap (if there is one). Otherwise, the file is overwritten (the default). If you think that'll work, I'll get it published.
const SitemapPlugin = getSitemapPlugin();
setPluginConfig(SitemapPlugin, {
urlPrefix: 'https://gamma.stream',
sitemapFilename: 'sitemap.xml',
changeFreq: 'monthly',
priority: ['1.0', '0.9', '0.8', '0.7', '0.6', '0.5', '0.4', '0.3', '0.2', '0.1', '0.0'],
merge: false,
ignoredRoutes: ['/404'],
routes: {
'/products/:productId': {
changeFreq: 'daily',
priority: '0.9',
sitemapFilename: 'sitemap-products.xml',
merge: true,
},
}
});
from scully-plugins.
Related Issues (15)
- Plugin is rendering wrong urls in sitemap if urlPrefix is set HOT 1
- Error when installing via NPM HOT 6
- feat (sitemap): add an option to manage the seoHrefOptimise scully plugin HOT 1
- Update peer dependencies HOT 2
- Export SitemapConfig to improve type-safety HOT 2
- Type error in SitemapConfig `routes: any[]` HOT 1
- Sitemap pluging not handling the urlPrefix correctly HOT 7
- Do this plugin also set status-code 404 in headers ?
- The plugin can only be installed in scully 2.0 using -legacy-peer-deps. HOT 8
- Scully: importy moved (@scullyio/scully => @scullyio/scully/lib/*) HOT 2
- Support different frequency settings HOT 4
- feat (sitemap): lastmod for sitemap entries could be better
- Does not work with scully 0.0.92 HOT 4
- Warning: Entry point '@gammastream/scully-plugin-http404' contains deep imports into 'node_modules/@scullyio/scully/lib/utils/config' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scully-plugins.