Front end does not update

Hi there,

I’m new to Kirby and working on getting my site up and running. I started with the Plain Kit and am using Herd.

I’ve been following this tutorial: https://www.youtube.com/watch?v=op5iP71Bg6w

Here’s the issue:

Whenever I create a projects.php template, the front end doesn’t update as I expect.

To explain further:

Under templates, I have a default.php file:

<main>
  <h1><?= $page->title() ?></h1>
  <p><?= $page->text() ?></p>
</main>

<body>
  <p>test in body</p>
</body>

This works fine. However, even when I visit /projects, I still see the line: test in body.

Then I created a projects.php file with this content:

<main>
  <h1><?= $page->title() ?></h1>
  <p><?= $page->text() ?></p>
</main>

<body>
  <p>Test — why don't I see this on the front end?</p>
</body>

But the front end doesn’t show the element from projects.php. Instead, it seems like default.php is taking over.

I’ve tried deleting the cache folder (I have a cache plugin installed — so that I do not have caching enabled in firefox, or I can delete it with a single click), but the issue persists. When I visit amber-chase.test/projects, the output doesn’t match what’s shown in the tutorial.

In the tutorial, it’s clear that projects.php should override default.php.

Can someone explain what I might be doing wrong or misinterpreting?

Thank you!

What’s the name of the content txt file in the content/projects folder?

On a side note, having a body tag after main is not valid HTML…

it was default.txt

I have changed it to projects.txt which now works!

Amazing. I did not spot it at first. I will have to pay utter attention to filenames.
Thank you!

edit: I know about the body tag. some how this was added when I copy/pasted my question.

Yes, the relation between blueprint files, content text files, and templates/controllers is based on file names in Kirby, so very important.