Allow inline script, add back SITEURL, remove unused layout template (#20)
All checks were successful
Build / build (push) Successful in 2m25s

Reviewed-on: #20
This commit is contained in:
Frederik Ring 2024-01-17 19:42:38 +01:00
parent 50563cbe88
commit 74f62de1b9
2 changed files with 7 additions and 38 deletions

View File

@ -1,31 +0,0 @@
<!DOCTYPE html>
<html lang="en">
{% block head %}
<head>
<title>
{% block title %}{{ title }}{% endblock %}
</title>
<meta charset="UTF-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
<meta name="description" content="{{ description }}">
<meta property="og:site_name" content="{{ SITENAME }}">
<meta property="og:locale" content="{{ DEFAULT_LANG }}">
<meta property="og:title" content="{{ title }}">
<meta property="og:description" content="{{ description }}">
<meta property="og:type" content="website">
<meta property="og:url" content="{{ SITEURL }}/{{ href }}">
<link rel="canonical" href="{{ SITEURL }}/{{ href }}">
{% assets filters="postcss", output="css/style.min.css", "css/tachyons.min.css", "css/styles.css" %}
<link rel="stylesheet" href="/{{ ASSET_URL }}">
{% endassets %}
</head>
{% endblock %}
<body class="no-js">
{% block body %}{% endblock %}
<script>
document.body.classList.remove('no-js');
</script>
</body>
</html>

View File

@ -7,7 +7,7 @@
</title>
<meta charset="UTF-8">
<meta name="referrer" content="origin">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'sha256-7Hd/IgrXemM6wv52sTjhE6aUeBB8Ax4RL3q0GMuOMtQ='">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
<meta name="description" content="{{ description }}">
@ -16,15 +16,15 @@
<meta property="og:title" content="{{ title }}">
<meta property="og:description" content="{{ description }}">
<meta property="og:type" content="website">
<!--
<meta property="og:url" content="{{ SITEURL }}">
<link rel="canonical" href="{{ SITEURL }}">
<!--
<meta property="og:image" content="{{ SITEURL }}/theme/images/###">
-->
<link rel="shortcut icon" type="image/x-icon" href="/theme/images/site-favicon.ico">
<link rel="apple-touch-icon" sizes="180x180" href="/theme/images/site-apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/theme/images/site-favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/theme/images/site-favicon-16x16.png">
<link rel="shortcut icon" type="image/x-icon" href="{{ SITEURL }}/theme/images/site-favicon.ico">
<link rel="apple-touch-icon" sizes="180x180" href="{{ SITEURL }}/theme/images/site-apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="{{ SITEURL }}/theme/images/site-favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="{{ SITEURL }}/theme/images/site-favicon-16x16.png">
{% assets filters="postcss", output="css/style.min.css", "css/tachyons.min.css", "css/styles.css", "css/fonts.css" %}
<link rel="stylesheet" href="/{{ ASSET_URL }}">