Custom layout for /about page or similar

If I want a custom layout different from /layouts/_default/single.html for a webpage like the typical “About” page with URL site.com/about, where should my layout file be placed? At the moment what I am trying is the layout at /layouts/about.html, and the page at /content/about.md with layout: about in its front matter, which is not working.

Have you tried /layouts/_default/about.html?

https://discourse.gohugo.io/t/i-cannot-create-an-about-me-or-contact-page/41812/6

2 Likes

Perfect, thanks so much. Odd that this doesn’t come up searching “about” in the forum

“about” is typically treated as a “stop word” by search indexing tools, meaning it is excluded.

https://meta.discourse.org/t/no-search-results-are-shown-for-stopwords/46541

2 Likes

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