Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown pages in content not rendered? #227

Open
kinow opened this issue Apr 14, 2024 · 3 comments
Open

Markdown pages in content not rendered? #227

kinow opened this issue Apr 14, 2024 · 3 comments

Comments

@kinow
Copy link

kinow commented Apr 14, 2024

Hi,

I am choosing a new theme for an old Jekyll site migrated to Hugo, and tried lotusdocs.dev. The landing page looks great, but I created a file "content/license.md", and hugo seems to skip that file when producing the final files. It works if I use the docs folder, but not for the top level pages.

I toyed with the front matter configurations, marking as not draft, etc., but with no luck. Do you know if there's anything that needs to be done to use top level pages with the theme? If not it might be that I'm missing something, and I will try a bit more to see if I can fix it.

Thanks

@kinow
Copy link
Author

kinow commented Apr 14, 2024

Also tested with uglyURLs = true. Didn't work.

Then cloned the hyde theme into the themes directory, set theme=hyde and commented out the modules for lotusdocs, and then the page was generated successfully (i.e. without the theme it worked).

image

image

Comparing with the theme.

image

image

I deleted the public directory contents, and re-executed the command hugo server --navigateToChanged --buildDrafts --buildFuture --watch --verbose between tests. The URL I tested was http://localhost:1313/license.html.

@kinow
Copy link
Author

kinow commented Apr 14, 2024

(ignore the public directory in the screenshots, it's updated on disk, and the IDE takes a few seconds to rebuild, unless I trigger a reload from disk)

@kinow
Copy link
Author

kinow commented Apr 14, 2024

Tried another theme (https://github.com/imfing/hextra-starter-template) adding as module, hugo mod get -u, hugo mod tidy, then changed theme in my toml file, and executed the same command above, and it worked fine.

image

Probably going to try that one as I don't have much time today to work on this, but just in case others face the same issue, I think the info here should be a good starting point to debug/investigate what happens. Maybe the theme could include an about.md as example? Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant