📌  相关文章
📜  hugo 显示文件路径 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:52.732000             🧑  作者: Mango

代码示例1
{{ .File.Dir }}

given the path content/posts/dir1/dir2/, the relative directory path of the content file will be returned (e.g., posts/dir1/dir2/)