google / docsy

A set of Hugo doc templates for launching open source content.
https://docsy.dev
Apache License 2.0
2.58k stars 894 forks source link

Added taxonomies LinkedTitle #2046

Open TonyWu1995 opened 2 months ago

TonyWu1995 commented 2 months ago

issue #2045

Before:

image

After:

image

image

TonyWu1995 commented 1 month ago

@fekete-robert @deining @TonyWu1995 - won't this break if there is no .LinkTitle? Have you tested this scenario?

The LinkTitle method returns the linkTitle field as defined in front matter, falling back to the value returned by the Title method. --from: LinkTitle

If there is no linktitle, the tag will be like this:

image

because the frontmatter is defined like this:

---
title: Artificial Intelligence
---