Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Jan 11, 2021
1 parent 15085c4 commit ca9e47e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/_includes/author-image.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{% assign author = post.author | default: page.author -%}
{%- assign date = post.date | default: page.date -%}
<div class="d-flex align-items-center mb-4 text-muted">
<div class="d-flex align-items-center mb-4 text-muted author-info">
<a class="d-flex align-items-center text-muted text-decoration-none" href="https://github.com/{{ author }}" target="_blank" rel="noopener">
{% avatar {{ author }} size=32 %}
<span>@{{ author }}</span>
</a>
<span class="d-flex align-items-center ml-3">
<span class="d-flex align-items-center ml-3" title="{{ date | date_to_rfc822 }}">
{% include icons/calendar-event.svg class="mr-2" width="24" height="24" %}
{{ date | date: '%B %d, %Y' }}
</span>
Expand Down
8 changes: 8 additions & 0 deletions src/_sass/_author-info.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.author-info {
font-size: 90%;

.avatar {
margin-right: .5rem;
margin-bottom: 0;
}
}
1 change: 1 addition & 0 deletions src/_sass/_style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@import "navbar";
@import "subnav";
@import "footer";
@import "author-info";

.f0 { font-size: 3rem; }
.f2 { font-size: 2rem; }
Expand Down
5 changes: 0 additions & 5 deletions src/assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,3 @@
@import "style";
@import "theme";
@import "ads";

.avatar {
margin-right: .5rem;
margin-bottom: 0;
}

0 comments on commit ca9e47e

Please sign in to comment.