https://github.com/zoni/hugo-theme-sidey
Hugo port of the Sidey theme for Jekyll
https://github.com/zoni/hugo-theme-sidey
Last synced: 12 months ago
JSON representation
Hugo port of the Sidey theme for Jekyll
- Host: GitHub
- URL: https://github.com/zoni/hugo-theme-sidey
- Owner: zoni
- License: mit
- Created: 2021-01-10T16:11:41.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-10T23:11:02.000Z (over 5 years ago)
- Last Synced: 2025-01-03T09:32:15.596Z (over 1 year ago)
- Language: JavaScript
- Size: 53.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Sidey
This is a Hugo port of the [sidey] theme from Ronalds Vilciņš.
## Search
To make the built-in [lunr]-based search functionality work, follow these steps.
### Configure JSON index
In your Hugo configuration, enable the JSON output format for `/index.json` using something like the following (this example uses TOML):
```toml
[outputFormats]
[outputFormats.SearchIndex]
baseName = "index"
mediaType = "application/json"
[outputs]
home = ["HTML", "SearchIndex"]
```
### Create search page
Create `search.md` at the root of your `content` folder with these contents:
```
---
title: Search this site
---
# Search
}}">
```
This will make the search page available at `/search`.
[sidey]: https://github.com/ronv/sidey
[lunr]: https://lunrjs.com/