Change pagefind to only index the content of articles

Fixes #97
This commit is contained in:
2025-08-08 01:42:25 -05:00
parent 52a6440011
commit 84004d3ac0
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@
{{ partial "breadcrumb.html" . }} {{ partial "breadcrumb.html" . }}
{{ end }} {{ end }}
<main id="main-content" {{ if .IsPage }}data-pagefind-body{{ end }}> <main id="main-content">
{{ block "main" . }} {{ block "main" . }}
THIS TEXT SHOULD NOT SHOW. YUZSIQGHE (that string is so I can grep for it) THIS TEXT SHOULD NOT SHOW. YUZSIQGHE (that string is so I can grep for it)
{{ end }} {{ end }}

View File

@@ -24,7 +24,7 @@
{{ partial "feature-figure.html" . }} {{ partial "feature-figure.html" . }}
<article class="post-content"> <article class="post-content" data-pagefind-body>
{{ .Content }} {{ .Content }}
</article> </article>