genomeus / keystone-express-sitemap Goto Github PK
View Code? Open in Web Editor NEWDynamic sitemap generation for applications built on KeystoneJS
Dynamic sitemap generation for applications built on KeystoneJS
Hi,
This is perfectly working for non ssl websites, But what about SSL websites like https://in.iandwe.in/
Here it fails to create a loc tag with https :(
Please suggest a way
The sitemap generated by keystone-express-sitemap is alway missing random urls. The urls that are missing changes over time.
Used implementation:
// Setup Route Bindings
exports = module.exports = function(app) {
// Sitemap
app.get('/sitemap.xml', function(req, res) {
sitemap.create(keystone, req, res);
});
// Views
app.get('/', routes.views.index);
app.get('/about', routes.views.about);
app.get('/app/:app', routes.views.app);
app.get('/blog/:category?', routes.views.blog);
app.get('/blog/post/:post', routes.views.post);
app.get('/cookiepolicy', routes.views.cookie);
app.get('/privacy/:language', routes.views.privacy);
};
I have a blog on my subdomain blog.example.com "keystone-express-sitemap" is not working fine for me .In sitemap.xml it display domain name only not subdomain .
<url>
<loc>http://example.com/blog/post/transporter-un-bateau</loc>
</url>
What i want
<url>
<loc>http://blog.example.com/blog/post/transporter-un-bateau</loc>
</url>
Hi, I am using a filter to only list properties that have been published like this:
filters: {
'Property': function(property) {
// Only list properties that have been published
return property.publishedAt != null;
}
}
It works fine in that it hides those that have no publishedAt
date/time.
When I add a publishedAt
date to a property, it then appears in the sitemap
The problem is, if I remove the date/time from a property, it remains in the sitemap until I restart keystone at which point it disappears.
In parseRoutes()
parsing the route isn't possible to fetch path
and route.path
params. That being said keystone-express-sitemap cannot parse routes and generate the resulting sitemap.xml properly.
KeystoneJS version: 4.0.0-beta.5
ExpressJS version: 4.14.0
It works great on the localhost, but when I uploaded it to the server and typed in /sitemap.xml at the end of my domain, I got a "404 page not found". Do I need to do something that I am not aware of?
error on line 1 at column 11196: EntityRef: expecting ';'
(Probably not an issue but) I am trying to ignore one specific route from a set of others. I am using:
app.get('/artist/:name', routes.views.artist);
I want to ignore artist/admin
and I have tried this below but did succeeded
...
ignore: ['^.(\bartist/admin\b)?.$']
...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.