rf-web/_includes/common/head.html

55 lines
2.8 KiB
HTML
Raw Permalink Normal View History

{% capture title %}{% if page.title_ %}{{ site.title }} \ {{ page.title_ }}{% elsif page.fullname %}{{ site.title }} \ {{ page.fullname }}{% elsif page.title %}{{ site.title }} \ {{ page.title }}{% else %}{{ site.title | escape }}{% endif %}{% endcapture %}
2020-04-25 08:46:53 +00:00
{%- capture pic -%}{% if page.pic %}https://reclaimfutures.org{{ page.pic }}{% else %}https://reclaimfutures.org/assets/img/TwitterCard.png{% endif %}{% endcapture %}
<!-- HEAD -->
<head>
2020-04-25 08:46:53 +00:00
<title>{{ title }}</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
<meta name="author" content="{{ page.author }}">
<meta name="keywords" content="{{ page.keyword | strip_html | normalize_whitespace | escape }}">
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicons/favicon-16x16.png">
<link rel="apple-touch-icon" sizes="180x180" href="/assets/favicons/apple-touch-icon.png">
<link rel="manifest" href="/assets/favicons/site.webmanifest">
<link rel="icon" href="/assets/favicons/svg-favi.svg">
<link rel="mask-icon" href="/assets/favicons/safari-pinned-tab.svg" color="#5bbad5">
2020-04-25 08:46:53 +00:00
<meta name="msapplication-TileColor" content="#0ddfe7">
<meta name="theme-color" content="#0ddfe7">
<meta content="{{ site.title }}" property="og:site_name" />
2020-05-25 15:35:13 +00:00
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="{{ site.twitter }}" />
<meta name="twitter:title" content="{{- title }}" />
2020-05-25 15:35:13 +00:00
<meta name="twitter:description" content="{{ site.description }}" />
<meta name="twitter:image" content="{{- pic -}}" />
2020-05-25 15:35:13 +00:00
<meta property="og:title" content="{{ title }}" />
<meta property="og:description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}" />
<meta property="og:image" content="{{- pic -}}">
2020-05-25 15:35:13 +00:00
<meta property="article:published_time" content="{{page.date}}" />
<!-- page.modified isn't a natural Jekyll property, but it can be added. -->
{% if page.modified %}
<meta property="article:modified_time" content="{{page.modified}}" />
{% endif %}
2020-05-25 15:35:13 +00:00
<meta property="article:author" content="{{ page.author }}" />
<meta property="article:publisher" content="{{ page.author }}" />
2020-05-25 15:35:13 +00:00
<!-- I use the page.categories property for OG tags. -->
{% for tag in page.categories %}
<meta property="article:tag" content="{{tag}}" />
{% endfor %}
2020-04-25 08:46:53 +00:00
<!-- CSS -->
<link href="/assets/css/index.css" rel="stylesheet">
</head>