🥚 refactor: show word count as reading time tooltip
This commit is contained in:
parent
d9cd64e5a4
commit
9ed4034260
@ -127,3 +127,9 @@ table tbody tr:nth-child(even) {
|
|||||||
.meta span::before {
|
.meta span::before {
|
||||||
content: attr(reading-time);
|
content: attr(reading-time);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.meta span.reading-time span.word-count {
|
||||||
|
display: inline-block;
|
||||||
|
position: relative;
|
||||||
|
width: 61em; /* adjust this value as needed */
|
||||||
|
}
|
||||||
|
@ -119,11 +119,10 @@
|
|||||||
•
|
•
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<span reading-time="{{ page.reading_time }} min read" word-count="{{ page.word_count }} words">{% if page.taxonomies and page.taxonomies.tags %} {%
|
<span title="{{ page.word_count }} words">{{ page.reading_time }} min read{% if page.taxonomies and page.taxonomies.tags %} • {%endif %}</span>
|
||||||
endif %}</span>
|
|
||||||
|
|
||||||
{% if page.taxonomies and page.taxonomies.tags %}
|
{% if page.taxonomies and page.taxonomies.tags %}
|
||||||
<nav class="nav tags"> • Categories:
|
<nav class="nav tags">Categories:
|
||||||
{% for tag in page.taxonomies.tags %}
|
{% for tag in page.taxonomies.tags %}
|
||||||
<a href={{ get_taxonomy_url(kind='tags' , name=tag) | safe }}>{{ tag }}</a>{% if not loop.last %},
|
<a href={{ get_taxonomy_url(kind='tags' , name=tag) | safe }}>{{ tag }}</a>{% if not loop.last %},
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user