{% 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 -%}
{%- if featureData.author -%} {%- include authors/authors.html -%} {%- assign featureAuthor = featureData.author | split: " " -%} {%- assign author = featureAuthor.first | downcase -%} {%- assign collection = [author] -%} {%- for item in collection -%} {%- if forloop.index==1 -%} {%- assign featureAuthorName = item -%} {%- endif -%} {%- if forloop.index==2 -%} {%- assign featureAuthorImage = item -%} {%- endif -%} {%- if forloop.index==3 -%} {%- assign featureAuthorBio = item -%} {%- endif %} {%- endfor %}
{{ featureAuthor}}
{{featureAuthor}}

{{featureAuthorBio}}

{%- endif %} {%- assign contributors = featureData.contributors | uniq: 'name' -%} {%- if contributors.size > 0 -%}

Contributors

{%- for contributor in contributors -%} {%- assign featureContributorData = contributor.name | split: " " -%} {%- assign featureContributorData = featureContributorData.first | downcase -%} {%- assign collectionData = [featureContributorData] -%} {%- for item in collectionData -%} {%- if forloop.index == 1 -%} {%- assign featureContributorDataName = item -%} {%- endif -%} {%- if forloop.index == 2 -%} {%- assign featureContributorDataImage = item -%} {%- endif -%} {%- if forloop.index == 3 -%} {%- assign featureContributorDataBio = item -%} {%- endif -%} {%- if forloop.index == 4 -%} {%- assign featureContributorDataTwitter = item -%} {%- endif -%} {%- endfor -%} {%- if featureContributorDataName -%} {{ featureContributorDataName}}
{{ featureContributorDataName }}
{%- assign featureContributorDataName = false -%} {%- else -%} {%- endif -%} {%- endfor -%}
{%- endif -%}