-
Notifications
You must be signed in to change notification settings - Fork 59
/
index.html
47 lines (40 loc) · 1.27 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
layout: blog
title: Bazel Blog
---
{% for post in paginator.posts %}
<div class="blog-post">
<h1 class="blog-post-title"><a href="{{ post.url }}">{{ post.title }}</a></h1>
<div class="blog-post-meta">
<span class="text-muted">
{% include byline.html authors=post.authors date=post.date %}
</span>
</div>
<p>{{ post.excerpt | strip_html }}</p>
{% assign words = post.content | number_of_words %}
{% comment %}
According to https://en.wikipedia.org/wiki/Words_per_minute, the
average person can read about 180 WPM.
{% endcomment %}
{% assign minutes = words | divided_by:180 %}
<div class="blog-post-meta">
<span class="text-muted">
<a href="{{ post.url }}">Continue reading
{% if minutes <= 1 %}
(about 1 minute)
{% else %}
(about {{ minutes }} minutes)
{% endif %}
</a>
{% if site.enable_comments %}
·
<a href="{{ post.url }}#disqus_thread">
<span class="disqus-comment-count"
data-disqus-url="{{ post.url | prepend: site.blog_site_url }}">Comments</span>
</a>
{% endif %}
</span>
</div>
</div>
{% endfor %}
{% if site.enable_comments %}<script id="dsq-count-scr" src="//googlebazel.disqus.com/count.js" async></script>{% endif %}