Skip to content

Scopes Demo ​

A live, self-contained example of scopes. This folder holds a small main blog (this page) with a section blog inside it, and three example posts:

txt
plugins/blog/demo/
  index.md                    main blog (scope: site), limited to this folder
  example-unsorted-post.md    blog: true             no section blog covers it
  team/
    index.md                  section blog
    example-section-post.md   blog: true             stays in the team blog
    example-site-post.md      blog: { scope: site }  in both blogs

This page is a main blog, so it lists the site-wide example and the unsorted one, but not the section-only one. The team blog lists both of its own posts.

Its frontmatter limits it to this folder with folders, so the examples stay off the real BinaryNoir blog:

yaml
blog-index:
  scope: site
  folders: ./
  layout: grid

Both demo blogs have their own feed: this one and the team blog's.

Code released under the MIT License. BinaryNoir name and logos are trademarks of BinaryNoir. Legal · Terms · Privacy