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 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>{{ }}</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

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 = ''
languageCode = 'de-de'
title = 'example'
theme = "ananke"
canonifyurls  = true
unsafe= true

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

    identifier = "Kontakt"
    name = "Kontakt"
    url = ""
    weight = 3

    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
# content/
title: "Impressum"
<!-- layouts/_default/single.html -->

and run


I get:

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

Nevermind, I see the problem now.

Rename content/ to

Hi, that worked. " Rename content/ to ."

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.