Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add taxonomy sample code #129

Merged
merged 1 commit into from
Sep 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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