Giter VIP home page Giter VIP logo

Comments (2)

htr3n avatar htr3n commented on August 24, 2024 3

Thanks @jdayton3 for reporting the issue and @martinkaptein for your hints. I spent some time to look into the code and Hugo and found some interesting related issues. That is, date/time formatting in Hugo based on Golang requires a rather smart but strange convention as mentioned here and here. In summary, the month must be Jan, January, 01 or 1, and the day must be 02 or 2, year must be 2006, and so on.

I went through the code of hyde-hyde and fixed most of them in the most recent commit. Please check it out. You can change the dateformat to "Jan 2, 2006" in config.toml as @martinkaptein suggested. The them code now supports the default format "Jan 02, 2006" anyway.

from hyde-hyde.

martinkaptein avatar martinkaptein commented on August 24, 2024 1

In your config.toml try changing the dateformat under [params] to dateformat = "Jan 2, 2006" (instead of "Jan 1, 2006"). For me, this fixed the issue.

from hyde-hyde.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.