diff options
author | jaseg <git@jaseg.de> | 2023-12-30 16:35:36 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-12-30 16:35:36 +0100 |
commit | 74e119b6e2ce33c3dc66ec078396dfac6314c6c4 (patch) | |
tree | 0a1d1745285869e521aed1a96d6181b7f31d867d /themes/conspiracy/layouts/_default/single.html | |
parent | b357b505257e460d41aef80550693c810780b7fc (diff) | |
download | blog-74e119b6e2ce33c3dc66ec078396dfac6314c6c4.tar.gz blog-74e119b6e2ce33c3dc66ec078396dfac6314c6c4.tar.bz2 blog-74e119b6e2ce33c3dc66ec078396dfac6314c6c4.zip |
theme: Add static page search with pagefind
Diffstat (limited to 'themes/conspiracy/layouts/_default/single.html')
-rw-r--r-- | themes/conspiracy/layouts/_default/single.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/themes/conspiracy/layouts/_default/single.html b/themes/conspiracy/layouts/_default/single.html index 231daf7..c7135f8 100644 --- a/themes/conspiracy/layouts/_default/single.html +++ b/themes/conspiracy/layouts/_default/single.html @@ -6,7 +6,11 @@ {{- if .Params.Date }} <strong>{{ .Date.Format "2006-01-02" }}</strong>{{- end }} </header> {{- end }} + {{- if .Params.noindex }} <main> + {{- else }} + <main data-pagefind-body> + {{- end }} {{- if .Params.external_links }} <div class="links"> {{- range .Params.external_links }} |