少于1分钟
https://gohugo.io/troubleshooting/faq/
Solutions to some common Hugo problems.
Note: The answers/solutions presented below are short, and may not be enough to solve your problem. Visit Hugo Discourse and use the search. It that does not help, start a new topic and ask your questions.
Is your Markdown file in draft mode? When testing, run hugo server
with the -D
or --buildDrafts
switch.
Is your Markdown file part of a leaf bundle? If there is an index.md
file in the same or any parent directory then other Markdown files will not be rendered as individual pages.
Yes you can! See Configure with Environment Variables.
publishDate
in the page Front Matter to a datetime in the future. If you want the creation and publication datetime to be the same, it’s also sufficient to only set date
1.How to automate the “publish at intervals” part depends on your situation:
If you deploy from your own PC/server, you can automate with Cron or similar.
If your site is hosted on a service similar to
Netlify
you can:
Also see this Twitter thread:
@GoHugoIO Converted https://t.co/icCzS7Ha7q from @Medium to Hugo yesterday. Once I figure out how to do scheduled posts I will be ecstatic.
— Chris Short 🇺🇸🇺🇦 (@ChrisShort)
February 10, 2018
Yes you can! Read this.
If you process SCSS
or Sass
to CSS
in your Hugo project with libsass
as the transpiler or if you convert images to the webp
format, you need the Hugo extended
version, or else you may see an error message similar to the below:
|
|
We release two set of binaries for technical reasons. The extended version is not what you get by default for some installation methods. On the release page, look for archives with extended
in the name. To build hugo-extended
, use go install --tags extended
To confirm, run hugo version
and look for the word extended
.