Slug
Syntax
PAGE.Slug
Returns
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"
}
This page will be served from:
https://example.org/recipes/sushi
To get the slug value within a template:
{{ .Slug }} → sushi