Hey There!
I am building my blog site using HUGO theme Doks.
Categories and Tags page are generated by default, but i want to remove the tags page
Eg. I want to remove website_name/tags but i want to keep website_name/tags/tag_name
How can i do that??
I tried disableKind: [“taxonomy”] but it disables both categories and tags page and sometimes also the blog list page.
Here is my hugo.toml file
title = "ByteBlogs"
baseurl = "https://ByteBlogs.github.io/byteblogs/"
disableAliases = true
disableHugoGeneratorInject = true
enableEmoji = true
enableGitInfo = true
enableRobotsTXT = true
languageCode = "en-US"
paginate = 10
rssLimit = 10
summarylength = 20 # 70 (default)
disableKinds = ["taxonomy"]
ignoreErrors = ["error-disable-taxonomy"]
# Multilingual
defaultContentLanguage = "en"
defaultContentLanguageInSubdir = false
# copyRight = "Copyright (c) 2020-2024 Hyas"
[build.buildStats]
enable = true
[outputs]
home = ["HTML", "RSS", "searchIndex"]
section = ["HTML", "RSS", "SITEMAP"]
[outputFormats.searchIndex]
mediaType = "application/json"
baseName = "search-index"
isPlainText = true
notAlternative = true
# Add output format for section sitemap.xml
[outputFormats.SITEMAP]
mediaType = "application/xml"
baseName = "sitemap"
isHTML = false
isPlainText = true
noUgly = true
rel = "sitemap"
[sitemap]
changefreq = "monthly"
filename = "sitemap.xml"
priority = 0.5
[caches]
[caches.getjson]
dir = ":cacheDir/:project"
maxAge = -1 # "30m"
[taxonomies]
contributor = "contributors"
category = "categories"
tag = "tags"
docs = "docs"
[permalinks]
blog = "/blog/:slug/"
docs = "/docs/:sections[1:]/:slug/"
[minify.tdewolff.html]
keepWhitespace = false
[related]
threshold = 80
includeNewer = true
toLower = false
[[related.indices]]
name = "categories"
weight = 100
[[related.indices]]
name = "tags"
weight = 80
[[related.indices]]
name = "date"
weight = 10
[imaging]
anchor = "Center"
bgColor = "#ffffff"
hint = "photo"
quality = 85
resampleFilter = "Lanczos"