Create a blog post
To create a blog/news article:
hugo new --kind post post/my-article-name
Then edit the newly created file content/post/my-article-name.md
with your full title and content.
Hugo will automatically generate summaries of posts that appear on the homepage. If you are dissatisfied with an automated summary, you can either limit the summary length by appropriately placing <!--more-->
in the article body, or completely override the automated summary by adding a summary
parameter to the ---
front matter such that:
summary: "Summary of my post."
To disable commenting for a specific post, you can add disable_comments: true
to the post ---
front matter. Or to disable commenting for all posts, you can either set disqusShortname = ""
in config.toml
or disable_comments = true
in params.toml
.