Skip to content

Commit edc565f

Browse files
authored
Merge pull request #151 from jcdcdev/dev/v15
15.0.18
2 parents 5bcea10 + 687ee13 commit edc565f

File tree

2 files changed

+5
-41
lines changed

2 files changed

+5
-41
lines changed

.github/README.md

Lines changed: 2 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -18,48 +18,11 @@ The following editors are currently supported:
1818
- Textstring
1919
- Textarea
2020

21-
> [!IMPORTANT]
22-
> Version 15 will only receive security updates and no new features.
21+
> [!WARNING]
22+
> Version 15 is no longer supported and is End of Life (EOL).
2323
2424
> Please review the [security policy](https://github.com/jcdcdev/jcdcdev.Umbraco.ReadingTime?tab=security-ov-file#supported-versions) for more information.
2525
26-
## Quick Start
27-
28-
1. Install the [NuGet package](https://www.nuget.org/packages/jcdcdev.Umbraco.ReadingTime) in your Umbraco CMS website project.
29-
```
30-
dotnet add package jcdcdev.Umbraco.ReadingTime
31-
```
32-
2. Add the Reading Time data type to a document type. You can configure:
33-
- `Words per minute` (default is 200)
34-
- `Min Unit` (default is Minute)
35-
- `Max Unit` (default is Minute)
36-
3. Save and publish content.
37-
4. Reading Time will display in the backoffice
38-
39-
### Using the value in your templates
40-
41-
In your template, you can accessing the Reading Time property value like any other property:
42-
43-
```html
44-
@Model.ReadingTime.DisplayTime()
45-
```
46-
47-
## Configuration
48-
49-
You can change the average words per minute in the data type settings.
50-
51-
When creating a new data type, the default will be 200 words per minute.
52-
53-
## Extending
54-
55-
The `DisplayTime` method will format the reading time as a string using [Humanizer](https://github.com/Humanizr/Humanizer). This supports variants, meaning the reading time will be displayed based on the pluralisation rules of the current culture (e.g. "1 minute", "2 minutes", "0 minuter").
56-
57-
Min and max `TimeUnit` values are derived from the Data Type settings. The below example shows how you can ensure only seconds are displayed.
58-
59-
```csharp
60-
Model.ReadingTime.DisplayTime(minUnit: TimeUnit.Second, maxUnit: TimeUnit.Second)
61-
```
62-
6326
## Contributing
6427

6528
Contributions to this package are most welcome! Please visit the [Contributing](https://github.com/jcdcdev/jcdcdev.Umbraco.ReadingTime/contribute) page.

SECURITY.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@ The following table outlines the versions of the project that are currently supp
1010
| Package Version | Umbraco Version | Security Phase Start | End of Life |
1111
| ---------------------------------------------------------------------------------- | --------------- | -------------------- | ----------- |
1212
| [13.x](https://github.com/jcdcdev/jcdcdev.Umbraco.ReadingTime/tree/v13) | 13 | 2025-12-14 | 2026-12-14 |
13-
| [15.x](https://github.com/jcdcdev/jcdcdev.Umbraco.ReadingTime/tree/v15) | 15 | 2025-08-14 | 2025-11-14 |
14-
| [16.x](https://github.com/jcdcdev/jcdcdev.Umbraco.ReadingTime/tree/v16) | 16 | 2026-03-12 | 2026-06-12 |
13+
| [16.x](https://github.com/jcdcdev/jcdcdev.Umbraco.ReadingTime/tree/v16) | 16 | 2026-03-12 | 2026-06-12 |
14+
| [17.x](https://github.com/jcdcdev/jcdcdev.Umbraco.ReadingTime/tree/v17) | 17 | 2027-11-27 | 2028-11-27 |
1515
## Unsupported Versions
1616

1717
| Package Version | Umbraco Version | End of Life |
1818
| ---------------------------------------------------------------------------------- | --------------- | ----------- |
1919
| [10.x](https://github.com/jcdcdev/jcdcdev.Umbraco.ReadingTime/tree/v10) | 10 | 2025-06-16 |
2020
| [12.x](https://github.com/jcdcdev/jcdcdev.Umbraco.ReadingTime/tree/v12) | 12 | 2024-06-29 |
2121
| [14.x](https://github.com/jcdcdev/jcdcdev.Umbraco.ReadingTime/tree/v14) | 14 | 2025-05-30 |
22+
| [15.x](https://github.com/jcdcdev/jcdcdev.Umbraco.ReadingTime/tree/v15) | 15 | 2025-11-14 |
2223

2324

2425
## Future Support

0 commit comments

Comments
 (0)