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

60 lines
3.4 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" />
2024-05-16 11:40:24 +02:00
<meta charset="utf-8" />
2021-12-24 11:00:43 +01:00
{% 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 %}
2024-05-16 11:40:24 +02:00
<!-- OpenGraph -->
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 }}" />
2023-04-04 02:17:58 +02:00
<meta property="og:title" content="{{ page.autopages.display_name | default: page.autopage.display_name | default: page.title | default: site.title | strip_html }}" />
2021-12-24 11:00:43 +01:00
{% if site.xaymar.opengraph.excerpt.enabled == true %}
2023-04-03 23:23:23 +02:00
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncatewords: site.xaymar.opengraph.excerpt.length }}" />
2021-12-24 11:00:43 +01:00
<meta property="og:description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncatewords: site.xaymar.opengraph.excerpt.length }}" />
{% else %}
2023-04-03 23:23:23 +02:00
<meta name="description" content="{{ site.description | strip_html }}" />
2021-12-24 11:00:43 +01:00
<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 %}
2023-04-04 02:17:58 +02:00
<title>{{ page.autopages.display_name | default: page.autopage.display_name | default: page.title }} | {{ site.title }} - {{ site.tagline }} </title>
2022-01-11 04:26:31 +01:00
{% 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 }}">
2024-05-16 11:40:24 +02:00
<link rel="alternate" type="application/atom+xml" title="All Articles" href="{{ site.xaymar.data.rss | absolute_url }}">
<!-- Shims -->
<script defer src="{{ site.xaymar.data.assets | absolute_url }}/shim/css.has.mjs?ts={{ site.time | date_to_xmlschema }}"></script>
<!-- Code, Fonts, Styles -->
<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 }}">
2024-05-16 11:40:24 +02:00
<script defer src="{{ site.xaymar.data.js | absolute_url }}?ts={{ site.time | date_to_xmlschema }}"></script>
2024-09-07 11:32:43 +02:00
<link rel="stylesheet" href="{{ site.xaymar.data.assets | absolute_url }}/js/highlightjs/styles/default.min.css?ts={{ site.time | date_to_xmlschema }}">