We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6195ae1 commit aa52e6eCopy full SHA for aa52e6e
module/layouts/_partials/functions/get-guide-translations-for-version.html
@@ -88,8 +88,9 @@
88
{{ $hasPage := false }}
89
{{ if $page }}
90
{{ $hasPage = true }}
91
- {{/* Check if page has content */}}
92
- {{ $hasContent = and $page.Content (ne (trim $page.Content " \n\r\t") "") }}
+ {{/* Check if page has actual content by checking plain text content and word count */}}
+ {{ $plainContent := trim $page.Plain " \n\r\t" }}
93
+ {{ $hasContent = and (gt $page.WordCount 0) (ne $plainContent "") }}
94
{{ end }}
95
96
{{/* Check if PDF is available and get PDF path */}}
0 commit comments