---
aliases : [ "alias1", "alias2" ]
date : 2018-05-09T23:55:57+02:00
description : "description"
draft : false
expiryDate : 2042-01-27T18:18:13+01:00
isCJKLanguage : false
keywords : [ "foo", "bar" ]
lastmod : 2018-01-27T20:18:45+01:00
linkTitle : "linkTitle"
markup : "md"
outputs : [ "html" ]
publishDate : 2018-01-27T18:19:05+01:00
slug : "FrontMatterVariables"
tags : [ "foo", "bar" ]
title : "Title"
FooBar : "hello world"
---
type : "myType"
url : "myURL"
{{/* Page Front Matter */}}
{{"https://gohugo.io/content-management/front-matter/#front-matter-variables" | markdownify }}
{{`Predefined => case sensitive`}}
aliases : {{ .Aliases }}
date : {{ .Date }}
description : {{ .Description }}
draft : {{ .Draft }}
expiryDate : {{ .ExpiryDate }}
keywords : {{ .Keywords }}
layout : {{ .Layout }}
lastmod : {{ .Lastmod }}
linkTitle : {{ .LinkTitle }}
markup : {{ .Markup }}
publishDate : {{ .PublishDate }}
slug : {{ .Slug }}
title : {{ .Title }}
type : {{ .Type }}
weight : {{ .Weight }}
{{`not exported:`}}
outputs
isCJKLanguage
{{`terms (taxonomy) via .Params`}}
.Params.tags : {{ .Params.tags }}
{{`User-Defined, not case sensitive, Anything => .Params.anything`}}
.Params.FooBar : {{ .Params.FooBar }}
.Params.foobar : {{ .Params.foobar }}
.Params.FOOBAR : {{ .Params.FOOBAR }}
.Param `FooBar` : {{ .Param `FooBar` }}
.Param `foobar` : {{ .Param `foobar` }}
.Param `FOOBAR` : {{ .Param `FOOBAR` }}
$.Page.Params.FooBar : {{ $.Page.Params.FooBar }}
$.Page.Params.foobar : {{ $.Page.Params.foobar }}
$.Page.Params.FOOBAR : {{ $.Page.Params.FOOBAR }}
{{`has to be lowercase`}}
index .Params `FooBar` : {{ index .Params `FooBar` }}
index .Params `foobar` : {{ index .Params `foobar` }}
index .Params `FOOBAR` : {{ index .Params `FOOBAR` }}
{{`it is stored in lowercase:`}}
{{printf "%v\n" .Params }}
https://gohugo.io/content-management/front-matter/#front-matter-variables
Predefined => case sensitive
aliases : [alias1 alias2]
date : 2018-05-09 23:55:57 +0200 CEST
description : description
draft : false
expiryDate : 2042-01-27 18:18:13 +0100 CET
keywords : [foo bar]
layout : variables/page_front_matter
lastmod : 2018-05-12 00:10:52 +0200 CEST
linkTitle : linkTitle
markup : markdown
publishDate : 2018-01-27 18:19:05 +0100 CET
slug : FrontMatterVariables
title : Title
type : examples
weight : 150
not exported:
outputs
isCJKLanguage
terms (taxonomy) via .Params
.Params.tags : [foo bar]
User-Defined, not case sensitive, Anything => .Params.anything
.Params.FooBar : hello world
.Params.foobar : hello world
.Params.FOOBAR : hello world
.Param `FooBar` : hello world
.Param `foobar` : hello world
.Param `FOOBAR` : hello world
$.Page.Params.FooBar : hello world
$.Page.Params.foobar : hello world
$.Page.Params.FOOBAR : hello world
has to be lowercase
index .Params `FooBar` :
index .Params `foobar` : hello world
index .Params `FOOBAR` :
it is stored in lowercase:
map[slug:FrontMatterVariables description:description keywords:[foo bar] draft:false date:2018-05-09 23:55:57 +0200 CEST publishdate:2018-01-27 18:19:05 +0100 CET tags:[foo bar] weight:150 title:Title iscjklanguage:false lastmod:2018-05-12 00:10:52 +0200 CEST expirydate:2042-01-27 18:18:13 +0100 CET markup:md outputs:[{HTML text/html+html index canonical false true false false}] layout:variables/page_front_matter foobar:hello world linktitle:linkTitle aliases:[alias1 alias2]]