55 lines
2.9 KiB
Plaintext
55 lines
2.9 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="{{ site.xaymar.language }}">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
{% comment %}
|
|
{% assign csp="default-src *; script-src 'self'" %}
|
|
{% if site.xaymar.comments.enabled %}
|
|
{% if site.xaymar.comments.provider == "disqus" %}
|
|
{% assign csp=csp | append: " 'unsafe-inline' *.disqus.com"%}
|
|
{% endif %}
|
|
{% endif %}
|
|
<meta http-equiv="Content-Security-Policy" content="{{ csp }}">
|
|
<meta http-equiv="X-Content-Security-Policy" content="{{ csp }}">
|
|
<meta http-equiv="X-WebKit-CSP" content="{{ csp }}">
|
|
{% endcomment %}
|
|
<meta charset="utf-8" />
|
|
{% comment %} Support for OpenGraph {% endcomment %}
|
|
{% if page.url != nil %}
|
|
<meta property="og:url" content="{{ page.url | absolute_url }}" />
|
|
{% else %}
|
|
<meta property="og:url" content="{{ site.url | absolute_url }}" />
|
|
{% endif %}
|
|
<meta property="og:site_name" content="{{ site.title }}" />
|
|
<meta property="og:title" content="{{ page.title | default: site.title | strip_html }}" />
|
|
{% if site.xaymar.opengraph.excerpt.enabled == true %}
|
|
<meta property="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncatewords: site.xaymar.opengraph.excerpt.length }}" />
|
|
<meta property="og:description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncatewords: site.xaymar.opengraph.excerpt.length }}" />
|
|
{% else %}
|
|
<meta property="description" content="{{ site.description | strip_html }}" />
|
|
<meta property="og:description" content="{{ site.description | strip_html }}" />
|
|
{% endif %}
|
|
<meta property="og:type" content="{{ page.opengraph.type | default: "website" }}" />
|
|
{% if page.opengraph.image != nil %}
|
|
<meta property="og:image" content="{{ page.opengraph.image | absolute_url }}" />
|
|
{% else %}
|
|
<meta property="og:image" content="{{ site.xaymar.data.logo | absolute_url }}" />
|
|
{% endif %}
|
|
{% if page.opengraph.audio != nil %}
|
|
<meta property="og:audio" content="{{ page.audio | absolute_url }}" />
|
|
{% endif %}
|
|
{% if page.opengraph.video != nil %}
|
|
<meta property="og:video" content="{{ page.video | absolute_url }}" />
|
|
{% endif %}
|
|
<meta property="article:published_time" content="{{ page.date | default: site.time | date_to_xmlschema }}" />
|
|
{% if page.title == nil %}
|
|
<title>{{ site.title }} - {{ site.tagline }} </title>
|
|
{% else %}
|
|
<title>{{ page.title }} | {{ site.title }} - {{ site.tagline }} </title>
|
|
{% endif %}
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="icon" href="{{ site.xaymar.data.logo | absolute_url }}">
|
|
<link rel="stylesheet" href="{{ site.xaymar.data.fonts | absolute_url }}?ts={{ site.time | date_to_xmlschema }}">
|
|
<link rel="stylesheet" href="{{ site.xaymar.data.css | absolute_url }}?ts={{ site.time | date_to_xmlschema }}">
|
|
<link rel="alternate" type="application/atom+xml" title="All Articles" href="{{ site.xaymar.data.rss | absolute_url }}">
|