diff --git a/css/icon.css b/css/icon.css index 9c08e9d..da6a31c 100644 --- a/css/icon.css +++ b/css/icon.css @@ -4,6 +4,11 @@ width: var(--icon-size-md); } +.icon--extra-extra-small { + height: var(--icon-size-xxs); + width: var(--icon-size-xxs); +} + .icon--extra-small { height: var(--icon-size-xs); width: var(--icon-size-xs); diff --git a/css/index.css b/css/index.css index 0dbe817..a0da68f 100644 --- a/css/index.css +++ b/css/index.css @@ -53,6 +53,7 @@ --logo-size-md: 9rem; --logo-size-lg: 10rem; --logo-size-xl: 12rem; + --icon-size-xxs: 0.7rem; --icon-size-xs: 1rem; --icon-size-sm: 1.5rem; --icon-size-md: 2rem; diff --git a/theme/front-page.php b/theme/front-page.php index 4e6e18e..001e8ac 100644 --- a/theme/front-page.php +++ b/theme/front-page.php @@ -17,14 +17,16 @@ $day = date('jS', $date); $date = get_the_date(get_option('date_format'), $post->ID).' at '.get_the_date(get_option('time_format'), $post->ID); $content = (strlen($post->post_excerpt) === 0) ? - strip_tags(substr($post->post_content, 0, 200)).'[...]' : + strip_tags(substr($post->post_content, 0, 200)).' [...]' : $post->post_excerpt; + $words = count(explode(" ", $post->post_content)); $excerpt = array( title => $post->post_title, url => get_permalink($post->ID), content => $content, author => get_the_author_meta('nickname', $post->post_author), comments => $post->comment_count, + words => $words, date => $date, ); echo '
'; diff --git a/theme/functions.php b/theme/functions.php index 10bb664..8e863c5 100644 --- a/theme/functions.php +++ b/theme/functions.php @@ -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; +} diff --git a/theme/icons.php b/theme/icons.php index cb66f72..5ef8597 100644 --- a/theme/icons.php +++ b/theme/icons.php @@ -1,6 +1,9 @@ + + + - + @@ -8,8 +11,11 @@ + + + - + @@ -30,7 +36,7 @@ - + diff --git a/theme/partials/excerpt.php b/theme/partials/excerpt.php index bdda56a..536a4e2 100644 --- a/theme/partials/excerpt.php +++ b/theme/partials/excerpt.php @@ -10,7 +10,12 @@ global $excerpt;
- + ' + . '', + $excerpt['content']); + ?>