为特定 post 获取 URL

Get URL for specific post

假设我有一个特定的 post:

posts/8-1-2020/index.html

有鼻涕虫:

my-post.

我想 link 直接从另一篇文章到此。如何使用 Hugo 检索 URL?

这应该是 shortcode ref 的用途:

{{< ref "/posts/8-1-2020/my-post" >}}

You will get an error if your document could not be uniquely resolved