REF_NOT_FOUND when using content/posts/post1/


So, I had a directory structure of content/projects/ But, now, I wish to move it to content/projects/post1/ to use page bundles for image processing.

I tried that and started getting errors:

ERROR 2020/09/03 18:48:16 [en] REF_NOT_FOUND: Ref "" from page "projects\\dropbox\\": page not found

The same error repeats the same number of times as the number of headings in that post. Thus, I thought that it might be coming from my layout/partials/toc.html. After I removed the relref from that file, the error goes away, so, that was indeed the cause.

I read some common solution to this and so, just to clarify, none of my posts are draft or future. Also, the website works normally when I change the structure back to content/projects/

I’m using Hugo Extended v0.74.3 on Windows 10 64-bit, by the way.

Here’s my project folder:


{{ $base := ($.Page.File.LogicalName) }}


{{ $base := $.Path }}
1 Like

So, that’s one of the downsides of referring to older blog posts to help you with your code. Thanks for the help, that worked perfectly.

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