search: remove warning for deprecated JSON output format

This commit is contained in:
Sören Weber 2025-02-12 13:22:03 +01:00
parent a3e0b7f4f4
commit adb82b040f
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
2 changed files with 1 additions and 4 deletions
layouts/partials

View file

@ -1,9 +1,6 @@
{{- if not .Site.Params.disableSearch }}
{{- $assetBusting := partialCached "assetbusting.gotmpl" . }}
{{- $link := "" }}
{{- with .Site.Home.OutputFormats.Get "json" }}
{{- warnf "UNSUPPORTED usage of 'json' output format found, remove it from your config; see https://mcshelby.github.io/hugo-theme-relearn/introduction/releasenotes/7/#7-0-0" }}
{{- end }}
{{- with .Site.Home.OutputFormats.Get "search" }}
{{- warnf "UNSUPPORTED usage of 'search' output format found, remove it from your config; see https://mcshelby.github.io/hugo-theme-relearn/introduction/releasenotes/7/#7-0-0" }}
{{- end }}

View file

@ -1 +1 @@
7.3.2+5d9a90b18744ca0ff908e78c4243865edf040c43
7.3.2+a3e0b7f4f469703ed2fec432b332f17e0066d70a