diff options
Diffstat (limited to 'config-examples/zh-tw/config.toml')
-rw-r--r-- | config-examples/zh-tw/config.toml | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/config-examples/zh-tw/config.toml b/config-examples/zh-tw/config.toml index 3651d89..7a66eb0 100644 --- a/config-examples/zh-tw/config.toml +++ b/config-examples/zh-tw/config.toml @@ -135,14 +135,21 @@ uglyURLs = false baseName = "rss" # lunr.js 的搜尋索引 -# [outputFormats.SearchIndex] -# mediaType = "application/json" -# baseName = "search" +[outputFormats.SearchIndex] + mediaType = "application/json" + baseName = "search" + +# Algolia 的搜尋索引 +[outputFormats.Algolia] + mediaType = "application/json" + baseName = "algolia" + isPlainText = true + notAlternative = true # Hugo 的輸出控制 [outputs] page = ["HTML"] - # home = ["HTML", "SectionsAtom", "SectionsRSS", "SearchIndex"] + # home = ["HTML", "SectionsAtom", "SectionsRSS", "SearchIndex", "Algolia"] home = ["HTML", "SectionsAtom", "SectionsRSS"] section = ["HTML"] taxonomy = ["HTML"] @@ -1339,6 +1346,21 @@ uglyURLs = false ###################################### + # Algolia 搜尋 + + # 說明:需要開啟 `Algolia` 的輸出,且需要每 + # 次將生成的 algolia.json 文件上傳到 + # Algolia + + enableAlgoliaSearch = false + + algoliaAppId = "" + algoliaApiKey = "" + algoliaIndexName = "" + # 說明:https://www.algolia.com/ + + + ###################################### # 404 頁面 # 影片封面 |