# Feeds/Merge sections

**URL:** <https://zola.discourse.group/t/feeds-merge-sections/1174>\
**Category:** Feature requests\
**Created:** [February 9, 2022, 2:15pm UTC](https://zola.discourse.group/t/feeds-merge-sections/1174 "2022-02-09T14:15:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![svente](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@svente](https://zola.discourse.group/u/svente)\
**Post date:** [February 9, 2022, 2:15pm UTC](https://zola.discourse.group/t/feeds-merge-sections/1174/1 "2022-02-09T14:15:50Z")

</div>

Consider a website that has the following structure:

```auto
❯ tree
.
├── about
│ ├── contact.md
│ ├── _index.md
│ ├── org.md
│ ├── team.md
│ └── website.md
├── blog
│ ├── _index.md
│ ├── post-1.md
│ └── post-2.md
├── events
│ ├── event-1.md
│ ├── event-2.md
│ └── _index.md
├── _index.md
└── press
    ├── _index.md
    ├── release-1.md
    └── release-2.md

```

Currently there is no way (as far as I can tell at least) to create a feed of the sections except `about` and order and paginate them correctly. I myself have a need for this and I know some other people that have asked me for this as well. This is especially tricky if you need the feed to be recursive. (i.e. if you make subsections in blog for a series that needs to be paginated along with the rest). I’ll be working on an implementation of this on my fork, and I wanted to gauge whether there would be possibility/interest to merge this into the main repo.

As for implementation, there are three ways I could see this happen (In my order of preference):

1. add a `feeds` option to the parent section. e.g. in the root `_index.md` of the example above add something like

```auto
title = "example"
[feeds]
main = ["blog","press","events"]

```

1. Add something like a `feeds` field/section to `config.toml` detailing the name of the feed and which sections it should include. I’m imagining something like:

```nohighlight
feeds = [
  { name="main", sections = ["blog","press","events"]}
]

```

1. expose a tera function that can concat sections and paginate those correctly. i.e. something like `{% set feed = concat_sections(["blog/_index.md","press/_index.md","events.md"]) %}` (the naming and exact syntax of this example would probably need some workshopping)

Anyone here got thoughts?

---

<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 9, 2022, 5:59pm UTC](https://zola.discourse.group/t/feeds-merge-sections/1174/2 "2022-02-09T17:59:11Z")

</div>

I believe you’re looking for `transparent` sections? See the transparent comment on [Section | Zola](https://www.getzola.org/documentation/content/section/)

---

<div class="post-metadata">

**Author:** ![svente](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@svente](https://zola.discourse.group/u/svente)\
**Post date:** [February 9, 2022, 8:32pm UTC](https://zola.discourse.group/t/feeds-merge-sections/1174/3 "2022-02-09T20:32:48Z")

</div>

wow, I think you’re right. I feel kinda dumb now, but at least that saves tons of work 😅 Thanks!
