Wrong permalink and title

Hugo Static Site Generator v0.80.0/extended linux/amd64 BuildDate: unknown

In the file header.html there is a canonical link (line 8) and the title (line 56).

As I noticed today, the same wrong link is always entered in both cases. As soon as I create the page again, the link changes but it is still the wrong one in both cases. So for example, for https://fryboyter.de/git-bereits-gesendete-commits-zusammenfassen/ the Canonical link is currently and the title is “Volltextsuche”.

I first suspected the last 3 changes I made. But on another computer I have a copy of the repository without these changes and here I also have this problem.

Does anyone have any idea what is wrong here? I’m probably missing something but I can’t find the cause.

Github: https://github.com/Fryboyter/Hugo
Website: https://fryboyter.de

You execute header.html using partialCached.

use partial instead.

Read More about cached partial:

1 Like

Sorry for the late feedback. The week was a bit stressful.

PartialCached was indeed the problem. Until a while ago, I had included footer.html and header.html via partial and wanted to use partialCached to further speed up the creation of the page. My mistake was that I equated header.html with and thus did not consider that values can change. In other words, this is a typical Layer 8 problem.

Thank you for your help. :slight_smile:

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