Refactor head file to be a bit more modular

This commit is contained in:
Andrew Cassidy 2019-05-05 14:13:40 -07:00 committed by Andrew Cassidy
parent 992dc53720
commit 63cc0d2f11
5 changed files with 72 additions and 71 deletions

View File

@ -1,5 +1,3 @@
<head>
{% capture title %}
{% if page.title %}
{{ page.title }}
@ -44,23 +42,6 @@
<meta property="og:image" content="{{image}}"/>
{% endif %}
{% if page.collection == "posts" %}
<meta property="og:type"
content="article"/>
<meta property="article:published_time"
content="{{ page.date | date_to_xmlschema }}"/>
<meta property="article:section"
content="Blog"/>
{% for tag in page.tags %}
<meta property="article:tag" content="{{ tag }}"/>
{% endfor %}
{% else %}
<meta property="og:type"
content="website"/>
{% endif %}
<link rel="stylesheet" href="/fa/css/fontawesome.min.css">
<link rel="stylesheet" href="/fa/css/brands.min.css">
<link rel="stylesheet" href="/fa/css/solid.min.css">
@ -68,4 +49,3 @@
<link rel="stylesheet" href="/css/fnoots.css"/>
<link rel="stylesheet" href="/css/site.css"/>
<link rel="stylesheet" href="/css/sidebar.css"/>
</head>

View File

@ -1,7 +1,10 @@
<!DOCTYPE html>
<html>
<head>
{% include head.html %}
<meta property="og:type" content="website"/>
</head>
<body>
<header>

View File

@ -1,7 +1,10 @@
<!DOCTYPE html>
<html>
<head>
{% include head.html %}
<meta property="og:type" content="website"/>
</head>
<body>
<header>

View File

@ -1,7 +1,10 @@
<!DOCTYPE html>
<html>
<head>
{% include head.html %}
<meta property="og:type" content="website"/>
</head>
<body>
<header>

View File

@ -1,7 +1,19 @@
<!DOCTYPE html>
<html>
<head>
{% include head.html %}
<meta property="og:type"
content="article"/>
<meta property="article:published_time"
content="{{ page.date | date_to_xmlschema }}"/>
<meta property="article:section"
content="Blog"/>
{% for tag in page.tags %}
<meta property="article:tag" content="{{ tag }}"/>
{% endfor %}
</head>
<body>
<header>