
* Enable preview images on social media This commit adds support for serving Open Graph meta tags inside the HTML head. When enabled, links to the page on social media will display a preview. NB: twitter behaves somewhat differently and may require twitter card meta tags in addition to Open Graph. https://ogp.me/ * Remove trailing whitespaces * Support page-specific open graph social media previews * Document open graph support in the readme * Improve open graph support
24 lines
1.2 KiB
HTML
24 lines
1.2 KiB
HTML
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width initial-scale=1" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<title>{{ site.name }}{% if page.title and page.url != "/" %} | {{ page.title }}{% endif %}</title>
|
|
<meta name="description" content="{{ site.description }}">
|
|
|
|
{% if site.serve_og_meta %}
|
|
<meta property="og:site_name" content="{{ site.description }}" />
|
|
<meta property="og:type" content="object" />
|
|
<meta property="og:title" content="{{ site.name }}" />
|
|
<meta property="og:url" content="{{ page.url | prepend: site.baseurl | prepend: site.url }}" />
|
|
<meta property="og:description" content="{{ page.title }}" />
|
|
<meta property="og:image"
|
|
content="{%- if page.og_image -%}{{ page.og_image }}{%- else -%}{{ site.og_image }}{%- endif -%}" />
|
|
{% endif %}
|
|
|
|
<link rel="shortcut icon" href="{{ '/assets/img/favicon.ico' | prepend: site.baseurl | prepend: site.url }}">
|
|
|
|
<link rel="stylesheet" href="{{ '/assets/css/main.css' | prepend: site.baseurl | prepend: site.url }}">
|
|
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
|
|
</head>
|