To list all pages that aren’t linked to from anywhere you could use something like this template, even though this could probably be done faster and cleaner in space-lua:
{{#each @p in ({page}) }}
{{#if count( ({link where toPage = @p.name and page != @page.name}) ) = 0}}
- [[{{@p.name}}]]
{{/if}}
{{/each}}