Skip to content

Commit

Permalink
fix spacing in dates
Browse files Browse the repository at this point in the history
  • Loading branch information
Paula Mendez committed Aug 30, 2022
1 parent 3946500 commit 3538daf
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion _layouts/archive_ly.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
---
layout: default
---

<style>
#date {
font-size: .8em;
margin-top: 3px;
margin-right: 10px;
min-width: 50px;
width: 50px;
overflow: hidden;
white-space: nowrap;
height: 21px;
}

</style>
<h1>Archive</h1>
{% assign years = "2022,2021,2022,2019,2018" | split:',' %}

@@ -12,9 +26,13 @@ <h2 id="y{{post.date | date: "%Y"}}">{{ currentdate }}</h2>
<ul style="list-style: none;">
{% assign date = currentdate %}
{% endif %}
<li>
<!-- <li>
<tab></tab><a href="{{ post.url }}">{{ post.title }}</a> -
<small><span class="post-meta">{{ post.date | date: "%b %-d" }}</span></small>
</li> -->
<li style="display: flex;">
<date id="date"><time>{{ post.date | date: "%b %-d" }}</time></date>
<a href="{{ post.url }}">{{ post.title }}</a>
</li>
{% if forloop.last %}
</ul>

0 comments on commit 3538daf

Please sign in to comment.