Code Monkey home page Code Monkey logo

Comments (6)

Philipinho avatar Philipinho commented on June 21, 2024 2

I will create time to work on this.
PRs are welcomed too.

from wikijs-sitemap.

Philipinho avatar Philipinho commented on June 21, 2024

What do you think of tag-based exclusion? I suggest implementing an environment variable that specifies tags for exclusion.

For instance, if you want to exclude pages marked as private or secret, you would set EXCLUDED_TAGS=private, secret in the environment variable.
Then, simply tag any new pages you don't want indexed with private or secret to automatically exclude them from the sitemap.

This method seems more clearer and easier to manage compared to editing paths, as it eliminates the need to update the environment variable each time you create new pages.

from wikijs-sitemap.

imp1sh avatar imp1sh commented on June 21, 2024

Usually it's not single pages that are set to private but paths. I'd much rather see an environment variable (list) where the user can set paths that should not be included in the sitemap.xml.

from wikijs-sitemap.

Philipinho avatar Philipinho commented on June 21, 2024

If we have EXCLUDED_PATHS=/path/to/marketing, should it exclude all pages down the path?
For example /path/to/marketing/sales/schedule is excluded too because it is under marketing.

from wikijs-sitemap.

imp1sh avatar imp1sh commented on June 21, 2024

If you'd ask me I'd say yes, block everything below a given path, except when there are whitelists that allow it (override). Like it is handled in robots.txt.

from wikijs-sitemap.

Philipinho avatar Philipinho commented on June 21, 2024

I will work on the EXCLUDED_PATHS option soon. Thank you for your input.

from wikijs-sitemap.

Related Issues (10)

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.