obsidiangarden_netlify/netlify.toml
Mark Orel fd92473178 feat: Search using lunr
Context: having search is almots essential feature for most of the
websites. This commit adds very basic functionality based on lunrjs
library. It allows to build an use search index.

Changes:
- Build search index using 11ty template
- Adds postbuild step to build lunr index
- Adds netlify function to serve as API for search
- Adds search page and links to notes pages
- Wraps hashtags with proper styling and adds search by hashtag link to
  them
- Adds missing obsidian class for content
2022-11-06 20:11:35 +01:00

15 lines
213 B
TOML

[build]
publish = "dist"
command = "npm install && npm run build"
[[redirects]]
from = "/api/*"
to = "/.netlify/functions/:splat"
status = 200
[[redirects]]
from = "/*"
to = "/404"
status = 404