Make the cards links

This commit is contained in:
Joseph Hutchinson
2018-03-19 16:12:38 -04:00
parent df668bdb61
commit b044666b75
2 changed files with 4 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
<a href="{{ .Permalink }}" rel="bookmark" title="Link to {{ .Title }}" style="display: block;"> <a href="{{ .Permalink }}" class="card-link-wrapper" rel="bookmark" title="Link to {{ .Title }}" >
<article class="card"> <article class="card">
<h2 class="card-title">{{ .Title }}</h2> <h2 class="card-title">{{ .Title }}</h2>
<span class="post-date">Published {{ .Date.Format "Jan 2, 2006" }}</span> <span class="post-date">Published {{ .Date.Format "Jan 2, 2006" }}</span>

View File

@@ -54,6 +54,9 @@ img {
grid-gap: 30px; grid-gap: 30px;
justify-content: center; justify-content: center;
} }
.card-link-wrapper {
display: block;
}
.card { .card {
background-color: white; background-color: white;
padding: 15px; padding: 15px;