/
index.html
91 lines (82 loc) · 2.08 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{% extends "base.html" %}
{% block title %}Home{% endblock %}
{% block head %}
<!-- <link rel="modulepreload" href="/render.js"> -->
<!-- <link rel="modulepreload" href="/lit-html/lit-html.js"> -->
<!-- <link rel="modulepreload" href="/lit-html/lib/repeat.js"> -->
<style>
.posts-list {
list-style: none;
padding: 0;
margin: 0;
margin-top: calc(var(--content-padding) * 3);
}
.posts-list li {
padding: var(--content-padding) 0;
}
.posts-list a {
text-decoration: none;
}
.posts-list .post-title {
margin-top: 0;
}
#avatar-container {
border-radius: 50%;
height: 100px;
width: 100px;
padding: 4px;
margin-right: var(--content-padding);
flex-shrink: 0;
}
.avatar {
background: url(https://avatars2.githubusercontent.com/u/238208?v=3&s=460) no-repeat 50% 50%;
background-size: contain;
border-radius: inherit;
height: 100%;
width: 100%;
}
#me h1 {
margin-bottom: 0;
}
#me summary {
color: var(--md-grey-primary);
}
</style>
{% endblock %}
{% block content %}
<section>
<div id="me" class="layout horizontal vcenter">
<div id="avatar-container" class="shadow">
<div class="avatar" title="sup"></div>
</div>
<div>
<h1>Eric Bidelman</h1>
<summary>Frontend Engineer at Google working on the Chrome. Enjoy the ramblings.</summary>
</div>
</div>
<ul class="posts-list">
{%- for post in posts | limit(5) %}
<li class="post">
<div class="secondary-text">{{post.data.publishedStr}}</div>
<h2 class="post-title">
{%- if 'medium.com' in post.href %}
<img src="/img/icons/medium.svg" class="icon medium-icon" title="Posted on Medium" alt="Medium post">
{%- endif %}
<a href="{{post.href}}">{{post.data.title}}</a>
</h2>
<div class="post-summary">{{post.excerpt | safe | striptags(true) | truncate(200) }}</div>
</li>
{%- else %}
<li>No posts yet!</li>
{%- endfor %}
</ul>
<hr>
<p class="layout horizontal end">
<a href="/posts">More articles →</a>
</p>
</section>
{% endblock %}
{% block scripts %}
<!-- <script type="module" src="main.js"></script> -->
<!-- <script nomodule src="main.bundle.js"></script> -->
{% endblock %}