Multilingual dates in Hugo

Edit: Since Hugo version 0.87, it is possible to localize dates without the process described below, see the Release Notes. Once you set a language, dates are localized accordingly (see the official documentation). While building this website with Hugo, I wanted to show the date of posts in German or English. However, this is currently (Hugo version 0.61) not easily possible. Therefore, I want to present my solution here. The goal In my case, which will serve as the example, the website has two languages: German and English....

December 12, 2019 · 3 min · 450 words · Philipp Fischbeck

Hello world!

It is done - pfischbeck.de is online. I want to use this site to document my experiences, especially in the digital world, and share the gained knowledge. While looking for the right tools for such a site, I soon landed on Hugo, a Go framework for generating static websites. Using static websites, especially with Hugo, comes with several advantages: Fast generation of the whole website (few milliseconds) Simple deployment without dependencies on the server Built-in support for multilingual sites Extensive template support that is easily adjusted Easy post creation in markdown format I am pleased with my first experiences with this framework....

December 8, 2019 · 1 min · 129 words · Philipp Fischbeck