From b2484a70c62f367e849bcd0cb36334bac46756a4 Mon Sep 17 00:00:00 2001 From: drewcassidy Date: Sun, 5 May 2019 10:26:02 -0700 Subject: [PATCH] remove unnecessary closing slashes in meta tags --- _includes/head.html | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/_includes/head.html b/_includes/head.html index dff34bd..7f68300 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -4,41 +4,39 @@ - + 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 %}