Skip to content

bug: Grammar issue with reading time #870

@soonernotfaster

Description

@soonernotfaster

Expected Behavior

Enabling show_reading_time for en language code displays reading time as 3 minute read

Current Behavior

Reading time is displayed as 3 minutes read.

Possible Solution

Updating grammar in

other = "{{ .Count }} minutes read"
would resolve the issue.

Steps to Reproduce

  1. In a site that has blog posts
  2. Set params.show_reading_time = true in config.toml
  3. Start dev server
  4. Go to any post with browser language set to en
  5. See reading time is incorrectly pluralized

The bigger picture (we need context)

N/A

Hugo Config

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions