-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
35 lines (32 loc) · 1.03 KB
/
index.html
File metadata and controls
35 lines (32 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
28
29
30
31
32
33
34
35
---
layout: default
title: Yaodong Zhao
description: "Technical articles on Ruby, Rails, AI coding tools, and software engineering by Yaodong Zhao."
---
{% assign posts = site.posts | sort: "created_date" | reverse %}
<section class="content-card">
<header class="mb-6">
<h2>Recent Posts</h2>
</header>
{% if posts.size > 0 %}
<div class="post-list">
{% for post in posts limit:10 %}
<article class="post-card">
<header class="post-card-header">
<a href="{{ post.url | relative_url }}" class="post-card-title">
{{ post.title }}
</a>
<time datetime="{{ post.created_date | date: '%Y-%m-%d' }}">
{{ post.created_date | date: "%b %d, %Y" }}
</time>
</header>
<p class="post-card-excerpt">
{% if post.excerpt != post.content %}{{ post.excerpt | strip_html }}{% else %}{{ post.content | strip_html | truncatewords: 100 }}{% endif %}
</p>
</article>
{% endfor %}
</div>
{% else %}
<p class="meta">No posts found.</p>
{% endif %}
</section>