Write a New Post
• 1 min read
Create the File #
bash
hugo new posts/frontend/my-post.mdAdd Metadata #
At minimum, provide a title, date, summary, categories, and tags.
Preview Locally #
bash
hugo server --buildDrafts --disableFastRenderCheck responsive images, the table of contents, code copy controls,
and category and tag links.
When its sort control is enabled, test the search page's relevance, newest, and oldest sort modes as well.
Set params.search.sort to disabled when the control should be hidden.