Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thingsym/hugo-theme-techdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'exampleSite')
-rwxr-xr-xexampleSite/config.toml65
1 files changed, 48 insertions, 17 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 044d7c4..29c07a1 100755
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -8,14 +8,11 @@ theme = "hugo-theme-techdoc"
hasCJKLanguage = true
metaDataFormat = "yaml"
-pygmentsCodeFences = true
-pygmentsUseClasses = true
-
defaultContentLanguage = "en"
defaultContentLanguageInSubdir= false
enableMissingTranslationPlaceholders = false
-[Params]
+[params]
# Source Code repository section
description = "put your description"
@@ -59,26 +56,60 @@ enableMissingTranslationPlaceholders = false
"blog",
"entry",
"post",
- "posts"
+ "posts",
]
+ # Algolia site search section
+ # See https://www.algolia.com/doc/
+ algolia_search_enable = true
+ algolia_indexName = "hugo-demo-techdoc"
+ algolia_appId = "7W4SAN4PLK"
+ algolia_apiKey = "cbf12a63ff72d9c5dc0c10c195cf9128" # Search-Only API Key
+
# Global menu section
# See https://gohugo.io/content-management/menus/
[menu]
- [[menu.main]]
- name = "Home"
- url = "/"
- weight = 1
+ [[menu.main]]
+ name = "Home"
+ url = "/"
+ weight = 1
- [[menu.main]]
- name = "Twitter"
- url = "https://twitter.com/thingsym"
- weight = 2
+ [[menu.main]]
+ name = "Twitter"
+ url = "https://twitter.com/thingsym"
+ weight = 2
# Markup configure section
# See https://gohugo.io/getting-started/configuration-markup/
[markup]
- [markup.tableOfContents]
- startLevel = 2
- endLevel = 4
- ordered = false
+ defaultMarkdownHandler = "goldmark"
+ [markup.goldmark.renderer]
+ unsafe= true
+ [markup.tableOfContents]
+ startLevel = 2
+ endLevel = 4
+ ordered = false
+
+# Algolia Search configure section
+[outputFormats.Algolia]
+ baseName = "algolia"
+ isPlainText = true
+ mediaType = "application/json"
+ notAlternative = true
+
+[params.algolia]
+ vars = [
+ "title",
+ "summary",
+ "content",
+ "date",
+ "publishdate",
+ "description",
+ "permalink",
+ "keywords",
+ "lastmod",
+ ]
+ params = [
+ "tags",
+ "categories",
+ ]