From 4374062885b81f8d4193b2eebdaa8ba1c121098e Mon Sep 17 00:00:00 2001 From: drewcassidy Date: Sun, 5 May 2019 10:44:07 -0700 Subject: [PATCH] Revert "remove unnecessary closing slashes in meta tags" This reverts commit b2484a70c62f367e849bcd0cb36334bac46756a4. --- _includes/head.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) 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 %}