more image tweaks
This commit is contained in:
parent
f24a867b5b
commit
c5afe839f0
@ -2,7 +2,7 @@
|
|||||||
<header>
|
<header>
|
||||||
<h1 class="entry-title">{{ post.title }}</h1>
|
<h1 class="entry-title">{{ post.title }}</h1>
|
||||||
{% if post.image %}
|
{% if post.image %}
|
||||||
<div class="feature-image" style="background: url({{ post.image }})"></div>
|
<img class="feature-image" src="{{ post.image }}" alt="{{ post.title }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<time datetime="{{ post.date | datetime | date_to_xmlschema }}" pubdate><a href="{{ post.url }}">{{ post.date | date: "%B %d, %Y" }}</a></time>
|
<time datetime="{{ post.date | datetime | date_to_xmlschema }}" pubdate><a href="{{ post.url }}">{{ post.date | date: "%B %d, %Y" }}</a></time>
|
||||||
</header>
|
</header>
|
||||||
|
@ -99,9 +99,7 @@ body {
|
|||||||
|
|
||||||
.feature-image {
|
.feature-image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 200px;
|
max-height: 200px;
|
||||||
background-size: cover;
|
|
||||||
background-position: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user