Blog Permalink

Hey, I’m new to the Hugo CMS ecosystem. I learn bais of Hugocms. I need help. I have two requirements

  1. my-domain.dev/my-blog-post
  2. my-domain.dev/pages/about-us

Currently, I’m using an open-source bookworm-light theme. So plz, guide me on how to config the path.
Im uses all bydefault configuration with bookworm-light. I’m very confused about how to solve it, and I don’t know which file code to attach to my question. If you know something, then guide me.
thanks for help
content

├── 5-best-javascript-library-for-you.md
├── author
│   ├── henara-colii.md
│   ├── _index.md
│   └── lubana-era.md
├── disk-free-command-in-linux.md
├── doctypes-in-html.md
├── featured-image-does-not-load-after-installing-ssl-in-bitnami.md
└── pages
    ├── 404.md
    ├── about.md
    ├── contact.md
    ├── elements.md
    ├── privacy.md
    ├── search.md
    └── terms-conditions.md

baseof.html

<!DOCTYPE html>
<html lang="{{ site.LanguageCode | default `en-US` }}">
{{ partial "head.html" . }}

<body>
  {{ partialCached "preloader.html" . }}
  {{ partial "header.html" . }}

    {{if and (not .IsHome) (ne .Section "pages") (ne .Section "single") (ne .Permalink (`about/` | absURL)) (ne .Permalink (`search/` | absURL)) }}
    {{ partial "page-header.html" . }}
    
    {{end}}

  {{ block "main" . }}{{ end }}   

  {{ partialCached "footer.html" . }}
  {{ partialCached "script.html" . }}
</body>

</html>
2 Likes

Read the docs bro :rofl:

1 Like

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