reuixiy / hugo-theme-meme

😝 You can’t spell awesome without MemE!
https://io-oi.me/hugo-theme-meme
MIT License
1.01k stars 279 forks source link

When using algolia, the generated article content is too big #425

Closed Rurouni-z closed 1 year ago

Rurouni-z commented 1 year ago

Upload error: Record at the position 9 objectID=7a4c13c0830dec01ab0f9252c2a91297 is too big size=361732/10000 bytes. Please have a look at https://www.algolia.com/doc/guides/sending-and-managing-data/prepare-your-data/in-depth/index-and-records-size-and-usage-limitations/#record-size-limits

can add some restrictions, such as only taking the first 100 words of the article,maybe can look loveit theme

Rurouni-z commented 1 year ago

找到一个替代方案,就是使用summary字段(注意修改congfig.toml里的summaryLength,否则可能检索不到),而不是用content。另外配置algolia.json文件是在主目录下的layouts文件夹下新建index.algolia.json

我的文件目录

网上都是放在layouts/_default下,跟这个主题不一致