File tree Expand file tree Collapse file tree 4 files changed +8
-12
lines changed Expand file tree Collapse file tree 4 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 11<script lang =" ts" >
2- import reading from ' reading-time' ;
3-
42 import { onMount } from ' svelte' ;
53
64 // Environment
1715
1816 // Utils
1917 import { blogTypeDate } from ' $utils/date-formatters' ;
18+ import { readingTime } from ' $lib/utils/reading-time' ;
2019
2120 // Exports
2221
8382
8483 // Local Methods
8584 onMount (() => {
86- readingTimeDuration = reading (` ${document .getElementById (' blog-conent' ).textContent } ` ).text ;
85+ readingTimeDuration = readingTime (` ${document .getElementById (' blog-conent' ).textContent } ` ).time ;
8786 });
8887 </script >
8988
Original file line number Diff line number Diff line change 11<script lang =" ts" >
2- import reading from ' reading-time' ;
3-
42 import { onMount } from ' svelte' ;
53
64 // Environment
1715
1816 // Utils
1917 import { blogTypeDate } from ' $utils/date-formatters' ;
18+ import { readingTime } from ' $lib/utils/reading-time' ;
2019
2120 // Exports
2221
8382
8483 // Local Methods
8584 onMount (() => {
86- readingTimeDuration = reading (` ${document .getElementById (' blog-conent' ).textContent } ` ).text ;
85+ readingTimeDuration = readingTime (` ${document .getElementById (' blog-conent' ).textContent } ` ).time ;
8786 });
8887 </script >
8988
Original file line number Diff line number Diff line change 11<script lang =" ts" >
2- import reading from ' reading-time' ;
3-
42 import { onMount } from ' svelte' ;
53
64 // Environment
1513
1614 // Utils
1715 import { blogTypeDate } from ' $utils/date-formatters' ;
16+ import { readingTime } from ' $lib/utils/reading-time' ;
1817
1918 // Exports
2019
8079
8180 // Local Methods
8281 onMount (() => {
83- readingTimeDuration = reading (` ${document .getElementById (' blog-conent' ).textContent } ` ).text ;
82+ readingTimeDuration = readingTime (` ${document .getElementById (' blog-conent' ).textContent } ` ).time ;
8483 });
8584 </script >
8685
Original file line number Diff line number Diff line change 11<script lang =" ts" >
2- import reading from ' reading-time' ;
3-
42 import { onMount } from ' svelte' ;
53
64 // Environment
1715
1816 // Utils
1917 import { blogTypeDate } from ' $utils/date-formatters' ;
18+ import { readingTime } from ' $lib/utils/reading-time' ;
2019
2120 // Exports
2221 export let title = ' ' ;
8281
8382 // Local Methods
8483 onMount (() => {
85- readingTimeDuration = reading (` ${document .getElementById (' blog-conent' ).textContent } ` ).text ;
84+ readingTimeDuration = readingTime (` ${document .getElementById (' blog-conent' ).textContent } ` ).time ;
8685 });
8786 </script >
8887
You can’t perform that action at this time.
0 commit comments