{{/* Page */}}
{{"https://gohugo.io/variables/page/" | markdownify }}
.AlternativeOutputFormats : {{.AlternativeOutputFormats}}
.Data : {{.Data }}
.Date : {{.Date }}
.Description : {{.Description }}
.Dir : {{.Dir }}
.Draft : {{.Draft }}
.ExpiryDate : {{.ExpiryDate }}
.File : {{.File }}
.FuzzyWordCount : {{.FuzzyWordCount }}
.Hugo : {{.Hugo }}
.IsHome : {{.IsHome }}
.IsNode : {{.IsNode }}
.IsPage : {{.IsPage }}
.IsTranslated : {{.IsTranslated }}
.Keywords : {{.Keywords }}
.Kind : {{.Kind }}
.Lang : {{.Lang }}
.Language : {{.Language }}
.Lastmod : {{.Lastmod }}
.LinkTitle : {{.LinkTitle }}
.Next : {{.Next }}
.NextInSection : {{.NextInSection }}
.OutputFormats : {{.OutputFormats }}
.Pages : {{.Pages }}
.Permalink : {{.Permalink }}
.PlainWords : {{.PlainWords }}
.Prev : {{.Prev }}
.PrevInSection : {{.PrevInSection }}
.PublishDate : {{.PublishDate }}
.RSSLink : {{.RSSLink }}
.ReadingTime : {{.ReadingTime }}
.Ref : {{.Ref }}
.RelPermalink : {{.RelPermalink }}
.RelRef : {{.RelRef }}
.Site : {{.Site }}
.Title : {{.Title }}
.Translations : {{.Translations }}
.Truncated : {{.Truncated }}
.Type : {{.Type }}
.URL : {{.URL }}
.UniqueID : {{.UniqueID }}
.Weight : {{.Weight }}
.WordCount : {{.WordCount }}
{{ delimit .Keywords ", " }}
{{`output without the newlines: `}}
.Content : {{.Content | replaceRE `(?s:)\n` "" }}
.Plain : {{.Plain | replaceRE `(?s:)\n` "" }}
.RawContent : {{.RawContent | replaceRE `(?s:)\n` "" }}
.Summary : {{.Summary | replaceRE `(?s:)\n` "" }}
.TableOfContents : {{.TableOfContents | replaceRE `(?s:)\n` "" }}
<hr>
{{`just curious ...`}}
{{ printf `%+v
T:%T
#v:%#v` . . . }}
{{/*
#v:&hugolib.PageOutput
{
Page:(*hugolib.Page)(0xc44963af00), paginator:(*hugolib.Pager)(nil), paginatorInit:sync.Once
{
m:sync.Mutex
{
state:0, sema:0x0
}
, done:0x0
}
, resources:resource.Resources(nil), resourcesInit:sync.Once
{
m:sync.Mutex
{
state:0, sema:0x0
}
, done:0x1
}
, targetPathDescriptor:hugolib.targetPathDescriptor
{
PathSpec:(*helpers.PathSpec)(0xc42feafc20), Type:output.Format
{
Name:"HTML", MediaType:media.Type
{
MainType:"text", SubType:"html", Suffix:"html", Delimiter:"."
}
, Path:"", BaseName:"index", Rel:"canonical", Protocol:"", IsPlainText:false, IsHTML:true, NoUgly:false, NotAlternative:false
}
, Kind:"page", Sections:[]string
{
"examples", "variables"
}
, BaseName:"page", Dir:"examples/variables/", LangPrefix:"", IsMultihost:false, URL:"", Addends:"", ExpandedPermalink:"", UglyURLs:false
}
, outputFormat:output.Format
{
Name:"HTML", MediaType:media.Type
{
MainType:"text", SubType:"html", Suffix:"html", Delimiter:"."
}
, Path:"", BaseName:"index", Rel:"canonical", Protocol:"", IsPlainText:false, IsHTML:true, NoUgly:false, NotAlternative:false
}
}
*/}}
https://gohugo.io/variables/page/
.AlternativeOutputFormats : []
.Data : map[Pages:Pages(0)]
.Date : 2018-01-27 14:28:03 +0100 CET
.Description : see the page vars
.Dir : examples/variables/
.Draft : false
.ExpiryDate : 2042-01-27 14:28:03 +0100 CET
.File : Page
.FuzzyWordCount : 100
.Hugo : {0.40.2 <meta name="generator" content="Hugo 0.40.2" /> 2018-04-30T06:47:44Z}
.IsHome : false
.IsNode : false
.IsPage : true
.IsTranslated : false
.Keywords : [key 1 key 2]
.Kind : page
.Lang : en
.Language : en
.Lastmod : 2018-01-27 15:59:32 +0100 CET
.LinkTitle : Hello Page
.Next : Page("")
.NextInSection : <nil>
.OutputFormats : [0xc4200acb00]
.Pages : Pages(0)
.Permalink : https://it-gro.github.io/HugoTemplateCodePlyGnd/examples/variables/Page/
.PlainWords : [some text here Title 1 Title 1.1 Title 2]
.Prev : Page("")
.PrevInSection : Page("")
.PublishDate : 2018-01-27 14:28:03 +0100 CET
.RSSLink :
.ReadingTime : 1
.Ref :
.RelPermalink : /HugoTemplateCodePlyGnd/examples/variables/Page/
.RelRef :
.Site : Site("Hugo Template Coding Playground")
.Title : Hello Page
.Translations : Pages(0)
.Truncated : true
.Type : examples
.URL : /HugoTemplateCodePlyGnd/examples/variables/Page/
.UniqueID : 070ddabb145da7ab1df88f0935c2e7ee
.Weight : 100
.WordCount : 9
key 1, key 2
output without the newlines:
.Content : <p>some text here</p><h2 id="title-1">Title 1</h2><h3 id="title-1-1">Title 1.1</h3><h2 id="title-2">Title 2</h2>
.Plain : some text here Title 1 Title 1.1 Title 2
.RawContent : some text here<!--more-->## Title 1### Title 1.1## Title 2
.Summary : <p>some text here</p>
.TableOfContents : <nav id="TableOfContents"><ul><li><ul><li><a href="#title-1">Title 1</a><ul><li><a href="#title-1-1">Title 1.1</a></li></ul></li><li><a href="#title-2">Title 2</a></li></ul></li></ul></nav>
just curious ...
Page("Hello Page")
T:*hugolib.PageOutput
#v:&hugolib.PageOutput{Page:(*hugolib.Page)(0xc429ccaa00), paginator:(*hugolib.Pager)(nil), paginatorInit:sync.Once{m:sync.Mutex{state:0, sema:0x0}, done:0x0}, resources:resource.Resources(nil), resourcesInit:sync.Once{m:sync.Mutex{state:0, sema:0x0}, done:0x1}, targetPathDescriptor:hugolib.targetPathDescriptor{PathSpec:(*helpers.PathSpec)(0xc4200ed040), Type:output.Format{Name:"HTML", MediaType:media.Type{MainType:"text", SubType:"html", Suffix:"html", Delimiter:"."}, Path:"", BaseName:"index", Rel:"canonical", Protocol:"", IsPlainText:false, IsHTML:true, NoUgly:false, NotAlternative:false}, Kind:"page", Sections:[]string{"examples", "variables"}, BaseName:"Page", Dir:"examples/variables/", LangPrefix:"", IsMultihost:false, URL:"", Addends:"", ExpandedPermalink:"", UglyURLs:false}, outputFormat:output.Format{Name:"HTML", MediaType:media.Type{MainType:"text", SubType:"html", Suffix:"html", Delimiter:"."}, Path:"", BaseName:"index", Rel:"canonical", Protocol:"", IsPlainText:false, IsHTML:true, NoUgly:false, NotAlternative:false}}