Skip to content

Commit

Permalink
feat: fix archive_styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean1572 committed Jan 11, 2025
1 parent dde4971 commit 1a5f848
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _layouts/archive.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
layout: default
---
<div class="grid-x">
<div class="medium-4 large-8 cell archive-posts">
<div class="grid-x grid-margin-x">
<div class="cell auto archive-posts">
<h1>Archive of posts from {{ page.date | date: "%Y" }}</h1>

<ul class="posts">
{% for post in page.posts %}
<li class="no-list archive-posts">
<a class="post-link archive-post-link" href="{{ post.url | relative_url }}">
<h3 class="archive-post-title archive-post-link">{{ post.title }}</h3>
<h2 class="archive-post-title archive-post-link">{{ post.title }}</h2>
</a>
<p>Posted on {{ post.date | date: "%b %-d, %Y" }}</p>
{%- if post.featuredImage -%}
Expand Down Expand Up @@ -43,7 +43,7 @@ <h3 class="archive-post-title archive-post-link">{{ post.title }}</h3>
{% endfor %}
</ul>
</div>
<div class="medium-8 large-4 cell archive-years">
<div class="cell shrink archive-years">
<!-- https://nithinbekal.com/posts/jekyll-posts-by-year/ -->
{% assign years = site.posts
| group_by_exp: "post", "post.date | date: '%Y'"
Expand Down

0 comments on commit 1a5f848

Please sign in to comment.