Private
Public Access
script-src 'self' blocks any inline <script> block outright, which would have silently broken the service-worker registration snippet in base.html in production — the exact feature this whole project exists to support. Moved it to static/js/register-sw.js, loaded via <script src>, so script-src can stay strict with no 'unsafe-inline' exception. style-src needed 'unsafe-inline' regardless, since tag pills set a per-tag color via a dynamic inline style attribute. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
33 lines
1.2 KiB
HTML
33 lines
1.2 KiB
HTML
{% load static %}
|
|
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>{% block title %}Evection{% endblock %}</title>
|
|
<link rel="stylesheet" href="{% static 'css/base.css' %}">
|
|
<script src="{% static 'js/htmx.min.js' %}" defer></script>
|
|
|
|
<link rel="manifest" href="{% url 'pwa:manifest' %}">
|
|
<meta name="theme-color" content="#111111">
|
|
<link rel="icon" href="{% static 'pwa/icons/icon-192.png' %}">
|
|
<link rel="apple-touch-icon" href="{% static 'pwa/icons/apple-touch-icon.png' %}">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
|
<meta name="apple-mobile-web-app-title" content="Evection">
|
|
</head>
|
|
<body hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'>
|
|
{% if messages %}
|
|
<ul class="messages">
|
|
{% for message in messages %}
|
|
<li class="message message-{{ message.tags }}">{{ message }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
<main>
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
<script src="{% static 'js/register-sw.js' %}" defer></script>
|
|
</body>
|
|
</html>
|