add option to show post excerpts on posts with a title

This commit is contained in:
Pat Dryburgh
2018-08-12 14:04:49 -07:00
parent ed34b49645
commit 4d3d8d3e73
5 changed files with 46 additions and 31 deletions

View File

@ -9,27 +9,26 @@
flex-direction: column-reverse;
text-decoration: none;
padding: .25em 0;
.post-title {
display: block;
padding: .25em 0;
}
&:hover .post-title,
&:focus .post-title {
text-decoration: underline;
}
@media (min-width: $on-tablet) {
display: flex;
flex-direction: row;
justify-content: space-between;
.post-title {
margin-right: 4em;
}
.post-date {
margin-left: auto;
}
}
}
.post-link__heading {
display: block;
margin-right: 4em;
padding: .25em 0;
}
.post-link__title + .post-link__excerpt {
opacity: .6;
}
.post-pagination {
margin-top: 4rem;
font-size: .75em;