diff --git a/_includes/head.html b/_includes/head.html index dff34bd..1e9f9d7 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -1,27 +1,46 @@ + + {% capture title %} + {% if page.title %} + {{ page.title }} + {% else %} + Andrew Cassidy + {% endif %} + {% endcapture %} + + {% capture description %} + {% if page.description%} + {{ page.description}} + {% else %} + {{page.content | markdownify | strip_html | truncate: 100}} + {% endif %} + {% endcapture %} + {{site.url}}/images/{{page.path | split: '/' | last | split: '.' | first }}/{{page.image}} + {% capture image %} + + {% if page.title %} {{ page.title }} | {% endif %} Andrew Cassidy - - - {% if page.image %} - + + + + + + + {% if page.image %} + {% endif %} - {% if page.description %} - - {% else %} - + + + + + + {% if page.image %} + {% endif %} {% if page.collection == "posts" %}