Skip to content

Commit

Permalink
Merge pull request LeNPaul#10 from jirelations/feature/vertical-date
Browse files Browse the repository at this point in the history
Offset post title
  • Loading branch information
nathangibson committed Apr 3, 2023
2 parents 6593d31 + c4c35ea commit 9a6c945
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/featured-post.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<a href="{{ site.github.url }}{{ post.url }}">
<div class="featured-post" {% if post.image %}style="background-image:url({{ site.github.url }}/assets/img/{{ post.image }})"{% endif %}>
<h2 class="date"><span>{{ post.date | date_to_string }}</span></h2>
<h2><span>{{ post.title }}</span></h2>
<h2 class="post-title"><span>{{ post.title }}</span></h2>
</div>
</a>
</article>
4 changes: 4 additions & 0 deletions _sass/_home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
transform-origin: 1.8em .5em;
}

.featured-post h2.post-title {
left: 10px;
}

.featured-post h2 span {
display: inline-block;
color: white;
Expand Down

0 comments on commit 9a6c945

Please sign in to comment.