hugo-PaperMod icon indicating copy to clipboard operation
hugo-PaperMod copied to clipboard

Use date/time formatting layouts

Open romainx opened this issue 3 years ago • 1 comments

What does this PR change? What problem does it solve?

It uses the new (from Hugo v0.87.0) date/time formatting layouts feature. Basically it's a predefined alias with the advantages of being standard and localized.

:date_long => June 6, 2018

PR Checklist

  • [ ] This change adds/updates translations and I have used the template present here.
  • [x] I have enabled maintainer edits for this PR.
  • [x] I have verified that the code works as described/as intended.
  • [ ] This change adds a Social Icon which has a permissive license to use it.
  • [x] This change does not include any CDN resources/links.
  • [x] This change does not include any unrelated scripts such as bash and python scripts.
  • [ ] This change updates the overridden internal templates from HUGO's repository.

romainx avatar Sep 16 '22 05:09 romainx

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Sep 16 '22 05:09 sonarqubecloud[bot]

This issue is apparently already tackled with the PR https://github.com/adityatelange/hugo-PaperMod/pull/555 Is something missing?

RoneoOrg avatar Sep 23 '22 05:09 RoneoOrg

Confirmed, the dates are properly localized with

params:
  DateFormat: ":date_long"

in config.yml

RoneoOrg avatar Sep 23 '22 06:09 RoneoOrg

@RoneoOrg Thanks. I understand that the minimum Hugo version is 0.83.0 and this feature is only compliant with 0.87.0. So I'm closing it. Best

romainx avatar Sep 23 '22 17:09 romainx