From ce83d3d60e55afe343ffb073845ad7c881e0563f Mon Sep 17 00:00:00 2001 From: Alois Klink Date: Sun, 13 Nov 2016 20:38:49 +0000 Subject: [PATCH] Add structured data markup for `itemprop="person"` in author-profile Adds schema.org data for image, name, homeLocation, url, email, and sameAs (for all the social media links). --- _includes/author-profile.html | 149 +++++++++++++++++++++++++++------- 1 file changed, 119 insertions(+), 30 deletions(-) diff --git a/_includes/author-profile.html b/_includes/author-profile.html index 97261f32..6b849a3f 100644 --- a/_includes/author-profile.html +++ b/_includes/author-profile.html @@ -1,5 +1,7 @@ {% if page.author and site.data.authors[page.author] %} - {% assign author = site.data.authors[page.author] %}{% else %}{% assign author = site.author %} + {% assign author = site.data.authors[page.author] %} +{% else %} + {% assign author = site.author %} {% endif %}
@@ -7,95 +9,182 @@ {% if author.avatar %}
{% if author.avatar contains "://" %} - {{ author.name }} + {{ author.name }} {% else %} - {{ author.name }} + {{ author.name }} {% endif %}
{% endif %}
-

{{ author.name }}

- {% if author.bio %}

{{ author.bio }}

{% endif %} +

{{ author.name }}

+ {% if author.bio %} +

+ {{ author.bio }} +

+ {% endif %}