Skip to content

Commit

Permalink
medium.com like "X min read" feature
Browse files Browse the repository at this point in the history
  • Loading branch information
mstreuhofer committed Jan 2, 2015
1 parent 7792e32 commit 31e9eca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion templates/_includes/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ <h1 class="entry-title">
{% else %}
<h1 class="entry-title">{{ article.title|striptags }}</h1>
{% endif %}
<p class="meta">{% include '_includes/article_time.html' %}</p>
<p class="meta">
{% include '_includes/article_time.html' %}
&ndash; &#128339; {% include '_includes/article_stats.html' %}
</p>
</header>

{% if index %}
Expand Down
1 change: 1 addition & 0 deletions templates/_includes/article_stats.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
+{{ article.stats['read_mins'] }} min read
1 change: 1 addition & 0 deletions templates/archives.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ <h1><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1>
<a class='category' href='{{ SITEURL }}/{{ article.category.url }}'>{{ article.category }}</a>
{{ tag }}
</span>
&ndash; &#128339; {% include '_includes/article_stats.html' %}
</footer>
</article>
{% endfor %}
Expand Down

0 comments on commit 31e9eca

Please sign in to comment.