# Pages without date/weight in sorted section

**URL:** <https://zola.discourse.group/t/pages-without-date-weight-in-sorted-section/2113>\
**Category:** Support\
**Created:** [April 30, 2024, 8:49am UTC](https://zola.discourse.group/t/pages-without-date-weight-in-sorted-section/2113 "2024-04-30T08:49:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![oyam](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/oyam/32/1167_2.png) [@oyam](https://zola.discourse.group/u/oyam)\
**Post date:** [April 30, 2024, 8:49am UTC](https://zola.discourse.group/t/pages-without-date-weight-in-sorted-section/2113/1 "2024-04-30T08:49:02Z")

</div>

Hello,

How do folks handle cases where you need pages where date/weight is not appropriate within a sorted section? For example, take this layout, which is relatively common. I have a page with blog, including an archive page:

```auto
site
- blog
  - 2023
    - _ index.md
  - 2024
    - _ index.md
  - _ index.md
  - archive.md
- _ index.md
- foo.md

```

- `2023`, `2024` are transparent sections (`transparent = true`)
- `blog/_index.md` includes `sort_by = "date"` to be able to have `page.lower, page.higher`
- `blog/archive.md` does not have a `date` in metadata set, as it makes no sense

The behaviour is such that the `archive.md` page gets completely ignored and not rendered. I would expect it to be ignored from the sorting set, but still rendered into a file.

The only thing I can think of is moving the archive out to the root and giving it an alias into `blog/archive.html`, but that is cumbersome and not ideal user experience. I could also add another level to the directories, but I would prefer not having extraneous directories just to make something simple like this work.

Can anyone propose other workarounds? How do folks deal with setup like this?

---

<div class="post-metadata">

**Author:** ![welpo](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/welpo/32/1087_2.png) [@welpo](https://zola.discourse.group/u/welpo)\
**Post date:** [May 6, 2024, 9:41pm UTC](https://zola.discourse.group/t/pages-without-date-weight-in-sorted-section/2113/2 "2024-05-06T21:41:45Z")

</div>

I can’t think of other workarounds.

> [@oyam](#):
>
> How do folks deal with setup like this?

It makes sense to me to have `/blog` for blogposts and `/archive` for the archive. `/blog/archive` would be for a post with the “archive” slug.

---

<div class="post-metadata">

**Author:** ![oyam](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/oyam/32/1167_2.png) [@oyam](https://zola.discourse.group/u/oyam)\
**Post date:** [May 10, 2024, 5:46pm UTC](https://zola.discourse.group/t/pages-without-date-weight-in-sorted-section/2113/3 "2024-05-10T17:46:58Z")

</div>

Thanks for the feedback! Makes sense, though I consider blog to be a part/subsection of a website, not the main feature, so it makes more sense to have archive under blog, as archive at top level would suggest archive of the whole site. The blog layout as outlined above is organized by years, so posts would be under `/blog/<year>/<slug>`, leaving `/blog/archive` to not impede on slug namespace.

I suppose I’ll go with `/blog-archive` then 🙂
