You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -26,45 +27,27 @@ The following editors are currently supported:
26
27
dotnetaddpackagejcdcdev.Umbraco.ReadingTime
27
28
```
28
29
29
-
## Quick Start
30
-
31
-
1. Install the NuGet package
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
30
## Configuration
48
31
49
32
You can change the average words per minute in the data type settings.
50
33
51
34
When creating a new data type, the default will be 200 words per minute.
52
35
53
-
## Extending
36
+
## Security
54
37
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").
38
+
> [!NOTE]
39
+
> This project takes security and support seriously.
40
+
> Please visit the [Security](https://github.com/jcdcdev/jcdcdev.Umbraco.ReadingTime?tab=security-ov-file) page for more information.
41
+
56
42
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.
Contributions to this package are most welcome! Please visit the [Contributing](https://github.com/jcdcdev/jcdcdev.Umbraco.ReadingTime/contribute) page.
66
47
67
-
## Acknowledgements (Thanks)
48
+
## Acknowledgements
49
+
50
+
Thank you to the following projects and individuals for their contributions. High five, you rock! 🤘🦄
@@ -19,43 +19,18 @@ The following editors are currently supported:
19
19
- Textstring
20
20
- Textarea
21
21
22
-
## Installation
22
+
## Security
23
23
24
-
### Install Package
25
-
26
-
```csharp
27
-
dotnetaddpackagejcdcdev.Umbraco.ReadingTime
28
-
```
29
-
30
-
## Quick Start
31
-
32
-
1. Install the NuGet package
33
-
2. Add the Reading Time data type to a document type. You can configure:
34
-
-`Words per minute` (default is 200)
35
-
-`Min Unit` (default is Minute)
36
-
-`Max Unit` (default is Minute)
37
-
3. Save and publish content.
38
-
4. Reading Time will display in the backoffice
39
-
40
-
### Using the value in your templates
41
-
42
-
In your template, you can accessing the Reading Time property value like any other property:
43
-
44
-
```html
45
-
@Model.ReadingTime.DisplayTime()
46
-
```
47
-
48
-
## Configuration
49
-
50
-
You can change the average words per minute in the data type settings.
51
-
52
-
When creating a new data type, the default will be 200 words per minute.
24
+
This project takes security and support seriously.
25
+
Please visit the [Security](https://github.com/jcdcdev/jcdcdev.Umbraco.ReadingTime?tab=security-ov-file) page for more information.
53
26
54
27
## Contributing
55
28
56
29
Contributions to this package are most welcome! Please visit the [Contributing](https://github.com/jcdcdev/jcdcdev.Umbraco.ReadingTime/contribute) page.
57
30
58
-
## Acknowledgements (Thanks)
31
+
## Acknowledgements
32
+
33
+
Thank you to the following projects and individuals for their contributions. High five, you rock! 🤘🦄
0 commit comments