Config File Values Unavailable

If I could solve this myself, I would. At this point, though, I’m asking for help.

Values found in my config.toml file, such as the site title and menus, are unavailable. It’s not an issue of passing context because it even happens to my root baseof.html file.

I can still access variables such as {{ .Site.Title }} and {{ .Site.Menu. }}, too, but their values are “” and a blank map respectively.

Here’s the GitHub repo for my project.

Here’s my config.toml file.

baseURL = "/"
languageCode = "en-us"
title = "Dylan's Portfolio"
    name = "Blog"
    url = ""
    name = "GitHub"
    url = ""
    name = "LinkedIn"
    url = ""

And from my layouts/_default/baseof.html file…

<!DOCTYPE html>
<html lang="en">

  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>{{ .Site.Title }}</title>
  <meta name="Description" content="Full stack web developer who wants to help others through creating software with like minded people.">
  {{ partial "styles/styles" .}}

  {{ .Site.Title }}
  {{ partial "header" . }}
  <main class="main">
    {{ block "main" . }}
    {{ end }}

  {{ partial "built/inline-script.html" . }}


Your config.toml file is at the root of your project. But your other Hugo-related dirs are at src/hugo.

They must all be on the same level.

Or, you’ll have to use the --configDir option

1 Like

My goodness! I was just typing a question about whether moving my project into a src/ directory would affect anything. :confounded:

Thank you for the help Zachary.