boratanrikulu / eternity

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

How to create new tags ? #4

Closed pokemaster974 closed 2 years ago

pokemaster974 commented 2 years ago

Hi, I'm trying to create a personal website with the help of your template.

I've done a little workaround to customize the site, but I got errors when I try to add new tags. This is my procedure :

Here is the file ciel-1.md :

---
weight: 2
images:
- /images/aerien/ciel-1.jpg
multipleColumn: false
title: Ciel vu depuis un avien (1)
date: 2020-03-15
tags:
- bienvenue # homepage
- archive # all posts
- aerien
---

# Markdown

You can use **Markdown** format to write **your story**.

Lorem ipsum dolor sit amet consectetur adipisicing elit. Magni dolorem, laborum impedit doloremque ducimus repellat sapiente aut qui quae provident, cum vitae atque eius earum labore. Quae quod rem aliquid!

This is the error I got :

Change detected, rebuilding site.
2022-10-12 13:40:41.589 +0200
Source changed "C:\\Hugo\\Sites\\cys.photographie\\content\\bienvenue\\aerien\\ciel-1.md": CREATE
ERROR 2022/10/12 13:40:41 Rebuild failed: failed to render pages: render of "page" failed: "C:\Hugo\Sites\cys.photographie\themes\eternity\layouts\_default\single.html:6:4": execute of template failed at <partial "slides/slide.html" (dict "disableFullheight" true "ctx" .)>: error calling partial: "C:\Hugo\Sites\cys.photographie\themes\eternity\layouts\partials\slides\slide.html:29:23": execute of template failed at <$img.RelPermalink>: nil pointer evaluating interface {}.RelPermalink
Total in 5 ms

And into the website it's written :

render of "term" failed: "C:\Hugo\Sites\cys.photographie\themes\eternity\layouts_default\list.html:18:3": execute of template failed at <partial "slides/slides" $portfolioScratch>: error calling partial: "C:\Hugo\Sites\cys.photographie\themes\eternity\layouts\partials\slides\slides.html:3:8": execute of template failed at <partial "slides/slide.html" (dict "disableFullheight" false "ctx" $post)>: "C:\Hugo\Sites\cys.photographie\themes\eternity\layouts\partials\slides\slide.html:29:23": execute of template failed at <$img.RelPermalink>: nil pointer evaluating interface {}.RelPermalink render of "section" failed: nil pointer evaluating interface {}.RelPermalink failed to render pages: render of "page" failed: "C:\Hugo\Sites\cys.photographie\themes\eternity\layouts_default\single.html:6:4": execute of template failed at <partial "slides/slide.html" (dict "disableFullheight" true "ctx" .)>: nil pointer evaluating interface {}.RelPermalink

C:\Hugo\Sites\cys.photographie\themes\eternity\layouts_default\single.html:6:4:

<section class="section">
{{ partial "slides/slide.html" (dict "disableFullheight" true "ctx" .) }}
</section>

C:\Hugo\Sites\cys.photographie\themes\eternity\layouts\partials\slides\slide.html:29:23:

{{ range $i, $img := $imgs }}
<div {{ if $.ctx.Params.multipleColumn }} class="column" {{ end }}>
<img src="{{ $img.RelPermalink }}" loading="lazy" width="{{ $img.Width }}" height="{{ $img.Height }}" />
</div>
{{ end }}

It seems about the file slide.html and a conflict with this new folder but I don't find the origin of my issue.

As soon I will delete the folder "arien" all will be good as before.

Thanks for your help.

pokemaster974 commented 2 years ago

My bad, I miswrite the path of the image file. Sorry !