Create impressum page not working

Hi, I need to add an impressum to my page for legal reasons. I’ve created the page hugo new impressum.md The markdown file is there I’ve changed the Frontmatter part to

---
title: "Impressum"
featured_image: "/img/header.jpg"
omit_header_text: true
---

Also created a layouts/_default/single.html file with this content:

<h1>{{ .Title }}</h1>
<p>{{ .Content }}</p>
<span>{{ .Params.date }}</span>

No matter what combination of arguments I paste to hugo. The page will not show up in public folder.
What am I doing wrong?

hugo env
hugo v0.88.1+extended darwin/amd64 BuildDate=unknown
GOOS="darwin"
GOARCH="amd64"
GOVERSION="go1.17"

Hi there,

What does your config look like? Do you have anything like disableKinds configured? or outputs?

I guess you mean the config.toml file.

baseURL = 'https://www.example.de/'
languageCode = 'de-de'
title = 'example'
theme = "ananke"
canonifyurls  = true
[markup.goldmark.renderer]
unsafe= true

site_logo= "content/img/header.jpg"
sectionPagesMenu = "main"


[[menu.main]]
    identifier = "Kontakt"
    name = "Kontakt"
    url = "mailto:info@example.de"
    weight = 3

[[menu.main]]
    identifier = "Impressum"
    name = "Impressum"
    url = "/impressum"
    weight = 3

Do you have your whole code in a repo somewhere we can clone?

When I run the following:

hugo new site test-imp
cd test-imp
hugo new impressum.md
---
# content/impressum.md
title: "Impressum"
---
<!-- layouts/_default/single.html -->
<h1>{{.Title}}</h1>

and run

hugo

I get:

...
├── config.toml
├── content
│   └── impressum.md
├── data
├── layouts
│   └── _default
│       └── single.html
├── public
│   ├── impressum
│   │   └── index.html
...
...

Nevermind, I see the problem now.

Rename content/index.md to _index.md.

Hi, that worked. " Rename content/index.md to _index.md ."

I think that should be highlighted somehow in the docs. Thanks a lot

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