remove unnecessary closing slashes in meta tags

This commit is contained in:
Andrew Cassidy 2019-05-05 10:26:02 -07:00
parent 011474e66c
commit b2484a70c6
No known key found for this signature in database
GPG Key ID: 963017B38FD477A1

View File

@ -4,41 +4,39 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" <meta property="og:title"
content="{% if page.title %} {{ page.title }} {% else %} Andrew Cassidy's Website {% endif %}"/> content="{% if page.title %} {{ page.title }} {% else %} Andrew Cassidy's Website {% endif %}">
<meta property="og:url" content="{{site.url}}{{page.url}}"/> <meta property="og:url" content="{{site.url}}{{page.url}}">
{% if page.image %} {% if page.image %}
<meta property="og:image" <meta property="og:image"
content="{{site.url}}/images/{{page.path | split: '/' | last | split: '.' | first }}/{{page.image}}"/> content="{{site.url}}/images/{{page.path | split: '/' | last | split: '.' | first }}/{{page.image}}">
{% endif %} {% endif %}
{% if page.description %} {% if page.description %}
<meta <meta
property="og:description" property="og:description"
content="{{page.description}}" content="{{page.description}}">
/>
{% else %} {% else %}
<meta <meta
property="og:description" property="og:description"
content="{{page.content | markdownify | strip_html | truncate: 100}}" content="{{page.content | markdownify | strip_html | truncate: 100}}">
/>
{% endif %} {% endif %}
{% if page.collection == "posts" %} {% if page.collection == "posts" %}
<meta property="og:type" <meta property="og:type"
content="article"/> content="article">
<meta property="article:published_time" <meta property="article:published_time"
content="{{ page.date | date_to_xmlschema }}"/> content="{{ page.date | date_to_xmlschema }}">
<meta property="article:section" <meta property="article:section"
content="Blog"/> content="Blog">
{% for tag in page.tags %} {% for tag in page.tags %}
<meta property="article:tag" content="{{ tag }}"/> <meta property="article:tag" content="{{ tag }}">
{% endfor %} {% endfor %}
{% else %} {% else %}
<meta property="og:type" <meta property="og:type"
content="website"/> content="website">
{% endif %} {% endif %}
<link rel="stylesheet" href="/fa/css/fontawesome.min.css"> <link rel="stylesheet" href="/fa/css/fontawesome.min.css">