Skip to content

Commit

Permalink
Add taxonomy sample code
Browse files Browse the repository at this point in the history
Enable taxonomoy in `config.toml` and add tags and categories to the
FrontMatter in the "Getting Started" docs.
  • Loading branch information
geriom committed Sep 3, 2021
1 parent 416debc commit 23616ab
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 23616ab

Please sign in to comment.