From 8567ccde82c88fa5516b5f6363f1a4f06a8f745c 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 | 26 ++++++++++ content/en/methods/page/Markup.md | 72 ++++++++++++++++++++++++++++ 2 files changed, 98 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 000000000..a7742a6f8 --- /dev/null +++ b/content/en/functions/hugo/Context.md @@ -0,0 +1,26 @@ +--- +title: hugo.Context +description: # TODO +categories: [] +keywords: [] +params: + functions_and_methods: + aliases: [] + 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 000000000..f36574d32 --- /dev/null +++ b/content/en/methods/page/Markup.md @@ -0,0 +1,72 @@ +--- +title: Markup +description: # TODO +categories: [] +keywords: [] +params: + functions_and_methods: + 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 }} +```