Commit 8fe1bfcc authored by Kaushal Modi's avatar Kaushal Modi

Create index.json in the "search" layout

With this, there is no need to tweak Outputs in site config.
parent 2e2c212d
......@@ -12,12 +12,6 @@ disableFastRender = true # Hugo 0.30
pygmentsCodeFences = true # This applies to Chroma too.
pygmentsUseClasses = true # This applies to Chroma too.
[Outputs] # https://gist.github.com/eddiewebb/735feb48f50f0ddd65ae5606a1cb41ae
home = ["HTML", "RSS", "JSON"] # default: home = ["HTML", "RSS"]
section = ["HTML", "RSS"]
taxonomy = ["HTML", "RSS"]
taxonomyTerm = ["HTML", "RSS"]
[Author]
name = "Kaushal Modi"
......
......@@ -2366,6 +2366,7 @@ blandit in.
:EXPORT_HUGO_LAYOUT: search
:EXPORT_HUGO_MENU: :menu "0.search" :title "Click to Search"
:EXPORT_HUGO_CUSTOM_FRONT_MATTER: :sitemap '((priority . 0.1))
:EXPORT_HUGO_OUTPUTS: html json
:END:
Results from static site search implemented using /Fusejs/, /jquery/
and /mark.js/. -- [[https://gist.github.com/eddiewebb/735feb48f50f0ddd65ae5606a1cb41ae][Source]]
......
......@@ -2,6 +2,7 @@
title = "Search"
author = ["Kaushal Modi"]
layout = "search"
outputs = ["html", "json"]
draft = false
[sitemap]
priority = 0.1
......
Subproject commit ab9847febc5ae2e6618fb401673fd52fa99cb51c
Subproject commit 88e66579316a796c88bfa467feb8f5ebf54a37bc
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment