-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.njk
212 lines (210 loc) · 5.33 KB
/
index.njk
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
---
layout: with_newsletter_cta_bottom.njk
title: Mohit Karekar
---
<style>
.detailedBlog {
display: grid;
position: relative;
grid-template-columns: 1fr 3fr;
padding-bottom: 0.5rem;
}
.detailedBlog:first-child {
border-top: 1px solid #f0f0f0;
}
.blogDate {
font-size: 0.8rem;
color: #666;
flex: 0.5;
border-right: 1px solid #f0f0f0;
text-align: right;
padding-right: 16px;
padding-top: 0.4rem;
}
.blogTitle {
padding-left: 16px;
}
.tag {
margin-right: 5px;
background-color: #f0f0f0;
padding: 2px 4px;
border-radius: 4px;
font-size: 0.8rem;
}
.cloud {
margin-top: 16px;
padding: 12px;
border-radius: 4px;
border: 2px solid;
font-family: Source Code Pro, Menlo, monospace;
font-size: 1rem;
}
.cloud a {
text-decoration: underline;
}
@media only screen and (max-width: 640px) {
.detailedBlog {
grid-template-columns: 1fr;
padding-bottom: 0;
margin-bottom: 1rem;
}
.detailedBlog:first-child {
border-top: none;
}
.blogDate {
display: none;
}
.blogTitle {
padding-left: 0;
width: 100%;
}
/* .blogTitle:before {
content: "";
position: absolute;
top: 0.5rem;
left: -16px;
width: 2px;
height: calc(100% - 0.5rem);
background-color: #dadada;
} */
}
@media (prefers-color-scheme: dark) {
.tag {
background-color: #464646;
color: rgb(255, 209, 209);
}
.blogDate {
color: #999;
border-right: 1px solid #636363;
}
.detailedBlog:first-child {
border-top: 1px solid #636363;
}
}
</style>
<div>
<section>
<div
style="display: flex; justify-content: space-between; align-items: center"
>
<div>
<h1
style="
margin-bottom: 0;
margin-right: 10px;
margin-top: 0;
text-align: left;
"
>
Mohit Karekar
</h1>
<p
style="margin: 0; margin-right: 10px; text-align: left; hyphens: none"
>
senior software engineer
<a href="https://twitter.com/zalandotech">@zalando</a>, loves creating
products for humans and machines
</p>
</div>
<img src="/img/mk_profile.png" width="100" />
</div>
<div
style="
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 10px;
"
>
<div class="tabs">
<a class="tab" href="/posts">Blog</a>
•
<a class="tab" href="/notes">Notes</a>
•
<a class="tab" href="/work">Work</a>
•
<a class="tab" href="/life">Life</a>
•
<a class="tab" href="/about">About</a>
•
<a
class="tab"
target="_blank"
href="https://docs.google.com/document/d/1239BbrB9jy8trrCkwhFwJuxBy8iwHrEd62rVPXk_Zrg/edit?usp=sharing"
>Resume</a
>
</div>
<div style="display: flex">
<a target="_blank" href="https://github.com/mohitk05" rel="me"
><img
class="socialIcon"
alt="github"
style="width: 25px; height: auto"
src="/img/github.png"
/></a>
<a target="_blank" href="https://twitter.com/mohitkarekar"
><img
class="socialIcon"
alt="twitter"
style="width: 25px; height: auto; margin-left: 10px"
src="/img/twitter.png"
/></a>
</div>
</div>
</section>
<div class="cloud">
<p style="margin: 0; font-size: 0.9rem">Top tags</p>
<a href="/tags/about-computing-systems/"
><span>about-computing-systems</span></a
>
<a href="/tags/omscs/"><span>OMSCS</span></a>
<a href="/tags/books/"><span>books</span></a>
</div>
<div class="down">
<h2>Recent posts</h2>
<div class="detailedBlogs">
{%- for post in collections.posts | reverse | slice_n(50) -%}
<article class="detailedBlog">
<div class="blogDate">
<b>{{ post.data.date | dateReadable }}</b>
</div>
<div class="blogTitle">
<h3 style="margin: 0">
{%if post.data.external %}
<a href="{{ post.data.external }}">{{ post.data.title }}</a>
{% else %}
<a href="{{ post.url }}">{{ post.data.title }}</a>
{% endif %}
</h3>
{%if (post.data.tags | tagFilter).length %} {% endif %} {% for tag in
post.data.tags | tagFilter %}
<a href="/tags/{{ tag }}" class="tag">{{ tag }}</a>
{% endfor %}
</div>
{# <br />
#} {# {% if post.data.excerpt %}
<label class="detailedBlog-description">{{ post.data.excerpt }}</label>
{% else %}
<label class="detailedBlog-description">{{
post.data.description
}}</label>
{% endif %} #}
</article>
{%- endfor -%}
</div>
<h4><a href="posts">See all →</a></h4>
<hr />
</div>
<section class="interesting">
<h3>Interesting things I found on the Internet</h3>
<div class="posts">
{%- for c in interesting | reverse -%}
<div class="post">
<a class="postTitle" target="_blank" href="{{ c.url }}">{{
c.title
}}</a>
</div>
{%- endfor -%}
</div>
</section>
</div>