Refactor head file to be a bit more modular
This commit is contained in:
parent
992dc53720
commit
63cc0d2f11
|
@ -1,5 +1,3 @@
|
||||||
<head>
|
|
||||||
|
|
||||||
{% capture title %}
|
{% capture title %}
|
||||||
{% if page.title %}
|
{% if page.title %}
|
||||||
{{ page.title }}
|
{{ page.title }}
|
||||||
|
@ -44,23 +42,6 @@
|
||||||
<meta property="og:image" content="{{image}}"/>
|
<meta property="og:image" content="{{image}}"/>
|
||||||
{% endif %}
|
{% 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/fontawesome.min.css">
|
||||||
<link rel="stylesheet" href="/fa/css/brands.min.css">
|
<link rel="stylesheet" href="/fa/css/brands.min.css">
|
||||||
<link rel="stylesheet" href="/fa/css/solid.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/fnoots.css"/>
|
||||||
<link rel="stylesheet" href="/css/site.css"/>
|
<link rel="stylesheet" href="/css/site.css"/>
|
||||||
<link rel="stylesheet" href="/css/sidebar.css"/>
|
<link rel="stylesheet" href="/css/sidebar.css"/>
|
||||||
</head>
|
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
{% include head.html %}
|
{% include head.html %}
|
||||||
|
<meta property="og:type" content="website"/>
|
||||||
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
{% include head.html %}
|
{% include head.html %}
|
||||||
|
<meta property="og:type" content="website"/>
|
||||||
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
{% include head.html %}
|
{% include head.html %}
|
||||||
|
<meta property="og:type" content="website"/>
|
||||||
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
|
|
|
@ -1,7 +1,19 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
{% include head.html %}
|
{% 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>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user