Help with define blocks

I am using {{- define "listing" -}}<!-- Delete -->{{- end -}}. But when I use {{- define "listing" -}}{{- end -}} I get:

ERROR 2020/10/03 13:02:35 Failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:11:29: executing "listing" at <partial "elements/listing.html" .>: error calling partial: "C:\Users\sirin\GitHub\metabase\layouts\partials\elements\listing.html:2:43": execute of template failed: template: partials/elements/listing.html:2:43: executing "partials/elements/listing.html" at <(.Paginate .RegularPagesRecursive).Pages>: error calling Pages: runtime error: invalid memory address or nil pointer dereference

My baseof has {{ block "listing" . }}{{- partial "elements/listing.html" . -}}{{ end }}

Please don’t bump years-old posts.

Please have a read about Requesting Help and include a link to your code repo.

Currently, they are:

But the themes are not working for some reason. It is generating bank pages.

I am trying to create a basic theme: https://github.com/SuperAwesomeThemes/metabase

This is serving blank pages. There are not errors.

I am not sure what the reason for this happening. How can I fix this?

You don’t have an index.html layout and your list page is empty.

Edit: I’ve merged your two topics.

The list page is empty, so it does not know that it is supposed to inherit your baseof.

I added an index.html. I don’t want to override the baseof.html in list.html or index.html. How can I make these inherit baseof.html without overriding anything in it?