Blog list Not Working & Pages Show the 404 Page


I am trying to get all of my website’s sections to show up before I style them. But I keep getting the same issues. My site is at

These are the problems I’ve encountered:

  1. Index/Homepage works fine, but my sections Contact and Services show the 404 page.
  2. The list of blogs are not showing up

Here is my code:

Thank you

Read this:

You have not defined “main” within either list or single.

Your configuration file is a bit of a mess too. Move the Netlify parameters to a netlify.toml file.

I did, or is this not what you mean?
{{ define “main” }}

{{ with .Params }}

<main id="main" class="b-basic-page__background">

  <div class="b-basic-page__container">

    <h1 class="b-basic-page__title">{{ .title }}</h1>



{{ end }}

{{ end }}

Let me know when you have pushed the changes to your repository.

They’re not changes. They’ve been there from the start

You have defined main in:

  • layouts/blog/list.html
  • layouts/blog/single.html
  • layouts/contact/single.html
  • layouts/services/single.html

You have not defined main in:

  • layouts/_default/list.html
  • layouts/_default/single.html

Done! I’ve defined main where it was missing. Thank you. Please let me know if you find the fix, I’ve tried everything I know


Your config file contains many errors. Here’s one that works:

baseURL = ''
title = 'Kaliriu'

defaultContentLanguage = 'en'
defaultContentLanguageInSubdir = true

contentDir = 'content/english'
description = 'Kaliriu in English'
languageCode = 'en-US'
languageName = 'English'
weight = 1

name = 'Home'
pageRef = '/'
weight = 1

name = 'Services'
pageRef = 'services'
weight = 2

name = 'Contact'
pageRef = 'contact'
weight = 3

contentDir = 'content/spanish'
description = 'Kaliriu en Español'
languageCode = 'es-ES'
languageName = 'Español'
weight = 2

name = 'Inicio'
pageRef = '/'
weight = 1

name = 'Servicios'
pageRef = 'services'
weight = 1

name = 'Contacto'
pageRef = 'contact'
weight = 2


The layouts in layouts/contact and layouts/services will never be used. See:

If you want to create a unique template for the contact page, see:


In layouts/blog/list.html you wrap everything with:

{{ with .Params }}
{{ end }}

The with statement rebinds the context, so everything you have inside is broken. See:

Next Step

Perhaps you would be better off starting with a well-tested theme, something like:

Everything works! thank you so so much

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.