It's based on the source file path. However, the example limits the values to all posts in `about/blog`, which includes those in `about/blog/_posts`, `about/blog/subdir/_posts`, `about/blog/_posts/subdir`, ...
Which of the files present there (filename etc) are recognized as posts depends on `Site` and is not handled in this PR.