You will get home and about page that your website has in the data folder and othe page has in the content folder. The content and data folder is a subfolder of the project folder.
Homepage
Home Page content comes from data
folder. After open the data folder you will see all page contents file, like homepage.yml
for homepage. Open this page in any text editor, and you will be able to edit it. Some of the sections can hide. You can change its enable
value to false
.
Other Pages
There are two types of pages in the Hugo theme, list page, and single page. The list page is kind of a landing page (ex: about page
). And the single page is called the inner page of a product or a post (ex: blog single page). We need to define the structure or markup of every page.
We already provided the necessary markup for the existing pages. You can find the markup in the themes/layout
folder. For example, Portfolio page layout is layout: portfolio
. We have also provided default list
and single
page layouts. So when you create a new page, you don’t need to define the layout. It will be the default layout.