别名
语法
PAGE.Slug
返回
string
content/recipes/spicy-tuna-hand-rolls.md
---
slug: sushi
title: How to make spicy tuna hand rolls
---
+++
slug = 'sushi'
title = 'How to make spicy tuna hand rolls'
+++
{
"slug": "sushi",
"title": "How to make spicy tuna hand rolls"
}
此页面将从以下位置提供服务
https://example.org/recipes/sushi
要在模板中获取别名值
{{ .Slug }} → sushi