{% assign file = page.fileName %} {% assign lang = page.lang %} {% assign folder = page.folderName %} {% assign featureData= site.data[folder][lang][file] %}
{%- if featureData.author -%}

About The Author

{%- endif -%}
{% assign posts = site.posts | where_exp:"post","post.url != page.url" %} {% assign seen_authors = '' %} {% for post in site.posts %} {% unless seen_authors contains post.author %} {% assign seen_authors = seen_authors | append: post.author | append: ',' %} {% assign featureAuthor = featureData.author | downcase %} {%- include /authors/authors.html -%} {%- assign name = authorName | downcase -%} {%- if name contains featureAuthor -%} {%- endif -%} {% endunless %} {% endfor %} {%- if featureData.contributors -%}

Contributors

{%- endif -%}
{% assign posts = site.posts | where_exp:"post","post.url != page.url" %} {% assign seen_authors = '' %} {% for post in site.posts %} {% unless seen_authors contains post.author %} {% assign seen_authors = seen_authors | append: post.author | append: ',' %} {% for contributor in featureData.contributors %} {%- assign contributorAuthor = contributor.name | downcase -%} {%- include /authors/authors.html -%} {%- assign name = authorName | downcase -%} {%- if name contains contributorAuthor -%} {{ authorName}} {%- endif -%} {% endfor %} {% endunless %} {% endfor %}