Skip to content

Commit

Permalink
feat: fix archive_styling (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean1572 authored Jan 11, 2025
1 parent 8d5d013 commit f60c622
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 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
2 changes: 1 addition & 1 deletion _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ <h3 style="margin-bottom: 1px;">
<nav class="home_post_nav">
{% assign year = site.posts[0].date | date: '%Y' %}
<a class="post-link" href="{{ "/archive/" | append: year | relative_url }}">
<h6>To Archive</h6>
<b class="archive-link">To Archive</b>
</a>
</nav>
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
Expand Down
3 changes: 3 additions & 0 deletions _sass/minima/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -276,3 +276,6 @@ table {
}


.archive-link{
font-size: 2em;
}
3 changes: 2 additions & 1 deletion _sass/minima/_home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@
}

.archive-posts {
display: inline-block;
padding: 10px;
}

Expand All @@ -162,5 +163,5 @@
}

.archive-image{
margin-bottom: 20px
margin-bottom: 1px
}

0 comments on commit f60c622

Please sign in to comment.