Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想写一篇关于Hugo的教程,所以我在 markdown 中写了一个简码语法,但我不想渲染它;我想要它作为普通文本。
{{< ref "/page/about" >}}
当我运行时hugo server,它向我显示:page not found,很明显,它将它视为简码。
hugo server
我该如何解决?
您只需要添加/* */您的简码并向下添加。例如,
/* */
{{</* ref "/page/about" */>}}