Slug Front-matter
tags: front-matter slug
Description/Summary
By default, a page’s slug is the name of the content file (sans extension). So in this case, it would have been slug-front-matter. But that slug is overridden using the specified slug in the front-matter: this-is-how-i-want-to-name-this-link.
Content
By default, a page’s slug is the name of the content file (sans
extension). So in this case, it would have been
slug-front-matter. But that slug is overridden using the specified
slug in the front-matter: this-is-how-i-want-to-name-this-link.
Page (Debug)
| Page Variable | Value | |
|---|---|---|
| Name | "Slug Front-matter" | |
| Title | "Slug Front-matter" | |
| ResourceType | "page" | |
| Kind | "page" | |
| Section | "posts" | |
| Draft | false | |
| Type | "posts" | |
| Layout | "" | |
| Permalink | "https://ox-hugo.scripter.co/test/posts/this-is-how-i-want-to-name-this-link/" | |
| RelPermalink | "/posts/this-is-how-i-want-to-name-this-link/" | |
| Data |
| |
| NextPage | Single-line description with backslashes (YAML) | |
| PrevPage | Smart Quotes Disabled | |
| NextInSection | Single-line description with backslashes (YAML) | |
| PrevInSection | Smart Quotes Disabled |
Page Params (Debug)
| Key | Type | Value |
|---|---|---|
| draft | bool | false |
| iscjklanguage | bool | false |
| lastmod | time.Time | 2018-02-06 18:15:47 -0500 -0500 |
| slug | string | "this-is-how-i-want-to-name-this-link" |
| tags | []string | "front-matter" "slug" |
| title | string | "Slug Front-matter" |
File Object (Debug)
| FileInfo Variable | Value |
|---|---|
| UniqueID | "190a20233f54e2e83042bebe4c0aea66" |
| BaseFileName | "slug-front-matter" |
| TranslationBaseName | "slug-front-matter" |
| Lang | "en" |
| Section | "posts" |
| LogicalName | "slug-front-matter.md" |
| Dir | "posts/" |
| Ext | "md" |
| Path | "posts/slug-front-matter.md" |