Skip to content

Commit 253458a

Browse files
committedJun 19, 2017
new blog layout
1 parent 7e60893 commit 253458a

File tree

2 files changed

+9
-30
lines changed

2 files changed

+9
-30
lines changed
 

‎_includes/post-list-item.html

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
<article>
2-
<div class="date"><span>{{ post.date | date: "%-d %b" }}</span> <span class="year">{{ post.date | date: "%Y" }}</span></div>
3-
42
<div class="text">
5-
{% if post.categories %}
6-
<ul class="categories">
7-
{% for cat in post.categories %}
8-
<li>{{ cat }}</li>
9-
{% endfor %}
10-
</ul>
11-
{% endif %}
3+
<div class="date"><span>{{ post.date | date: "%-d %b" }}</span> <span class="year">{{ post.date | date: "%Y" }}</span></div>
124
<h1 class="title"><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
135
<div class="content">
146
{{ post.excerpt | markdownify }}

‎_sass/_posts.scss

+8-21
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,13 @@
99
@include outer-container;
1010

1111
.date {
12-
font-size: 0.8em;
13-
color: $medium-gray;
14-
15-
@media (min-width: $medium-screen) {
16-
@include span-columns(1);
17-
padding-top: $small-spacing / 2;
18-
19-
span {
20-
display: block;
21-
background-color: $base-background-color;
22-
}
23-
}
12+
font-weight: bold;
13+
color: $black;
2414
}
2515

2616
.text {
2717
@media (min-width: $medium-screen) {
28-
@include span-columns(8);
29-
}
30-
31-
.title {
32-
a {
33-
color: $base-font-color;
34-
}
18+
@include span-columns(9);
3519
}
3620

3721
.categories {
@@ -52,8 +36,11 @@
5236
}
5337

5438
& > a {
55-
@extend button;
56-
margin-top: $small-spacing;
39+
text-transform: uppercase;
40+
color: $dark-green;
41+
font-weight: bold;
42+
display: inline-block;
43+
margin-top: $base-spacing;
5744
}
5845
}
5946

0 commit comments

Comments
 (0)
Please sign in to comment.