Merge pull request #93 from badele/title-image

Add image title feature in homepage
This commit is contained in:
Michael Romero 2017-11-11 20:34:49 -08:00 committed by GitHub
commit 4d7446e101
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View File

@ -77,4 +77,3 @@
</div>
</div>
{{ end }}

View File

@ -19,6 +19,9 @@
{{ .Params.subtitle }}
</h3>
{{ end }}
{{ if .Params.image }}
<img src="{{ .Params.image }}" class="img-title" />
{{ end }}
</a>
{{ partial "post_meta.html" . }}
@ -60,4 +63,3 @@
</div>
</div>
{{ end }}

View File

@ -91,6 +91,10 @@ img {
max-width: 100%;
}
.img-title {
width: 100%;
}
.disqus-comments {
margin-top: 30px;
}