You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hugo new site quickstart
cd quickstart
git init
hugo new content posts/my-first-post.md
# 去掉posts/my-first-post.md date后面的+08:00
hugo
# 发现posts/my-first-post.md没有被构建,加上+08:00问题消失
The text was updated successfully, but these errors were encountered:
当前生成的Hugo日期格式时这样的
date:'2024-04-18 18:50:16'
,这里面没有标明时区,Hugo会把它的时区当成0时区,这样就导致Hugo认为这篇文章还没有到发布的时候,所以在构建时不会构建它,只有改成2024-04-18 18:50:16+08:00
或2024-04-18T19:20:59+08:00
才可以构建。复现步骤:
The text was updated successfully, but these errors were encountered: