Comments (5)
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):
If it looks appropriate, I'd be happy to submit a PR :)
from hugo-theme-cactus.
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.
Thank you all! Merged #42
from hugo-theme-cactus.
Sounds interesting. Would be probably best to make it optional via variable in the config file.
from hugo-theme-cactus.
Ah, I actually did that too via a showReadTime
boolean.
Edit: I just created a PR @ #42
from hugo-theme-cactus.
Related Issues (20)
- Interest check on a feature: News section on homepage
- Why isn't my site title on my post pages? HOT 2
- The html rendering of the quote tag in markdown file is strange HOT 2
- Multiple Tags HOT 1
- Allow configuration of 'projects' section title
- Modifying the 'table' displayed in markdown to make it more visible.
- h2 tags showing up with extra hash sign
- menu items dissapear HOT 3
- 522 time-out when loading "https://latest.cactus.chat/style.css"
- Google Analytics 4 not working
- Pages load slowly when visiting in China HOT 1
- Why is cactus.chat/cactus.js being loaded even if I've disabled comments? HOT 1
- The theme and a table do not change as expected. HOT 1
- KaTeX support instead of MathJax
- Would a fixed top bar be hard to implement?
- For those who want to add extra items on index page(home page) HOT 1
- enhancement: Support for custom icon HOT 3
- Missing `crossorigin` attribute for CSS link with integrity attribute HOT 1
- Tags design seems too big HOT 4
- Font change HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo-theme-cactus.