Allow inline script, add back SITEURL, remove unused layout template #20

Merged
m90 merged 1 commits from fix-inline-script into main 2024-01-17 19:42:39 +01:00
2 changed files with 7 additions and 38 deletions
Showing only changes of commit 45f8ba74fc - Show all commits

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