Comments (1)
Hey @fr33dr4g0n, sitemaps is completely independent of routing, and is coupled directly to the database. For this kind of setup you'd do:
sitemaps.add('/sitemap.xml', function() {
var out = [], analytics = Analytics.find().fetch();
_.each(analytics, function(page) {
out.push({
page: '/analytics/' + page._id + '/' + page.name
// lastmod: page.lastUpdated etc...
});
});
return out;
});
All on the server, of course.
from meteor-sitemaps.
Related Issues (20)
- How to delete page from sitemap HOT 1
- Path-to-RegExp for sitemap url HOT 2
- Possible to use iron router's pathFor? HOT 1
- Getting error when adding package to project in package file sitemaps.js HOT 4
- sitemap index HOT 2
- Error with spiderable HOT 1
- Ability to add XSL stylesheet
- Timeout when generating bigger sitemap HOT 3
- how to import with meteor 1.3 ? HOT 2
- Sitemaps using flowrouter and React HOT 2
- gzip HOT 1
- Sitemap is html HOT 4
- Update README.md: on-the-fly creation HOT 1
- sitemaps for multiple domain name single app HOT 2
- First two values returned from collection ignored HOT 2
- sitemap.xml.gz seems not created HOT 1
- Cannot read property 'find' of undefined HOT 1
- Dynamic update sitemap.xml when DB collection updated HOT 6
- package support HOT 2
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 meteor-sitemaps.