From 740f5ef96fbe1da74ca8cdf764e850a4d48f994b Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Sun, 26 Nov 2023 14:21:00 -0800 Subject: [PATCH] Misc additions --- content/en/methods/page/Len.md | 15 +++++++++++++++ content/en/troubleshooting/faq.md | 4 ++++ 2 files changed, 19 insertions(+) create mode 100644 content/en/methods/page/Len.md diff --git a/content/en/methods/page/Len.md b/content/en/methods/page/Len.md new file mode 100644 index 000000000..d4270bda3 --- /dev/null +++ b/content/en/methods/page/Len.md @@ -0,0 +1,15 @@ +--- +title: Len +description: Returns the length, in bytes, of the rendered content of the given page. +categories: [] +keywords: [] +action: + related: + - methods/page/Content + returnType: int + signatures: [PAGE.Len] +--- + +```go-html-template +{{ .Len }} → 42 +``` diff --git a/content/en/troubleshooting/faq.md b/content/en/troubleshooting/faq.md index 80918b73b..dc6204777 100644 --- a/content/en/troubleshooting/faq.md +++ b/content/en/troubleshooting/faq.md @@ -105,6 +105,10 @@ Yes. See [details](/getting-started/configuration/#configure-with-environme The most common causes are page collisions (publishing two pages to the same path) and the effects of concurrency. Use the `--printPathWarnings` command line flag to check for page collisions, and create a topic on the [forum] if you suspect concurrency problems. +###### Which page methods trigger content rendering? + +The following methods on a `Page` object triggering content rendering: `Content`, `FuzzyWordCount`, `Len`, `Plain`, `PlainWords`, `ReadingTime`, `Summary`, `Truncated`, and `WordCount`. + {{% note %}} For other questions please visit the [forum]. A quick search of over 20,000 topics will often answer your question. Please be sure to read about [requesting help] before asking your first question.