---
title: 'Default frontmatter header for all pages'
url: 'https://getgrav.org/forum/support/default-frontmatter-header-for-all-pages-t5712'
markdown: 'https://getgrav.org/forum/support/default-frontmatter-header-for-all-pages-t5712.md'
date: '2026-06-21'
description: "Hello, I started testing the Feed plugin and it works great so far. I'm running into an issue though: by default, I don't want all of my pages to be included"
---

[Support](https://getgrav.org/forum/support)

#  Default frontmatter header for all pages 

  Started by Luke Lollard 2 years ago · 6 replies · 609 views    

 [2 years ago](https://getgrav.org/forum/support/default-frontmatter-header-for-all-pages-t5712#post-40002 "Permalink") 

Hello,

I started testing the [Feed plugin](https://github.com/getgrav/grav-plugin-feed) and it works great so far. I'm running into an issue though: by default, I don't want all of my pages to be included in my feed. This can be added to the frontmatter header to skip a particular page:

```yaml
feed:
    skip: true
```

However, I have over 200 pages (and that'll only increase as time goes on) that this will affect, so I'm looking for a faster way to do this. I could modify the plugin and change the logic so that if a page doesn't have `skip` explicitly set to `false` then it's automatically skipped, but I'd rather not modify the plugin if I can solve this an easier way.

Is there a way to automatically have all of my pages inherit a frontmatter header? I looked into blueprints, but this doesn't look like what I want. As far as I understand, blueprints only work for new pages created through Admin, which I don't use for creating or editing pages.

So, I'd like for this to be the default on all pages:

```yaml
feed:
    skip: true
```

And then I'd override it with this on the pages I'd like to include in the feed:

```yaml
feed:
    skip: false
```

Is this possible? Or is there an alternative that would solve this another way?

 [2 years ago](https://getgrav.org/forum/support/default-frontmatter-header-for-all-pages-t5712#post-40004 "Permalink") 

Probably would require one more option in the plugin for the default behavior if the header is missing. Maybe worth creating a feature request

 [2 years ago](https://getgrav.org/forum/support/default-frontmatter-header-for-all-pages-t5712#post-40005 "Permalink") 

@haihige, AFAIK, there is no way to define a common frontmatter that will be inherited by all pages and can be overridden by a page.

As @Karmalakas notes, it would require a change in the Feed plugin.

In the meantime, you could try the following two options I can think of:

1. Exclude all existing items using the following shell script:

    ```
    $ find user/pages/01.blog -type f -exec sed -zi 's/\n---/\nfeed:\n  skip: true\n---/g' {} +
    ```

    No, it does not check:

    - if there are more occurences of `\n---`
    - if there is no frontmatter
    - if there is already a `feed` or `feed: skip` variable in frontmatter
    - etc.
2. Alternatively, you could copy *feed.rss.twig* from the plugin into your theme and add something like `{% if item.header.feed.noSkip == true %}` inside the loop.

    ```twig
    {% for item in collection %}
      {% if item.header.feed.noSkip == true %}
      // rest of loop
      {% endif %}
    {% endfor %}
    ```

    Then add the following to your page:

    ```yaml
    feed:
     noSkip: true
    ```

 👍 1 

last edited 04/04/25 by pamtbaau

 [2 years ago](https://getgrav.org/forum/support/default-frontmatter-header-for-all-pages-t5712#post-40011 "Permalink") 

@pamtbaau, As for 1., I thought about that, but I didn't want to add it explicitly to all of my pages, in case I forget to add it to a new one in the future.

As for 2., I tried it out and it works! Thank you.

My only concern with modifying the template in my theme is that if the plugin gets an update, I don't want it to break my customization. I may look at how best to modify the code for a pull request.

 [2 years ago](https://getgrav.org/forum/support/default-frontmatter-header-for-all-pages-t5712#post-40012 "Permalink") 

i didnt test but i want to tell a possibility
adding a field to interface that we face when creating a page in Pages
or the interface that we face when we enter content at Pages
similar to page.title, that field will set page.feed.skip
by default it may be false
we can even just use a checkbox for that
like i said this is just an idea, need to be tested
ofc if someone knows the result already, i hope s/he would share
have a nice day :)

 [2 years ago](https://getgrav.org/forum/support/default-frontmatter-header-for-all-pages-t5712#post-40015 "Permalink") 

I looked at the code for the Feed plugin and it wasn't difficult to change how the skip function works. I have to test it some more and clean up my modifications, but I'll post the PR on GitHub and link to it here when it's ready.

 [1 year ago](https://getgrav.org/forum/support/default-frontmatter-header-for-all-pages-t5712#post-40971 "Permalink") 

Finally got this PR on GitHub! It’s [\#81](https://github.com/getgrav/grav-plugin-feed/pull/81).

 👍 1 

[Log in](https://getgrav.org/login?return=%2Fforum%2Fsupport%2Fdefault-frontmatter-header-for-all-pages-t5712) to reply.

###  Suggested topics

 | Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| [Try to inherit a Theme but get an error](https://getgrav.org/forum/support/try-to-inherit-a-theme-but-get-an-error-t9508)    [Support](https://getgrav.org/forum/support) · by TomW, 1 day ago |  | 2 | 33 | [2 hours ago](https://getgrav.org/forum/support/try-to-inherit-a-theme-but-get-an-error-t9508 "by TomW") |
| [retina images are shown in Admin (but not all of them)](https://getgrav.org/forum/support/retina-images-are-shown-in-admin-but-not-all-of-them-t9504)    [Support](https://getgrav.org/forum/support) · by Anna, 1 week ago |  | 2 | 143 | [1 day ago](https://getgrav.org/forum/support/retina-images-are-shown-in-admin-but-not-all-of-them-t9504 "by Anna") |
| [page.date != page.header.date, now my collection sorting is broken (bug? by design?)](https://getgrav.org/forum/support/page-date-page-header-date-now-my-collection-sorting-is-broken-bug-by-design-t9484)    [Support](https://getgrav.org/forum/support) · by Anna, 3 weeks ago |  | 1 | 299 | [3 weeks ago](https://getgrav.org/forum/support/page-date-page-header-date-now-my-collection-sorting-is-broken-bug-by-design-t9484 "by Anna") |
| [it's no possible sign in with email......](https://getgrav.org/forum/support/it-s-no-possible-sign-in-with-email-t9462)    [Support](https://getgrav.org/forum/support) · by webmasterodp, 1 month ago |  | 4 | 400 | [1 month ago](https://getgrav.org/forum/support/it-s-no-possible-sign-in-with-email-t9462 "by webmasterodp") |
| [Site stopped working overnight - 'not writeable' error](https://getgrav.org/forum/support/site-stopped-working-overnight-not-writeable-error-t9445)    [Support](https://getgrav.org/forum/support) · by nwhitfield, 1 month ago |  | 2 | 373 | [1 month ago](https://getgrav.org/forum/support/site-stopped-working-overnight-not-writeable-error-t9445 "by pamtbaau") |
