hugo-universal-theme icon indicating copy to clipboard operation
hugo-universal-theme copied to clipboard

Content in subdirectories formatted differently

Open kmsuzuki opened this issue 3 years ago • 1 comments

If I hugo new a file into the root of my project, it's treated as an ordinary single page as defined in layouts/_default/single.html. Any file placed in a subdirectory gets today's date added just above the content, params.widgets added. Why does it do this? I'd like to have my single pages without param.widgets.

Thanks!

kmsuzuki avatar May 30 '22 08:05 kmsuzuki

I realize I'm replying to an old issue but I found it trying to figure this out myself and it's unanswered.

I fixed it by doing this:

Issue: Trying to make content/docs/warranty.md render like a page instead of a blog post.

Fix: In /themes/hugo-universal-theme/layouts I ran cp -a page docs

Now anything I put in $REPO_ROOT/content/docs/ renders like a page instead of a blog post.

I'm not sure if this is the "proper" way to do this but it works.

ahrenstein avatar Jun 19 '25 16:06 ahrenstein