-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
27 lines (26 loc) · 1.03 KB
/
Copy pathindex.html
File metadata and controls
27 lines (26 loc) · 1.03 KB
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
---
layout: default
description: "Articles and notes by Markus Weimer about machine learning, AI, software engineering, and home automation."
---
<div class="home">
<h1 class="visually-hidden">Recent posts</h1>
<ul class="posts">
{% for post in site.posts limit:15 %}
<li>
<time class="post-date" datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%b %-d, %Y" }}</time>
<h2><a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h2>
{{ post.excerpt }}
{% capture content_words %}
{{ post.content | number_of_words }}
{% endcapture %}
{% capture excerpt_words %}
{{ post.excerpt | number_of_words }}
{% endcapture %}
{% if excerpt_words != content_words %}
<a href="{{ post.url | prepend: site.baseurl }}">Read more...</a>
{% endif %}
</li>
{% endfor %}
</ul>
<p class="archive-link"><a href="{{ "/archive/" | relative_url }}">Browse all posts in the archive</a></p>
</div>