Skip to content

Commit

Permalink
Display author on posts
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Mitchell committed Dec 15, 2021
1 parent b0457bb commit ff240f9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
4 changes: 3 additions & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
<div class="post__headline common-headline">
<h5>{{ page.date | date: '%A, %B %-d, %Y' }}</h5>
<h2>{{ page.title | strip_html }}</h2>
{% if page.author %}
<h6>Posted by {{ page.author }}</h6>
{% endif %}
</div>

<div class="post__content common-content common-content--post">
{{ content }}
</div>
Expand Down
20 changes: 18 additions & 2 deletions _sass/modules/_post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@
text-align: center;

h5 {
padding-bottom: 13px;
margin-bottom: 16px;
}

h6 {
font-weight: 400;
margin-top: 17px;
}

}
Expand Down Expand Up @@ -93,11 +98,22 @@
}

&__headline {

margin-bottom: -7px;

h5 {
margin-bottom: 13px;
}

h6 {
margin-top: 16px;
padding-bottom: 1px;
}

}

&__content {
margin-top: 80px;
margin-top: 60px;
padding-top: 53px;
}

Expand Down

0 comments on commit ff240f9

Please sign in to comment.