Add reading time

Add read more link to excerpt
Refresh some icons
This commit is contained in:
2019-01-20 22:09:14 +00:00
parent 572d7d3cbc
commit 28fe24e9e1
8 changed files with 42 additions and 5 deletions

View File

@@ -136,3 +136,9 @@ function windycoys_get_podcast_meta($id) {
audio => (String) $item->enclosure['url'],
);
}
function windycoys_get_read_time($words) {
$wpm = 250;
$mins = ceil($words / $wpm);
return $mins;
}