drewcassidy.me/_includes/head.html

72 lines
2.1 KiB
HTML
Raw Normal View History

2017-12-24 23:04:19 +00:00
<head>
2019-05-05 17:56:27 +00:00
{% capture title %}
{% if page.title %}
{{ page.title }}
{% else %}
Andrew Cassidy
{% endif %}
{% endcapture %}
{% capture description %}
{% if page.description%}
{{ page.description}}
{% else %}
{{page.content | markdownify | strip_html | truncate: 100}}
{% endif %}
{% endcapture %}
2019-05-05 17:57:54 +00:00
2019-05-05 17:56:27 +00:00
{% capture image %}
2019-05-05 17:57:54 +00:00
{{site.url}}/images/{{page.path | split: '/' | last | split: '.' | first }}/{{page.image}}
{% endcapture %}
2019-05-05 17:56:27 +00:00
2019-05-05 19:16:19 +00:00
<title>{{title}}</title>
2019-05-05 17:56:27 +00:00
2017-12-24 23:04:19 +00:00
<meta charset=utf-8 />
<meta name="viewport" content="width=device-width, initial-scale=1">
2017-11-15 06:49:46 +00:00
2019-05-05 17:56:27 +00:00
<!-- Twitter cards -->
<meta name="twitter:card" content="summary"/>
<meta name="twitter:site" conten="@AndrewNCassidy"/>
<meta name="twitter:title" content="{{title}}"/>
<meta name="twitter:description" content="{{description}}"/>
{% if page.image %}
<meta name="twitter:image" content="{{image}}"/>
{% endif %}
2019-05-05 17:56:27 +00:00
<!-- Opengraph -->
<meta property="og:url" content="{{site.url}}{{page.url}}"/>
<meta property="og:title" content="{{title}}"/>
<meta property="og:image" content="{{description}}"/>
{% if page.image %}
<meta property="og:image" content="{{image}}"/>
{% endif %}
2019-05-05 06:35:01 +00:00
{% if page.collection == "posts" %}
2019-05-05 06:59:32 +00:00
<meta property="og:type"
content="article"/>
2019-05-05 07:03:03 +00:00
<meta property="article:published_time"
content="{{ page.date | date_to_xmlschema }}"/>
2019-05-05 07:03:03 +00:00
<meta property="article:section"
content="Blog"/>
2019-05-05 07:16:46 +00:00
2019-05-05 06:35:01 +00:00
{% for tag in page.tags %}
<meta property="article:tag" content="{{ tag }}"/>
2019-05-05 06:35:01 +00:00
{% endfor %}
2019-05-05 07:16:46 +00:00
2019-05-05 06:35:01 +00:00
{% else %}
2019-05-05 06:59:32 +00:00
<meta property="og:type"
content="website"/>
2019-05-05 06:35:01 +00:00
{% endif %}
2019-05-05 01:31:51 +00:00
<link rel="stylesheet" href="/fa/css/fontawesome.min.css">
2019-05-05 01:22:11 +00:00
<link rel="stylesheet" href="/fa/css/brands.min.css">
<link rel="stylesheet" href="/fa/css/solid.min.css">
2019-05-05 01:22:11 +00:00
2017-12-24 23:04:19 +00:00
<link rel="stylesheet" href="/css/fnoots.css"/>
2019-05-05 04:30:18 +00:00
<link rel="stylesheet" href="/css/site.css"/>
2017-12-24 23:04:19 +00:00
<link rel="stylesheet" href="/css/sidebar.css"/>
</head>