_includes/wordgames/authorpagehead/authorpagehead.html in word-games-theme-2.4.9 vs _includes/wordgames/authorpagehead/authorpagehead.html in word-games-theme-2.5.0

- old
+ new

@@ -1,20 +1,36 @@ <head> {% 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 %} + {%- assign postAuthor = page.authorName | split: " " -%} + {%- assign author = postAuthor.first | downcase -%} + {%- assign collection = [author] -%} + {%- for item in collection -%} + {%- if forloop.index==1 -%} + {%- assign authorName = item -%} + {%- endif -%} + {%- if forloop.index==2 -%} + {%- assign image = item -%} + {%- endif -%} + {%- if forloop.index==3 -%} + {%- assign bio = 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 %} - {%- endif -%} - {% endfor %} + + {%- assign title = newtitle -%} {%- assign description = pagedescription-%} + <meta charset="UTF-8" /> <link rel="shortcut icon" href="{{favicon}}" /> <link rel="canonical" href="{{site.url | append: page.url}}" /> \ No newline at end of file