{%- if page.layout == "appscms-authors" or page.layout == "appscms-author" -%} {% assign posts = site.posts | where_exp:"post","post.url != page.url" %} {% for post in posts %} {%- include /authors/authors.html -%} {% if authorName contains page.authorName %} {% 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 %} {%- endif -%} {% endfor %} {%- assign title = newtitle -%} {%- 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" -%}