replicatedhq / hugo-algolia

Enables search with Algolia in Hugo static sites
47 stars 11 forks source link

algolia.json output not contain Chinese data content #14

Open Honghe opened 6 years ago

Honghe commented 6 years ago

Environment

config.yaml

---
baseurl: "/"
DefaultContentLanguage: "zh-cn"
hasCJKLanguage: true
languageCode: "zh-cn"
title: "Blog"
theme: "concise"
metaDataFormat: "yaml"
algolia:
  index: "honghe-blog"
  appID: "WC46GFS5NE"
---

source file hugo_note.md

---
title: "Hugo note"
date: 2018-06-03T19:12:41+08:00
typora-copy-images-to: images
layout: "bundle-resource-meta"

math: true
tags: []
categories: []
---

# Extension

## Search

algolia

测试中文统计测试中文统计测试中文统计测试中文统计测试中文统计测试中文统计测试中文统计测试中文统计测试中文统计测试中文统计测试中文统计测试中文统计测试中文统计测试中文统计测试中文统计测试中文统计

# Q&A

##  GitHub Flavored Markdown

https://github.com/gohugoio/hugo/issues/158

algolia.json output

    {
        "title": "Hugo note",
        "uri": "posts/gohugo/hugo_note",
        "content": "Extension Search algolia                                                                                                  Q A GitHub Flavored Markdown https   github com gohugoio hugo issues 158",
        "objectID": "posts/gohugo/hugo_note",
        "date": "2018-06-03T11:12:41.000Z",
        "typora-copy-images-to": "images",
        "layout": "bundle-resource-meta",
        "math": true,
        "tags": [],
        "categories": []
    },
EamonZhang commented 5 years ago

It is not support Chinese in contain