Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hugo-sandbox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kaushal Modi
hugo-sandbox
Commits
8fe1bfcc
Commit
8fe1bfcc
authored
Mar 09, 2018
by
Kaushal Modi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create index.json in the "search" layout
With this, there is no need to tweak Outputs in site config.
parent
2e2c212d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
7 deletions
+3
-7
config.toml
config.toml
+0
-6
all-posts.org
content-org/all-posts.org
+1
-0
search.md
content/search.md
+1
-0
bare_min
themes/bare_min
+1
-1
No files found.
config.toml
View file @
8fe1bfcc
...
...
@@ -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"
...
...
content-org/all-posts.org
View file @
8fe1bfcc
...
...
@@ -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]]
...
...
content/search.md
View file @
8fe1bfcc
...
...
@@ -2,6 +2,7 @@
title = "Search"
author =
[
"Kaushal Modi"
]
layout = "search"
outputs =
[
"html", "json"
]
draft = false
[
sitemap
]
priority = 0.1
...
...
bare_min
@
88e66579
Subproject commit
ab9847febc5ae2e6618fb401673fd52fa99cb51
c
Subproject commit
88e66579316a796c88bfa467feb8f5ebf54a37b
c
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment