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 '