boratanrikulu / eternity

A minimalist Hugo theme designed for portfolio sites.
https://eternity.bora.sh
MIT License
237 stars 78 forks source link

Error rendering template partials/slides/columns with Taxonomies #70

Closed binaryronin closed 12 months ago

binaryronin commented 12 months ago

I have for the most part copied the example in this repo. Whenever I add any tags to my post I get the following error:

Error: error building site: render: failed to render pages: render of "section" failed: execute of template failed: template: _default/list.html:3:3: executing "_default/list.html" at <partial "slides/columns" (dict "portfolioScratch" $portfolioScratch "portfolioMobileScratch" $portfolioMobileScratch "ctx" .)>: error calling partial: "blog/themes/eternity/layouts/partials/slides/columns.html:37:13": execute of template failed: template: partials/slides/columns.html:37:13: executing "partials/slides/columns.html" at <index .ctx.Site.Taxonomies.tags .ctx.Params.Title>: error calling index: index of type page.Taxonomy with args [<nil>] failed: value is nil; should be of type string

Here is the post:

---
weight: 1
images:
- /images/nebula_warrior.jpg
title: Nebula
date: 2023-10-11
tags:
- archive
---

Here is the tree for my content directory:

content
├── 404.md
├── about.md
├── tags
│  └── _index.md
└── work
   ├── _index.md
   └── scifi
      ├── _index.md
      └── scifi-1.md

If I remove the tag section the site correctly builds, but no posts show up.

boratanrikulu commented 12 months ago

You may need to restart the running server after adding a fresh new tag. Have you tried to restart the server?

binaryronin commented 12 months ago

You may need to restart the running server after adding a fresh new tag. Have you tried to restart the server?

Yes, this happens on a fresh server start using hugo serve.

boratanrikulu commented 12 months ago

What is your Hugo version?

binaryronin commented 12 months ago
─> hugo -v
WARN  --verbose is deprecated and will be removed in a future release. use --logLevel info
Start building sites … 
hugo v0.119.0+extended linux/amd64 BuildDate=unknown

Additionally I've tried both the master branch of eternity and the last version release.

boratanrikulu commented 12 months ago
   └── scifi
      ├── _index.md

Please remove that _index.md file.

boratanrikulu commented 12 months ago

I've just tried with applying option 5.2 here https://github.com/boratanrikulu/eternity#installation, it just works well. If you have issues, please use 5.1

5.2 may require additonal work.

If you still want to use 5.2, please share the public project url, so I can check.

binaryronin commented 12 months ago

I blew the whole repo away and started from scratch, this time using 5.1 and copying everything. It worked!

Sorry I didn't think to try that earlier! I must have messed up something somewhere when I created the initial repository structure.