97f9079fef
feat: reading time
34 lines
1016 B
HTML
34 lines
1016 B
HTML
---
|
|
layout: default
|
|
---
|
|
<div class="post">
|
|
|
|
<div class="post-header">
|
|
<h1 class="post-title">{{ page.title }}</h1>
|
|
<p class="post-meta">
|
|
<span>{{ page.date | date: "%b %-d, %Y" }}</span>
|
|
{% if page.author %} • <span>{{ page.author }}</span>{% endif %}
|
|
{% if page.meta %} • <span>{{ page.meta }}</span>{% endif %}
|
|
• <span>Reading time: {{ content | reading_time }}</span>
|
|
</p>
|
|
</div>
|
|
|
|
<article class="post-content">
|
|
{{ content }}
|
|
</article>
|
|
|
|
{% include share.html %}
|
|
<div id="disqus_thread"></div>
|
|
<script type="text/javascript">
|
|
var disqus_shortname = 'dibaiee';
|
|
|
|
(function() {
|
|
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
|
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
|
})();
|
|
</script>
|
|
|
|
<script src="/js/heading-links.js"></script>
|
|
</div>
|