Skip to content

Commit

Permalink
Merge pull request awslabs#129 from google/geriom-add-taxonomy
Browse files Browse the repository at this point in the history
Add taxonomy sample code
  • Loading branch information
LisaFC authored Sep 23, 2021
2 parents 416debc + 23616ab commit f4d3cda
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
19 changes: 18 additions & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,24 @@ defaultContentLanguageInSubdir = false
# Useful when translating.
enableMissingTranslationPlaceholders = true

disableKinds = ["taxonomy", "taxonomyTerm"]
# Comment out to disable taxonomies in Docsy
# disableKinds = ["taxonomy", "taxonomyTerm"]

# You can add your own taxonomies
[taxonomies]
tag = "tags"
category = "categories"

[params.taxonomy]
# set taxonomyCloud = [] to hide taxonomy clouds
taxonomyCloud = ["tags", "categories"]

# If used, must have same lang as taxonomyCloud
taxonomyCloudTitle = ["Tag Cloud", "Categories"]

# set taxonomyPageHeader = [] to hide taxonomies on the page headers
taxonomyPageHeader = ["tags", "categories"]


# Highlighting config
pygmentsCodeFences = true
Expand Down
2 changes: 2 additions & 0 deletions content/en/docs/Getting started/_index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
categories: ["Examples", "Placeholders"]
tags: ["test","docs"]
title: "Getting Started"
linkTitle: "Getting Started"
weight: 2
Expand Down
2 changes: 2 additions & 0 deletions content/en/docs/Getting started/example-page.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
categories: ["Examples"]
tags: ["test", "sample", "docs"]
title: "Example Page"
linkTitle: "Example Page"
date: 2017-01-05
Expand Down

0 comments on commit f4d3cda

Please sign in to comment.