hugo添加Algolia搜索系统
1. 注册 Algolia
- 注册 algolia
- 添加索引 data sources
- 点击 Settings -> API Keys,查看自己的 Application ID 和 Search-Only API Key
2. 生成索引文件
- 修改 config.toml
注意 outputs 下面 home 的末尾要有"Algolia",漏了生成的名字就不一样了
注意 outputs 下面 home 的末尾要有"Algolia",漏了生成的名字就不一样了
hugo new site myblog
cd myblog
git init
git submodule add https://github.com/dillonzq/LoveIt.git themes/LoveIt
cp myblog/themes/LoveIt/exampleSite/config.toml .
hugo serve---
title: 标题
author: 作者
date: 日期(格式:yyyy-MM-dd)
// 添加分类
categories:
- Hugo
// 添加标签
tags:
- Hugo
- Github Pages
- LoveIt
---hugo
cd public
git init
git add .
git commit -m "first post"
git remote add origin https://github.com/yourusername/yourusername.github.io
git push -u origin mainhttps://yourusername.github.io