/
index.html
80 lines (78 loc) 路 2.82 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
---
layout: default
title: Risan Bagja's Blog - Journal of a Passionate Coder
custom_title: true
canonical: false
---
<section class="home-section">
<article class="home-about">
<h1>Welcome to My Blog!</h1>
<p>
My name is Risan Bagja. I code for fun, seriously.
I enjoy spending time writing clean and maintainable code.
This blog serves as a journal to document things I learn as an avid
programmer. Here you'll find articles, tutorials, and some quick
tips about programming.
</p>
</article>
</section>
<section class="home-section">
<article class="post-list">
<h2 class="home-section-title">
<span role="img" aria-label="green textbook">馃摋</span>
Latest Blog Posts
</h2>
<ul>
{%- assign sorted_posts = site.blog | sort: "date" | reverse -%}
{%- for post in sorted_posts limit:6 -%}
{%- if post.id == "/blog/index" -%}
{%- continue -%}
{%- else -%}
<li class="post-list-item">
<a class="post-list-link" href="{{ post.url | absolute_url }}">
{{ post.title | escape }}
</a>
<span class="post-list-date">
{{ post.date | date: "%d %b %Y" }}
</span>
</li>
{%- endif -%}
{%- endfor -%}
</ul>
<nav class="see-all-container">
<a class="button" href="{{ '/blog/' | absolute_url }}">
See All Posts →
</a>
</nav>
</article>
</section>
<section class="home-section">
<article class="post-list">
<h2 class="home-section-title">
<span role="img" aria-label="fire">馃敟</span>
Latest Programming Tips
</h2>
<ul>
{%- assign sorted_posts = site.tips | sort: "date" | reverse -%}
{%- for post in sorted_posts limit:6 -%}
{%- if post.id == "/tips/index" -%}
{%- continue -%}
{%- else -%}
<li class="post-list-item">
<a class="post-list-link" href="{{ post.url | absolute_url }}">
{{ post.title | escape }}
</a>
<span class="post-list-date">
{{ post.date | date: "%d %b %Y" }}
</span>
</li>
{%- endif -%}
{%- endfor -%}
</ul>
<nav class="see-all-container">
<a class="button" href="{{ '/tips/' | absolute_url }}">
See All Tips →
</a>
</nav>
</article>
</section>