diff --git a/sass/parts/_misc.scss b/sass/parts/_misc.scss index 6b93625..1557e1c 100644 --- a/sass/parts/_misc.scss +++ b/sass/parts/_misc.scss @@ -127,3 +127,9 @@ table tbody tr:nth-child(even) { .meta span::before { content: attr(reading-time); } + +.meta span.reading-time span.word-count { + display: inline-block; + position: relative; + width: 61em; /* adjust this value as needed */ +} diff --git a/templates/macros/macros.html b/templates/macros/macros.html index 9da8e94..9eb9d9f 100644 --- a/templates/macros/macros.html +++ b/templates/macros/macros.html @@ -119,11 +119,10 @@ • {% endif %} - {% if page.taxonomies and page.taxonomies.tags %} {% - endif %} + {{ page.reading_time }} min read{% if page.taxonomies and page.taxonomies.tags %} • {%endif %} {% if page.taxonomies and page.taxonomies.tags %} -