Exclude entire subdirectory from sitemap

@fitzage:
If you want to look at an older solution:
https://forum.getkirby.com/t/sitemaps-easiest-way/361/5
which runs with the actual Kirby version.

Look there at:

$ignore = array('sitemap', 'error');                       // pages with uri IN $ignore are ignored
$templateignore = array('internal', 'members' , 'member'); // pages with template IN $templateignore are ignored

… and the following using this vars.

[Added:]
You can use the same solution for a webpage with the html-sitemap, which shows the links to several of your (may be visible) webpages.

Good luck!