Code Monkey home page Code Monkey logo

keystone-express-sitemap's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

keystone-express-sitemap's Issues

Sitemap randomly misses urls

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);
};

not working for subdomain

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>

Filter not removing a previously allowed 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.

Routes don't have `path` and `route.path` parameters.

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

404 page not found

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?

Ignore a specific route for a set of dynamic paths

(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)?.$']
...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.