Skip to content

Commit

Permalink
Prefer Medium-style announcement metadata presentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlin1 committed Aug 18, 2020
1 parent 8301c9d commit 0f4288f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 7 additions & 4 deletions _layouts/announcement.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<div class="announcement">
<h2>
<h2>{{ page.title }}</h2>
<span class="announcement-meta">
{% if page.date %}
<strong class="label label-purple">{{ page.date | date: '%b %e' }}</strong>
{{ page.date | date: '%b %e' }}
&middot;
{% endif %}
{{ page.title }}
</h2>
{% assign minutes = content | strip_html | number_of_words | divided_by: 180.0 | round %}
{{ minutes }} min read
</span>
{{ content }}
</div>
4 changes: 4 additions & 0 deletions _sass/custom/announcement.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@
h1, h2 {
@extend .text-gamma;
}

.announcement-meta {
@extend .text-epsilon;
}
}

0 comments on commit 0f4288f

Please sign in to comment.