I've been keeping a list of Statiq Community extensions and uses on the main Discussions list:
- Plugins: https://github.com/orgs/statiqdev/discussions/223
- Themes: https://github.com/orgs/statiqdev/discussions/227
I was reviewing some blog posts and found a few from Jeremy Davis, see Statiq 🏷 tag.
To make this easier to add into my own blog I decided to make a new project: Statiq.Plugins and port the features there.
Adding reading time estimates to blog posts from @ Jeremy Davis
In your appsettings.json
add a new property ReadingSpeed
and set it to your desired value:
"ReadingSpeed": 200
You can then override the input/_header.cshtml
of your theme and place the calculated time after the tags.
<span>~@Model.GetString("ReadingTime") minutes</span>
Example
You can see an example on my test site: https://alexhedley.com/statiqweb-example/posts/1
or
In the future I'm looking to add more functionality. I've raised a number of Issues to track them. If you have any ideas please add your own.
Code
dotnet add package Statiq.Plugins --version #.#.#
Update the version
number (#.#.#
) to the latest release.