Files
com.xaymar.www/_includes/page_start.liquid
T

55 lines
2.6 KiB
Plaintext
Raw Normal View History

2021-12-24 11:00:43 +01:00
<!DOCTYPE html>
2022-11-25 22:57:53 +01:00
<html lang="{{ site.xaymar.language }}">
2021-12-24 11:00:43 +01:00
<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 %}
2022-01-11 04:26:31 +01:00
<meta charset="utf-8" />
{% comment %}
Support for OpenGraph
{% endcomment %}
2021-12-24 11:00:43 +01:00
{% 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="og:description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncatewords: site.xaymar.opengraph.excerpt.length }}" />
{% else %}
<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 %}
2022-01-12 05:40:30 +01:00
<meta property="og:image" content="{{ page.opengraph.image | absolute_url }}" />
2021-12-24 11:00:43 +01:00
{% else %}
2022-01-12 05:40:30 +01:00
<meta property="og:image" content="{{ site.xaymar.data.logo | absolute_url }}" />
2021-12-24 11:00:43 +01:00
{% endif %}
{% if page.opengraph.audio != nil %}
2022-01-12 05:40:30 +01:00
<meta property="og:audio" content="{{ page.audio | absolute_url }}" />
2021-12-24 11:00:43 +01:00
{% endif %}
{% if page.opengraph.video != nil %}
2022-01-12 05:40:30 +01:00
<meta property="og:video" content="{{ page.video | absolute_url }}" />
2021-12-24 11:00:43 +01:00
{% endif %}
<meta property="article:published_time" content="{{ page.date | default: site.time | date_to_xmlschema }}" />
2022-01-11 04:26:31 +01:00
{% if page.title == nil %}
<title>{{ site.title }} - {{ site.tagline }} </title>
{% else %}
<title>{{ page.title }} | {{ site.title }} - {{ site.tagline }} </title>
{% endif %}
2021-12-24 20:05:17 +01:00
<meta name="viewport" content="width=device-width, initial-scale=1">
2022-01-12 05:40:30 +01:00
<link rel="icon" href="{{ site.xaymar.data.logo | absolute_url }}">
2022-03-09 10:41:02 +01:00
<link rel="stylesheet" href="{{ site.xaymar.data.fonts | absolute_url }}">
2022-01-13 10:54:15 +01:00
<link rel="stylesheet" href="{{ site.xaymar.data.css | absolute_url }}">
2022-01-11 04:26:31 +01:00
<link rel="alternate" type="application/atom+xml" title="All Articles" href="{{ site.xaymar.data.rss | absolute_url }}">