A clean and responsive Hugo theme designed for documentation and note-taking. Khata is highly customizable and provides a simple, elegant layout to make your content easy to read and navigate.
Explore the theme in action by visiting the live demo.
Follow these steps to install and set up the Khata theme for your Hugo site.
- Add the theme as a submodule: Navigate to your website's root directory and run the following command to add Khata as a Git submodule:
cd MY_WEBSITE git submodule add [https://github.com/darshanbaral/khata](https://github.com/darshanbaral/khata) themes/khata - Configure the theme:
- New Site: If you're starting a new Hugo project, copy the
config.tomlfile and thecontentfolder from the theme's exampleSite folder into your website's root directory. - Existing Site: If you have an existing site, simply set the theme in your
config.tomlfile:# config.toml theme = "khata"
- New Site: If you're starting a new Hugo project, copy the
- Create your content: Khata uses a folder-based structure for sections. Create new folders within your
contentdirectory for different sections of your site, then add your documentation pages inside these folders.
Note: The
archive,recent,search, andtaxafolders are special and should only be modified if you are familiar with the theme's structure.
The Khata theme includes a built-in search feature powered by Pagefind. To enable search on your deployed site, you must index your content before deployment.
Run the following command after you've built your site with Hugo:
hugo -b https://your_base_url/; npx -y pagefind --site publicSee github workflow for an example of how to deply the theme.