mirror of
https://github.com/tcsenpai/obsidiangarden_netlify.git
synced 2025-06-01 02:50:04 +00:00

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
15 lines
213 B
TOML
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
|
|
|