diff --git a/_includes/author-profile.html b/_includes/author-profile.html index 884f2627755585b0ae6790acd89809c20171dfd1..9ef529cef00d1ae321f54fb12f9e2521f77c6501 100644 --- a/_includes/author-profile.html +++ b/_includes/author-profile.html @@ -1,9 +1,5 @@ <!-- {% assign author = page.author | default: page.authors[0] | default: site.author %} --> -{% unless page.author %} - {% assign author = page.url | split: "/" %} - {% assign author = author[1] %} -{% endunless %} -{% assign author = site.data.authors.authors | where: "prefix", author | first %} +{% assign author = site.data.authors.authors | where: "prefix", site.author | first %} <div itemscope itemtype="https://schema.org/Person"> diff --git a/_includes/seo.html b/_includes/seo.html index f4415d3730cbd7f1822c0b368ef8f41e5b274be9..5e6e147de6f8b012a5315f0f3170e7c95db7fec6 100644 --- a/_includes/seo.html +++ b/_includes/seo.html @@ -26,9 +26,7 @@ {%- endif -%} <!-- don't use page.author even if it is set, find author based on url --> -{% assign author = page.url | split: "/" %} -{% assign author = author[1] %} -{% assign author = site.data.authors.authors | where: "prefix", author | first %} +{% assign author = site.data.authors.authors | where: "prefix", site.author | first %} {%- if author.twitter -%} {%- assign author_twitter = author.twitter | replace: "@", "" -%} diff --git a/_layouts/single.html b/_layouts/single.html index 05f247739a1a03874e792311de86040d1e609cd2..cf9d13461dbebd4d50c744e288a211afeb001612 100644 --- a/_layouts/single.html +++ b/_layouts/single.html @@ -2,11 +2,7 @@ layout: default --- -{% unless page.author %} - {% assign author = page.url | split: "/" %} - {% assign author = author[1] %} -{% endunless %} -{% assign author = site.data.authors.authors | where: "prefix", author | first %} +{% assign author = site.data.authors.authors | where: "prefix", site.author | first %} {% if page.has_header %} {% include page__hero.html %} @@ -19,6 +15,7 @@ layout: default {% endif %} <div id="main" role="main"> +coucou {% include sidebar.html %} <article class="page" itemscope itemtype="https://schema.org/CreativeWork">