Initial release
This commit is contained in:
53
_includes/head.html
Normal file
53
_includes/head.html
Normal file
@@ -0,0 +1,53 @@
|
||||
<head>
|
||||
{% capture styles %}
|
||||
{% include main.scss %}
|
||||
{% endcapture %}
|
||||
<style>
|
||||
{{ styles | scssify }}
|
||||
</style>
|
||||
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<link rel="canonical" href="{{ site.url }}{{ page.url }}" />
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.title }}{% endif %}">
|
||||
|
||||
<meta property="og:site_name" content="{{ site.title }}">
|
||||
|
||||
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgo=">
|
||||
|
||||
{% if page.excerpt %}
|
||||
<meta property="og:description" content="{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}"/>
|
||||
{% else %}
|
||||
<meta property="og:description" content="{{ site.title | strip_html | strip_newlines | truncate: 160 }}"/>
|
||||
{% endif %}
|
||||
|
||||
{% if page.title %}
|
||||
<meta property="og:title" content="{{ page.title }}">
|
||||
<meta property="og:type" content="article">
|
||||
{% else %}
|
||||
<meta property="og:title" content="{{ site.title }}">
|
||||
<meta property="og:type" content="website">
|
||||
{% endif %}
|
||||
|
||||
{% if page.date %}
|
||||
<meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}">
|
||||
<meta property="article:author" content="{{ site.url }}/">
|
||||
{% endif %}
|
||||
|
||||
<meta property="og:url" content="{{ site.url }}{{ page.url }}" />
|
||||
|
||||
{% if page.image %}
|
||||
<meta property="og:image" content="{{ site.url }}{{ page.image }}">
|
||||
{% endif %}
|
||||
|
||||
<title>
|
||||
{% if page.id == "home" %}
|
||||
{{ site.title }}
|
||||
{% else %}
|
||||
{{ page.title }} — {{ site.title }}
|
||||
{% endif %}
|
||||
</title>
|
||||
</head>
|
||||
Reference in New Issue
Block a user