forked from lankaapura/lankapura.net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
205 lines (166 loc) · 8.67 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
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
---
---
<!-- based on https://codepen.io/marcobiedermann/pen/qJilF -->
<html lang="{{ site.locale | slice: 0,2 | default: "en" }}" class="no-js">
<head>
<title>Priyantha Lankapura</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/fontawesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/solid.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/brands.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway:400">
<link rel="stylesheet" href="/assets/css/home.css">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-62343349-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-62343349-1');
</script>
</head>
<body>
{% if page.author and site.data.authors[page.author] %}
{% assign author = site.data.authors[page.author] %}
{% else %}
{% assign author = site.author %}
{% endif %}
<div class="profile-card">
<div itemscope itemtype="http://schema.org/Person">
<!-- {% if author.avatar %}
<div class="author__avatar">
{% if author.avatar contains "://" %}
{% assign author_src = author.avatar %}
{% else %}
{% assign author_src = author.avatar | absolute_url %}
{% endif %}
{% if author.home %}
{% if author.home contains "://" %}
{% assign author_link = author.home %}
{% else %}
{% assign author_link = author.home | absolute_url %}
{% endif %}
<a href="{{ author_link }}">
<img src="{{ author_src }}" alt="{{ author.name }}" itemprop="image">
</a>
{% else %}
<img src="{{ author_src }}" alt="{{ author.name }}" itemprop="image">
{% endif %}
</div>
{% endif %} -->
<div class="author__content">
{% if author.home %}
<a href="{{ author_link }}"><h3 class="author__name" itemprop="name">{{ author.name }}</h3></a>
{% else %}
<h3 class="author__name" itemprop="name">{{ author.name }}</h3>
{% endif %}
{% if author.bio %}
<p class="author__bio" itemprop="description">
{{ author.bio }}
</p>
{% endif %}
</div>
<div class="author__urls-wrapper">
<ul class="social author__urls social-icons">
{% if author.blog %}
<li>
<a href="{{ author.blog }}" itemprop="sameAs">
<i class="fas fa-pen-square" aria-hidden="true"></i>
</a>
</li>
{% endif %}
{% if author.email %}
<li>
<a href="mailto:{{ author.email }}">
<meta itemprop="email" content="{{ author.email }}" />
<i class="fas fa-envelope-square" aria-hidden="true"></i>
</a>
</li>
{% endif %}
{% if author.twitter %}
<li>
<a href="https://twitter.com/{{ author.twitter }}" itemprop="sameAs">
<i class="fab fa-twitter-square" aria-hidden="true"></i>
</a>
</li>
{% endif %}
{% if author.linkedin %}
<li>
<a href="https://www.linkedin.com/in/{{ author.linkedin }}" itemprop="sameAs">
<i class="fab fa-linkedin" aria-hidden="true"></i>
</a>
</li>
{% endif %}
{% if author.github %}
<li>
<a href="https://github.com/{{ author.github }}" itemprop="sameAs">
<i class="fab fa-github-square" aria-hidden="true"></i>
</a>
</li>
{% endif %}
{% if author.stackoverflow %}
<li>
<a href="https://www.stackoverflow.com/users/{{ author.stackoverflow }}" itemprop="sameAs">
<i class="fas fa-stack-overflow" aria-hidden="true"></i>
</a>
</li>
{% endif %}
</ul>
</div>
</div>
{% assign f_post = site.posts.first %}
{% if f_post %}
<div class="blog__latest" itemprop="text">
<div class="blog__latest__header">
Latest Blog Post
</div>
<div class="blog__content">
{% if f_post.title %}
<a href="{{ root_url }}{{ f_post.url }}">{{ f_post.title | markdownify | strip_html | strip_newlines | escape_once }}</a>
{% endif %}
{% if f_post.description %}
<p>{{ f_post.description | markdownify | strip_html | strip_newlines | escape_once }}</p>
{% endif %}
{% if f_post.date %}
<p>{{ f_post.date | date: " %B %d, %Y " }}</p>
{% endif %}
{% if f_post.last_modified_at %}
<p>{{ f_post.last_modified_at | date: " %B %d, %Y " }}</p>
{% endif %}
</div>
<!-- <div class='slider'>
<div class='slide1'>
<a class="twitter-timeline"
data-width="400"
data-height="200"
data-chrome="noheader nofooter noborders noscrollbar transparent"
data-tweet-limit="1"
href="https://twitter.com/PSLankapura?ref_src=twsrc%5Etfw"></a>
<script
async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</div>
<div class='slide2'>
<div class="blog__latest__header">
Latest Blog Post
</div>
<div class="blog__content">
{% if f_post.title %}
<a href="{{ root_url }}{{ f_post.url }}">{{ f_post.title | markdownify | strip_html | strip_newlines | escape_once }}</a>
{% endif %}
{% if f_post.description %}
<p>{{ f_post.description | markdownify | strip_html | strip_newlines | escape_once }}</p>
{% endif %}
{% if f_post.date %}
<p>{{ f_post.date | date: " %B %d, %Y " }}</p>
{% endif %}
{% if f_post.last_modified_at %}
<p>{{ f_post.last_modified_at | date: " %B %d, %Y " }}</p>
{% endif %}
</div>
</div>
</div> -->
</div>
</div>
{% endif %}
</div> <!-- end profile-card -->
</body>
</html>