chipzoller / hugo-clarity

A theme for Hugo based on VMware Clarity
Other
577 stars 262 forks source link

[Bug] There is a hard code text display in related.html #461

Open imjokey opened 6 months ago

imjokey commented 6 months ago

I confirm:

Hugo version

0.123.7

Where is this bug showing up?

In the browser: Hugo builds the site, but something doesn't look right.

Operating system

macOS 14.1.2

Browser (if applicable)

Version 122.0.6261.94 (Official Build) (arm64)

Current behavior

The Chinese translation field series_posts has been provided, but the text display at the end of the article is still "Posts in this series"

Expected behavior

I expect the relevant pages to have the correct translation text available.

Steps to reproduce

I reviewed relevant code in /layouts/partials/related.html, I found there is a hard code h2 text about the 'series_posts' translator field.

Relevant log output

No response

Related code

image

Preferred solution

I hope I can fix it with a translator placeholder.

Other information

No response