Skip to content

URLs of website pages #627

@mitorun-studio

Description

@mitorun-studio

Problem

My project contains the file /blog/post-1.md. After building the site, the page /blog/post-1.html is created, with <loc>https://example.com/blog/post-1</loc> in the sitemap.xml. In development mode in the browser:
http://localhost:4000/blog/post-1 — the post page displays normally.
http://localhost:4000/blog/post-1/ — a blank page with the content [object Object] is displayed.
http://localhost:4000/blog/post-1.html — page not found.

How it should be

All pages like /404.md, /blog.html, /blog/post-1.md should be collected in the /404/index.html, /blog/index.html, /blog/post-1/index.html folders. Links in the sitemap should be written as <loc>https://example.com/blog/post-1/</loc>. It should still be possible to generate pages like /blog/post-1.html.

Proposed solution

Ideally, pages should be created by default with the path in the project folder, i.e. /blog/post-1.html. And add the setting folder_url: true, which will change the output of pages in /blog/post-1/index.html—at the project-wide /site.yaml level, at the application-level /app/app.yaml, and at the individual page level in Frontmetter.

This is currently the most critical issue with Nue for me, preventing me from creating websites.

Windows 11, Chrome, Nue 2.0.0-beta.2 • Bun 1.2.15

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions