Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
XmchxUp committed May 25, 2024
1 parent 5bbf7e3 commit 439df86
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion 2024/05/hugo_heatmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@

## Use

这里用的时候是当[shortcodes}(https://gohugo.io/content-management/shortcodes/),还是就是` {{ range ((where .Site.RegularPages "Type" "post")) }}`是判断注意你的 post 的类型,如果文章内容没有指定type的话默认好像是page,所有需要给所有文章加上`type: 'post'`
这里用的时候是当[shortcodes}(https://gohugo.io/content-management/shortcodes/),还是就是` {{ range ((where .Site.RegularPages "Type" "post")) }}`是判断注意你的 post 的类型。

If your content is in content/posts the .Type is posts (plural).
If your content is in content/post the .Type is post (singular).

0 comments on commit 439df86

Please sign in to comment.