add support for featured image

This commit is contained in:
Ayo 2018-02-04 22:47:35 +08:00
parent 1e9a0ad13f
commit f670e869c7
3 changed files with 4 additions and 1 deletions

View file

@ -15,6 +15,7 @@ layout: default
</p> </p>
<h3 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h3> <h3 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h3>
<img alt="{{ page.title }} | Developer Blog How To" title="{{page.image-attrib}}" src="../assets/images/{{page.image}}" />
</header> </header>
<div class="post-content e-content" itemprop="articleBody"> <div class="post-content e-content" itemprop="articleBody">

View file

@ -1,6 +1,8 @@
--- ---
title: "Hello, World! A New Site for Dev Life Hacks!" title: "Hello, World! A New Site for Dev Life Hacks!"
permalink: '/hello-world' permalink: "/hello-world"
image: "hello-world.jpg"
image-attrib: "Photo stock by Lukas from Pexel."
--- ---
It's kind of getting old, I know. It's kind of getting old, I know.

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB