pinosaur
/
pinopress.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
styles and templates
[pinopress.git]
/
modules
/
readingtime
diff --git
a/modules/readingtime
b/modules/readingtime
index
7983314
..
b3ef98f
100755
(executable)
--- a/
modules/readingtime
+++ b/
modules/readingtime
@@
-7,8
+7,8
@@
## READING_TIME in minutes
## config vars
## READING_TIME in minutes
## config vars
-wordsPerMinute=2
5
0
+wordsPerMinute=2
0
0
# first clean special symbols and lines with whitespace
wordcount=`sed -e 's/[^A-Za-z0-9 ]//g' -e '/^\s*$/d' "$1" | wc -w`
# first clean special symbols and lines with whitespace
wordcount=`sed -e 's/[^A-Za-z0-9 ]//g' -e '/^\s*$/d' "$1" | wc -w`
-export READING_TIME=$(expr $(expr $wordcount
+ $wordsPerMinute) / $wordsPerMinute
)
+export READING_TIME=$(expr $(expr $wordcount
/ $wordsPerMinute) + 1
)