{%- if page.layout == "appscms-authors" or page.layout == "appscms-author" -%} {%- include /authors/authors.html -%} {%- assign pageAuthorName = page.authorName | split: " " -%} {%- assign pageAuthorNameFirst = pageAuthorName.first | downcase -%} {%- assign collectionData = [pageAuthorNameFirst] -%} {%- for item in collectionData -%} {%- if forloop.index == 1 -%} {%- assign authorName = item -%} {%- endif -%} {%- if forloop.index == 2 -%} {%- assign authorPick = item -%} {%- endif -%} {%- if forloop.index == 3 -%} {%- assign bio = item -%} {%- endif -%} {%- if forloop.index == 4 -%} {%- assign authorTwitter = item -%} {%- endif -%} {%- endfor -%} {% capture author_info %} {% assign author = authorName %} {% assign bio = bio %}{{ author }} - {{ bio }}{% endcapture %} {% capture author_name %} {% assign author = authorName %}{{ author }} {% endcapture %} {% assign authorPageTitle = author_info %} {% assign author_name = author_name %} {%- if authorName -%} {%- assign title = authorName -%} {%- else -%} {%- assign title = "Our Authors" -%} {%- endif -%} {%- assign description = pagedescription-%} {%- else -%} {%- assign pagedescriptionlength = page.description | split: ' ' -%} {%- if pagedescriptionlength.size > 5 -%} {%- assign pagedescriptionlength = page.description | split: ' ' -%} {%- assign pagedescription = page.description -%} {%- endif -%} {% assign favicon = site.favicon %} {%- assign seo_description = pagedescription | default: page.content | markdownify | strip_html | truncatewords: 50 | default: page.excerpt | default: site.description -%} {%- if seo_description -%} {%- assign seo_description = seo_description | markdownify | strip_html | strip_newlines | escape_once -%} {%- endif -%} {%- if page.date -%} {%- assign og_type = "article" -%} {%- else -%} {%- assign og_type = "website" -%} {%- endif -%} {%- assign title = page.title | split: ' ' -%} {%- assign newtitle = '' %} {% for operation in title %} {%- if forloop.first -%} {% assign word = operation | capitalize %} {% assign newtitle = newtitle | append : word %} {% assign newtitle = newtitle | append : " " %} {%- else -%} {% assign word = operation %} {%- if forloop.last -%} {% assign newtitle = newtitle | append : word %} {%- else -%} {% assign newtitle = newtitle | append : word %} {% assign newtitle = newtitle | append : " " %} {%- endif -%} {%- endif -%} {% endfor %} {%- assign description = description | split: ' ' -%} {% assign pagedescription = '' %} {% for operation in description %} {%- if forloop.first -%} {% assign word = operation | capitalize %} {% assign pagedescription = pagedescription | append : word %} {% assign pagedescription = pagedescription | append : " " %} {%- else -%} {% assign word = operation %} {%- if forloop.last -%} {% assign pagedescription = pagedescription | append : word %} {%- else -%} {% assign pagedescription = pagedescription | append : word %} {% assign pagedescription = pagedescription | append : " " %} {%- endif -%} {%- endif -%} {% endfor %} {%- assign title = newtitle -%} {%- assign description = pagedescription-%} {%- endif -%} {%- if page.layout == "appscms-authors" or page.layout == "appscms-author" -%} {%- else -%} {%- endif -%} {%- if page.layout == "appscms-authors" -%} {%- else -%} {%- endif -%} {%- if page.layout == "appscms-author" -%}