Issue #2: Add some styling for active latest posts
This commit is contained in:
parent
0032e3c00d
commit
a0c7381690
|
@ -1,9 +1,11 @@
|
||||||
{% if data.posts %}
|
{% if data.posts %}
|
||||||
<h2>Latest Posts</h2>
|
<section class="latest-posts">
|
||||||
|
<h2>Latest Posts</h2>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{% for post in data.posts | slice(0,5) %}
|
{% for post in data.posts | slice(0,5) %}
|
||||||
<li{% if page.url == post.url %} class="active"{% endif %}><a href="{{ post.url }}">{{ post.title }}</a></li>
|
<li{% if page.url == post.url %} class="active"{% endif %}><a href="{{ post.url }}">{{ post.title }}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
</section>
|
||||||
{% endif %}
|
{% endif %}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,6 @@
|
||||||
|
.latest-posts {
|
||||||
|
li.active a {
|
||||||
|
color: $dark-gray;
|
||||||
|
font-weight: $semibold;
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
@import 'compass';
|
@import 'compass';
|
||||||
@import 'bootstrap';
|
@import 'bootstrap';
|
||||||
|
|
||||||
|
@import "variables/**/*";
|
||||||
@import "base/**/*";
|
@import "base/**/*";
|
||||||
@import "components/**/*";
|
@import "components/**/*";
|
|
@ -0,0 +1 @@
|
||||||
|
$dark-gray: #333;
|
|
@ -0,0 +1,2 @@
|
||||||
|
// Font weights.
|
||||||
|
$semibold: 500;
|
Reference in a new issue