Merge pull request #93 from badele/title-image
Add image title feature in homepage
This commit is contained in:
commit
4d7446e101
@ -77,4 +77,3 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
@ -19,6 +19,9 @@
|
|||||||
{{ .Params.subtitle }}
|
{{ .Params.subtitle }}
|
||||||
</h3>
|
</h3>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ if .Params.image }}
|
||||||
|
<img src="{{ .Params.image }}" class="img-title" />
|
||||||
|
{{ end }}
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
{{ partial "post_meta.html" . }}
|
{{ partial "post_meta.html" . }}
|
||||||
@ -60,4 +63,3 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
@ -91,6 +91,10 @@ img {
|
|||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.img-title {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.disqus-comments {
|
.disqus-comments {
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user