Add some Markdown to the body of the post, but do not change the draft value.
title = 'My First Post'
date = 2024-01-14T07:07:07+01:00
draft = true
This is **bold** text, and this is *emphasized* text.
Visit the [Hugo](https://gohugo.io) website!
Save the file, then start Hugo’s development server to view the site. You can run either of the following commands to include draft content.
hugo server --buildDrafts
hugo server -D
View your site at the URL displayed in your terminal. Keep the development server running as you continue to add and change content.
When satisfied with your new content, set the front matter draft parameter to false.
Configure the site
With your editor, open the site configuration file (hugo.toml) in the root of your project.
baseURL = 'https://example.org/'
languageCode = 'en-us'
title = 'My New Hugo Site'
theme = 'ananke'
Make the following changes:
Set the baseURL for your production site. This value must begin with the protocol and end with a slash, as shown above.
Set the languageCode to your language and region.
Set the title for your production site.
Start Hugo’s development server to see your changes, remembering to include draft content.
hugo server -D
Publish the site
In this step you will publish your site, but you will not deploy it.
Hugo’s forum is an active community of users and developers who answer questions, share knowledge, and provide examples. A quick search of over 20,000 topics will often answer your question. Please be sure to read about requesting help before asking your first question.