From 36084c560773528b01db595cc8a3ba1ce69d5cf7 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Mon, 27 Aug 2018 22:31:12 +0100 Subject: [PATCH] search: refactor so that only one index is generated --- exampleSite/config.toml | 8 +------- layouts/{_default/list.search.json => index.json} | 0 layouts/partials/footer.html | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) rename layouts/{_default/list.search.json => index.json} (100%) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index f3235019..e9baa7b2 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -37,15 +37,9 @@ defaultContentLanguageInSubdir = false enableGitInfo = false [outputs] - home = [ "HTML", "CSS", "RSS", "search" ] + home = [ "HTML", "CSS", "RSS", "JSON" ] section = [ "HTML", "RSS" ] -[outputFormats.search] - baseName = "search" - isPlainText = true - mediaType = "application/json" - notAlternative = true - # Configure BlackFriday Markdown rendering. # See: https://gohugo.io/getting-started/configuration/#configure-blackfriday [blackfriday] diff --git a/layouts/_default/list.search.json b/layouts/index.json similarity index 100% rename from layouts/_default/list.search.json rename to layouts/index.json diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 756daa47..c89dfb58 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -66,7 +66,7 @@ {{ if ne .Site.Params.search.engine 0 }} {{/* Configure search engine. */}}