Skip to content

Commit

Permalink
Update index page style
Browse files Browse the repository at this point in the history
  • Loading branch information
yaodong committed Sep 10, 2024
1 parent fe269e5 commit 591d81a
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@ <h1 class="flex space-x-1 items-center">
</div>
{% assign posts = site.posts | where: "category", "notes" | sort: "updated_date" | reverse | slice: 0, 10 %}
{% for post in posts %}
<div class="flex flex-col space-y-3">
<div class="flex flex-col space-y-1 bg-white p-3 shadow rounded">
<div class="flex space-x-1 items-center">
<div class="flex space-x-2 items-start">
<span>{% include post-stage.html stage=post.stage %}</span>
<h2><a class="text-xl font-semibold" href="{{ post.url }}">{{ post.title }}</a></h2>
</div>
<div class="text-stone-700 pl-7">
<div class="text-stone-700 pl-8">
{{ post.excerpt }}
</div>
</div>
</div>
{% endfor %}
</div>

Expand All @@ -33,16 +35,18 @@ <h1 class="flex space-x-1 items-center">
</h1>
<p class="text-stone-500">Some random rabbit holes I fell into.</p>
</div>
{% assign posts = site.posts | where: "category", "dives" | sort: "updated_date" | reverse | slice: 0, 10 %}
{% for post in posts %}
{% assign posts = site.posts | where: "category", "dives" | sort: "created_date" | reverse | slice: 0, 10 %}
<div class="flex flex-col space-y-3">
{% for post in posts %}
<div class="flex flex-col space-y-1 bg-white p-3 shadow rounded">
<div class="flex space-x-1 items-center">
<div class="flex space-x-2 items-start">
<span>{% include post-stage.html stage=post.stage %}</span>
<h2><a class="text-xl font-semibold" href="{{ post.url }}">{{ post.title }}</a></h2>
</div>
<div class="text-stone-700 pl-7">
<div class="text-stone-700 pl-8">
{{ post.excerpt }}
</div>
</div>
{% endfor %}
{% endfor %}
</div>
</div>

0 comments on commit 591d81a

Please sign in to comment.