Breadcrumb
Configure Pagefind
Published on
,
modified on
.
Setting up search in Hugo configuration
To enable search functionality, you’ll need to modify your config.toml file. First, enable the search button using .params.search. Then activate .params.pagefind, if you skip this step, the theme will default to using DuckDuckGo instead.
[params]
  search = true
  pagefind = true
Setting up post frontmatter
To make post indexed, you’ll need to set type to post to the frontmatter of each post.
---
title: "Post"
type: post
---
Setting up your CI/CD pipeline
To create the search index, add this command to your CI/CD pipeline’s build step:
- name: Index pagefind
  run: npx pagefind --source "public"
Redaction History
- (Published)
- (Modified)
Some information might changes over time, we keep redaction up to date.
Enjoy this article?
Awesome! Did you know that 1 cup of coffee helped us write this article? You can also support us by making the following contributions:
Awesome! Did you know that 1 cup of coffee helped us write this article? You can also support us by making the following contributions:
