Skip to content

[Bug]: Search when including Section Messes up RTL UI #2514

@AFAskar

Description

@AFAskar

Issue Check

  • I have checked existing Issues and I feel this bug has not been raised

Hugo Version Check

  • My Hugo version is within the supported range

Describe the Bug

since Sections aren't localized but are accessed directly in the JS they mess up the search UI when in an RTL language

it shows the {day} &middot {section} {Month} {Year}

To Reproduce

  1. Have an RTL site
  2. go to Rtl site
  3. Search
  4. View Results

Expected Behaviour

{section} &middot {day} {Month} {Year}

Screenshots

Image

Platform

  • OS: Windows
  • Browser: firefox
  • Version:143.0.1

Hugo Version

hugo v0.147.9-29bdbde19c288d190e889294a862103c6efb70bf+extended windows/amd64 BuildDate=2025-06-23T08:22:20Z VendorInfo=gohugoio

Blowfish Version

V2.90.0

Additional Context

possible solutions

since this is more of an upstream hugo problem as you can't localize sections AFAIK
a few possible solutions are:

  1. remove sections entirely
  2. adding a Section parameter to the frontmatter and use that instead , fallback to section if not set

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions