feature images support
This commit is contained in:
parent
08f94e1085
commit
36fc49c101
@ -12,11 +12,11 @@
|
|||||||
<meta name="og:url" content="{{ site.url }}{{ page.url }}">
|
<meta name="og:url" content="{{ site.url }}{{ page.url }}">
|
||||||
{% if page.title %}<meta property="og:title" content="{{ page.title }}"/>{% endif %}
|
{% if page.title %}<meta property="og:title" content="{{ page.title }}"/>{% endif %}
|
||||||
{% if page.summary %}<meta property="og:description" content="{{ page.summary }}"/>{% endif %}
|
{% if page.summary %}<meta property="og:description" content="{{ page.summary }}"/>{% endif %}
|
||||||
{% if page.image %}<meta property="og:image" content=""/>{% endif %}
|
{% if page.image %}<meta property="og:image" content="{{ site.url }}{{ page.image }}"/>{% endif %}
|
||||||
<meta name="twitter:card" content="summary">
|
<meta name="twitter:card" content="summary">
|
||||||
<meta name="twitter:creator" content="@walkah">
|
<meta name="twitter:creator" content="@walkah">
|
||||||
<meta name="twitter:url" content="{{ site.url }}{{ page.url }}">
|
<meta name="twitter:url" content="{{ site.url }}{{ page.url }}">
|
||||||
<meta name="twitter:title" content="{{ page.title }}">
|
<meta name="twitter:title" content="{{ page.title }}">
|
||||||
{% if page.summary %}<meta name="twitter:description" content="{{ page.summary }}">{% endif %}
|
{% if page.summary %}<meta name="twitter:description" content="{{ page.summary }}">{% endif %}
|
||||||
{% if page.image %}<meta name="twitter:image" content="{{ page.image }}">{% endif %}
|
{% if page.image %}<meta name="twitter:image" content="{{ site.url }}{{ page.image }}">{% endif %}
|
||||||
<meta name="microid" content="mailto+http:sha1:d1026e95deb9e779de34648de0c7e2c83e1d2a73" />
|
<meta name="microid" content="mailto+http:sha1:d1026e95deb9e779de34648de0c7e2c83e1d2a73" />
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
<article class="hentry" role="article">
|
<article class="hentry" role="article">
|
||||||
<header>
|
<header>
|
||||||
<h1 class="entry-title">{{ post.title }}</h1>
|
<h1 class="entry-title">{{ post.title }}</h1>
|
||||||
|
{% if post.image %}
|
||||||
|
<div class="feature-image" style="background: url({{ post.image }})"></div>
|
||||||
|
{% 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>
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
@ -97,6 +97,13 @@ body {
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.feature-image {
|
||||||
|
width: 100%;
|
||||||
|
height: 200px;
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user