From a267a5091d858000bcb573688648d77c316bb909 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Tue, 13 Aug 2024 13:25:58 -0700 Subject: [PATCH] Document Page.Markup --- content/en/functions/hugo/Context.md | 25 ++++++++++ content/en/methods/page/Markup.md | 71 ++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) create mode 100644 content/en/functions/hugo/Context.md create mode 100644 content/en/methods/page/Markup.md diff --git a/content/en/functions/hugo/Context.md b/content/en/functions/hugo/Context.md new file mode 100644 index 0000000000..4760c6e395 --- /dev/null +++ b/content/en/functions/hugo/Context.md @@ -0,0 +1,25 @@ +--- +title: hugo.Context +description: # TODO +categories: [] +keywords: [] +action: + aliases: [] + related: [] + returnType: string + signatures: [hugo.Context] +--- + + + +## Contexts + + + +###### MarkupScope + + + +```go-html-template +{{ hugo.Context.MarkupScope }} → xxxxxx +``` diff --git a/content/en/methods/page/Markup.md b/content/en/methods/page/Markup.md new file mode 100644 index 0000000000..7dafcfa7c7 --- /dev/null +++ b/content/en/methods/page/Markup.md @@ -0,0 +1,71 @@ +--- +title: Markup +description: # TODO +categories: [] +keywords: [] +action: + related: [] + returnType: # TODO + signatures: [PAGE.Markup] +--- + + + + + +## Methods + +###### CountWords +(`int`) + +###### CountWordsFuzzy +(`int`) + +###### Fragments +(`tableofcontents.Fragments`) + +###### FragmentsHTML +(`template.HTML`) + +###### HasShortcode +(`bool`) + +###### Len +(`int`) + +###### Plain +(`string`) + +###### PlainWords +(`string array`) + +###### ReadingTime +(`int`) + +###### Render +(`any`) + +###### RenderShortcodes +(`template.HTM`) + +###### RenderString +(`template.HTM`) + +###### Summary +(`template.HTML`) + +## Example + + + +```go-html-template +{{ range .Pages }} + {{ with .Markup }} + {{ .Countwords }} + {{ .Render }} + {{ end }} +{{ end }} +```