How to display posts related to particular year on one page

The idea is to display year related news on separate pages, with urls like:
news-archive/2024, news-archive/2023 and so on.

What have i done to make this happen, but it won’t:

  1. Created in content\pages folder file year-2024.md
+++
title = 'News Archive 2024'
date = 2024-05-01
draft = false
layout = "year-2024"
url= "/news-archive/2024"
+++

!!!!YOU ARE ON THE 2024 NEWS ARCHIVE PAGE!!!!
  1. Created in layouts_default folder file year-2024.html
<div class="content">
<h1>2024 News</h1>

{{ range where (.Site.RegularPages "Type" "news") "Date.Year" 2024 }}
{{end}}
</div>

  1. All news are located in content\news folder

Folders go like news-1, news-2, news-3. Each folder contain index.md

+++
title = 'Title'
date = 2012-08-08
draft = false
tags = ['tag1','tag2','tag3']

+++

I suppose that year-2024.html is a reason of magic is not happening.

It looks like i’ve solved this lil’ task via following code:

{{$year := .Date.Format "2006"}}
{{ range where .Site.Pages "Section" "news" }}

{{ if eq (.Date.Format "2006") $year}}
    <li>
        <a href="{{ .Permalink }}">{{ .Title }}</a>
    </li>

{{end}}
{{end}}