Getting site links to work


I’m building a portfolio website and I’m trying to get in-site links to work in the header and the footer. Currently, the links seems to be adding onto the baseURL, which is set to “/”.

My github repository is here:

My website is hosted at elianagrosof(dot)com through render(dot)com.

So for example, in blog.html I have the following line of code:

<div style="text-align:center;"><h4>To see an archive of all of my blog posts,
        <a href="">click here</a>. </h4></div>

and the website tries to go to “” which does not work.

My goal is navigate directly to the url in question, rather than as a relative path. So for this example, have the browser only navigate to the url specified by the href.

I am mostly using the hugo-raditian-free-theme with my blog based on the mediumish theme.

I am at a loss for what to do. When I change the baseURL to www.elianagrosof(dot)com/, the JavaScript stops rendering.

Apologies for all the . dots as words, Hugo told me that I could only have 2 links in the post.

Thank you!

The baseURL in config.toml file should be set to:

Note that it includes the protocol and host, not just the host, and ends with a forward slash.

When I change the baseURL to www.elianagrosof(dot)com/, the JavaScript stops rendering.

I don’t know what this means.

In config.toml, this:

URL = "rad-icons-codes.css"
URL = "rad-icons-embedded.css"
URL = "rad-icons-ie7-codes.css"
URL = "rad-icons-ie7.css"
URL = "animation.css"

should be this:

URL = "css/rad-icons-codes.css"
URL = "css/rad-icons-embedded.css"
URL = "css/rad-icons-ie7-codes.css"
URL = "css/rad-icons-ie7.css"
URL = "css/animation.css"

In themes/raditian-free-hugo-mod/layouts/partials/head.html:

<link rel="stylesheet" href="/fonts/font-awesome/css/font-awesome.min.css">

This resource is not present in your repository.

Thanks for the suggestion - changing baseurl to instead of / or worked.

Additionally, and I’ll admit this is cheating, but I just added the baseURL ( semi-manually onto my urls.

So for my header, I added

< a data-scroll class=“nav-link” href=“{{ .URL }}”>{{ .Name | lower }}

and did the same for my footer. I used my .Site.BaseURL parameter when I could, but just re-typed the baseURL when I couldn’t access it easily.

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