Mitrichius / hugo-theme-anubis

Anubis is a simple minimalist theme for Hugo blog engine
https://hugo-theme-anubis.netlify.app/
MIT License
397 stars 152 forks source link

Surface ReadingTime in default template #207

Closed williewillus closed 10 months ago

williewillus commented 10 months ago

As title, just would be nice to have this https://gohugo.io/methods/page/readingtime/ show up above the Table of Contents, so I don't have to patch the theme.

Mitrichius commented 10 months ago

Hi, I don't like realization of reading time in Hugo with i18n — need to support all kind of forms (minute/minutes/other forms in different languages). It's hard to make it universally correct.

As a easiest workaround, you can copy themes/anubis/layouts/partials/toc.htmlfile to layouts/partials/toc.html and add reading time to it.