feat: add search functionality (#250)

This commit is contained in:
Óscar 2024-01-08 01:00:52 +01:00 committed by GitHub
parent fcd0c34d19
commit 906bc9dec0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
69 changed files with 11443 additions and 6 deletions

View file

@ -1,7 +1,7 @@
+++
title = "No mandatory JavaScript"
date = 2023-01-06
updated = 2023-10-06
updated = 2024-01-07
description = "JavaScript is only used when HTML and CSS aren't enough."
[taxonomies]
@ -16,6 +16,8 @@ This theme has no mandatory JavaScript. Optionally, it can load a minimal amount
## Globally enabled settings
- [**Search**](@/blog/mastering-tabi-settings/index.md#search). Enabled by setting a default language and `build_search_index = true` on the main section of `config.toml`. (~23KB of JavaScript)
- The **light/dark mode switch** can be enabled by setting `theme_switcher = true` in the `[extra]` section of your `config.toml` (~1KB of JavaScript).
- **E-mail decoding** (~400 bytes). To protect against spambots scraping your e-mail from your website, you can set `encode_plaintext_email = true`. If your site is on a public repository, for extra protection, consider setting your `email` as a base64-encoded string[^1] directly.