HUGO

Not able to link between pages

I am using

<a href='{{ "/tours/hiking/" | relLangURL }}'>

To link from my home page where I have list of tours to a single tour when clicking on link above.

For now I am getting 404 page not found like it’s not recognizing my tours folder in content folder.

This is how my layouts folder looks like if it’s any of help to figure where problem is

Screen Shot 2020-03-24 at 2.35.03 PM

I am not sure why is it not working any help would be appreciated :slight_smile:

Share your Hugo project, so we can build it ourselves. That’s how we debug issues. :slight_smile:

Should I share my git repo with you?

No, folks share git repos with me when they are paying. Here in the forums we support public projects. So share your repo here, or create a new Hugo project that reproduces your issue. :slight_smile:

Please follow the other advice at Requesting Help.

I have a multilingual site.
I would like when clicking on link

<a href='{{ "/tours/classic/" | relLangURL }}'>{{ i18n "klasicnaTura" }}</a>

To display content from my content/tours/classic folder as a single page content.

But I am getting 404 page not found error. It seems like it cant recognize content in my content folder.

My _default/baseof.html looks like this:

<!DOCTYPE html>
<html lang="en">
    {{ partial "homepage/header" . }}

<body data-spy="scroll" data-target=".site-navbar-target" data-offset="300">
    
    {{ block "main" .}}
    {{end}}
   
    {{ partial "homepage/footer.html" . }}
    {{ partial "homepage/js_scripts.html" . }}
</body>
</html>

then _default/list.htm i just put this part and same for _default/single.htm:
{{ .Content }}

I am not sure why my content folder is not being displayed.

Hi there,

Please do not open new topics for the same questions.

We are all volunteers here in this forum. People answer if 1. they have time, 2. they know the answer. It makes it easier to help if you follow the Requesting Help guidelines posted above.

Okay my bad, no problem!