title: Need to link to index.html
body: <p>I try to create a bunch of local HTML files that should serve as a documentation for some software. No webserver should be involved, just HTML files viewed by a webbrowser. I use hugo to create the pages, but I have problems linking to the main page (index.html). </p>
  
  <p>My <code>config.toml</code> is this:</p>
  
  <pre><code>#baseURL = "http://example.com"
  languageCode = "en-us"
  title = "foo"
  theme = "mytheme"
  
  relativeURLs = true
  canonifyURLs = false
  uglyURLs = true
  </code></pre>
  
  <p>and my main page is <code>_index.md</code> in the root folder. </p>
  
  <p>How do I create a shortcode or whatever that creates a relative link to the <code>index.html</code> in the root folder (<code>content</code> folder in hugo). The <code>index.html</code> page gets created, but I have not succeeded to create a link to that page. Of course I could hard code the link, but this is not what I want.</p>
  
  <p>The sample repository is at <a href="https://github.com/pgundlach/hugoexample/" rel="nofollow noreferrer">https://github.com/pgundlach/hugoexample/</a> .</p>
  
  <p>I have tried a shortcode with a definition like <code>{{ with .Site.GetPage "section" "_index.md"  }}{{ .Relpermalink }}{{ end}}</code> but this didn't work.</p>
  
  <p>Disclosure: This is actually a question I have tried on <a href="https://discourse.gohugo.io/" rel="nofollow noreferrer">https://discourse.gohugo.io/</a> but without any luck. So the question might be "stupid" or I am missing something obvious.</p>