diff --git a/_includes/head.html b/_includes/head.html index 7f68300..dff34bd 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -4,39 +4,41 @@ - + content="{% if page.title %} {{ page.title }} {% else %} Andrew Cassidy's Website {% endif %}"/> + {% if page.image %} + content="{{site.url}}/images/{{page.path | split: '/' | last | split: '.' | first }}/{{page.image}}"/> {% endif %} {% if page.description %} + content="{{page.description}}" + /> {% else %} + content="{{page.content | markdownify | strip_html | truncate: 100}}" + /> {% endif %} {% if page.collection == "posts" %} + content="article"/> + content="{{ page.date | date_to_xmlschema }}"/> + content="Blog"/> {% for tag in page.tags %} - + {% endfor %} {% else %} + content="website"/> {% endif %}