Giter Club home page Giter Club logo

Comments (5)

switchswap avatar switchswap commented on June 10, 2024 4

I was actually looking to add the same thing and I used @ungeschneuer's link to implement this.

Here's a screenshot on the dark theme (though I made it work for all themes):
firefox_2021-04-04_05-06-12

If it looks appropriate, I'd be happy to submit a PR :)

from hugo-theme-cactus.

ungeschneuer avatar ungeschneuer commented on June 10, 2024 1

This area is not really a support desk but I just saw the question browsing by. Reading time is not implemented in this theme but not that hard to add. You would basically count the words of an entry and divide it by the words per minute a person normally reads. The right template for that would be in cactus/layouts/posts/single.html. Here is a instruction for the code, you would need to add it yourself at the right place. https://kodify.net/hugo/strings/reading-time-text/

from hugo-theme-cactus.

monkeyWzr avatar monkeyWzr commented on June 10, 2024 1

Thank you all! Merged #42

from hugo-theme-cactus.

ungeschneuer avatar ungeschneuer commented on June 10, 2024

Sounds interesting. Would be probably best to make it optional via variable in the config file.

from hugo-theme-cactus.

switchswap avatar switchswap commented on June 10, 2024

Ah, I actually did that too via a showReadTime boolean.

Edit: I just created a PR @ #42

from hugo-theme-cactus.

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.