Comments (6)
I will create time to work on this.
PRs are welcomed too.
from wikijs-sitemap.
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.
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.
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.
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.
I will work on the EXCLUDED_PATHS
option soon. Thank you for your input.
from wikijs-sitemap.
Related Issues (10)
- sitemap.xml is not generated because static/sitemap.xml does not exist. HOT 3
- db password HOT 7
- sitemap is generated at the first start and restart but not while running later HOT 1
- Sitemap regeneration period HOT 1
- Error: Cannot find module 'node-cron' HOT 2
- Docker image could not be run on linux/amd64 platform HOT 2
- Sitemap mysql HOT 2
- Sitemap mysql undefined domain HOT 10
- Locales missing in urls HOT 4
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 wikijs-sitemap.