# Section.generate\_feed does not exist

**URL:** <https://zola.discourse.group/t/section-generate-feed-does-not-exist/1657>\
**Category:** Support\
**Created:** [February 19, 2023, 1:20pm UTC](https://zola.discourse.group/t/section-generate-feed-does-not-exist/1657 "2023-02-19T13:20:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luka](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/luka/32/934_2.png) [@luka](https://zola.discourse.group/u/luka)\
**Post date:** [February 19, 2023, 1:20pm UTC](https://zola.discourse.group/t/section-generate-feed-does-not-exist/1657/1 "2023-02-19T13:20:38Z")

</div>

I have `generate_feeds = false` in `config.toml` and `generate_feeds = true` in `/section/_index.md` in the front matter. Zola correctly does not generate the atom feed for the whole site but only for section. But I cannot access the configuration option in the templates. While there exists `{{ config.generate_feeds }}`, there is no `{{ section.generate_feeds }}` so I cannot write a general template for base.html or section.html where I could generate a feed meta tag for sections that have it enabled as opposed to how it is available for feeds for the whole site:

```auto
{% if config.generate_feed %}
{% block feed %}
<link rel="alternate" type="application/atom+xml" title="RSS" 
      href="{{ get_url(path="atom.xml", trailing_slash=false) }}">
{% endblock feed %}
{% endif %}

```

the only workaround is the create separate template just for this specific section, but this is not very optimal for the case where there are different and many sections with different configurations.

Am I missing something?

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [February 19, 2023, 1:35pm UTC](https://zola.discourse.group/t/section-generate-feed-does-not-exist/1657/2 "2023-02-19T13:35:47Z")

</div>

This field is currently not passed when serialising a section to the templates. It’s pretty easy to add it though.

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [February 22, 2023, 9:21pm UTC](https://zola.discourse.group/t/section-generate-feed-does-not-exist/1657/3 "2023-02-22T21:21:52Z")

</div>

Can you try this branch: [Next version by Keats · Pull Request #2103 · getzola/zola · GitHub](https://github.com/getzola/zola/pull/2103) ?
